C# Class CSJ2K.J2kImage

Show file Open project: cureos/csj2k

Public Methods

Method Description
CreateEncodableSource ( IEnumerable streams ) : BlkImgDataSrc
CreateEncodableSource ( Stream stream ) : BlkImgDataSrc
FromBytes ( byte j2kdata, CSJ2K.j2k.util.ParameterList parameters = null ) : PortableImage
FromFile ( string filename, CSJ2K.j2k.util.ParameterList parameters = null ) : PortableImage
FromStream ( Stream stream, CSJ2K.j2k.util.ParameterList parameters = null ) : PortableImage
GetDefaultDecoderParameterList ( string pinfo ) : CSJ2K.j2k.util.ParameterList
GetDefaultEncoderParameterList ( string pinfo ) : CSJ2K.j2k.util.ParameterList
ToBytes ( BlkImgDataSrc imgsrc, CSJ2K.j2k.util.ParameterList parameters = null ) : byte[]
ToBytes ( object imageObject, CSJ2K.j2k.util.ParameterList parameters = null ) : byte[]

Private Methods

Method Description
GetImageType ( Stream inStream ) : string
error ( String msg, int code ) : void
warning ( String msg ) : void

Method Details

CreateEncodableSource() public static method

public static CreateEncodableSource ( IEnumerable streams ) : BlkImgDataSrc
streams IEnumerable
return BlkImgDataSrc

CreateEncodableSource() public static method

public static CreateEncodableSource ( Stream stream ) : BlkImgDataSrc
stream Stream
return BlkImgDataSrc

FromBytes() public static method

public static FromBytes ( byte j2kdata, CSJ2K.j2k.util.ParameterList parameters = null ) : PortableImage
j2kdata byte
parameters CSJ2K.j2k.util.ParameterList
return PortableImage

FromFile() public static method

public static FromFile ( string filename, CSJ2K.j2k.util.ParameterList parameters = null ) : PortableImage
filename string
parameters CSJ2K.j2k.util.ParameterList
return PortableImage

FromStream() public static method

public static FromStream ( Stream stream, CSJ2K.j2k.util.ParameterList parameters = null ) : PortableImage
stream Stream
parameters CSJ2K.j2k.util.ParameterList
return PortableImage

GetDefaultDecoderParameterList() public static method

public static GetDefaultDecoderParameterList ( string pinfo ) : CSJ2K.j2k.util.ParameterList
pinfo string
return CSJ2K.j2k.util.ParameterList

GetDefaultEncoderParameterList() public static method

public static GetDefaultEncoderParameterList ( string pinfo ) : CSJ2K.j2k.util.ParameterList
pinfo string
return CSJ2K.j2k.util.ParameterList

ToBytes() public static method

public static ToBytes ( BlkImgDataSrc imgsrc, CSJ2K.j2k.util.ParameterList parameters = null ) : byte[]
imgsrc BlkImgDataSrc
parameters CSJ2K.j2k.util.ParameterList
return byte[]

ToBytes() public static method

public static ToBytes ( object imageObject, CSJ2K.j2k.util.ParameterList parameters = null ) : byte[]
imageObject object
parameters CSJ2K.j2k.util.ParameterList
return byte[]