C# Class OpenMetaverse.Imaging.OpenJPEG

A Wrapper around openjpeg to encode and decode images to and from byte arrays
Afficher le fichier Open project: 3di/3di-viewer-rei-libs Class Usage Examples

Méthodes publiques

Méthode Description
DecodeLayerBoundaries ( byte encoded, J2KLayerInfo &layerInfo, int &components ) : bool

DecodeToImage ( byte encoded, OpenMetaverse.Imaging.ManagedImage &managedImage ) : bool

DecodeToImage ( byte encoded, OpenMetaverse.Imaging.ManagedImage &managedImage, Image &image ) : bool

Decode JPEG2000 data to an System.Drawing.Image and ManagedImage

Encode ( OpenMetaverse.Imaging.ManagedImage image ) : byte[]

Encode a ManagedImage object into a byte array

Encode ( OpenMetaverse.Imaging.ManagedImage image, bool lossless ) : byte[]

Encode a ManagedImage object into a byte array

EncodeFromImage ( Bitmap bitmap, bool lossless ) : byte[]

Encode a System.Drawing.Bitmap object into a byte array

Private Methods

Méthode Description
DotNetAllocDecoded ( MarshalledImage &image ) : bool
DotNetAllocEncoded ( MarshalledImage &image ) : bool
DotNetDecode ( MarshalledImage &image ) : bool
DotNetDecodeWithInfo ( MarshalledImage &image ) : bool
DotNetEncode ( MarshalledImage &image, bool lossless ) : bool
DotNetFree ( MarshalledImage &image ) : bool

Method Details

DecodeLayerBoundaries() public static méthode

public static DecodeLayerBoundaries ( byte encoded, J2KLayerInfo &layerInfo, int &components ) : bool
encoded byte
layerInfo J2KLayerInfo
components int
Résultat bool

DecodeToImage() public static méthode

public static DecodeToImage ( byte encoded, OpenMetaverse.Imaging.ManagedImage &managedImage ) : bool
encoded byte
managedImage OpenMetaverse.Imaging.ManagedImage
Résultat bool

DecodeToImage() public static méthode

Decode JPEG2000 data to an System.Drawing.Image and ManagedImage
public static DecodeToImage ( byte encoded, OpenMetaverse.Imaging.ManagedImage &managedImage, Image &image ) : bool
encoded byte JPEG2000 encoded data
managedImage OpenMetaverse.Imaging.ManagedImage ManagedImage object to decode to
image Image Image object to decode to
Résultat bool

Encode() public static méthode

Encode a ManagedImage object into a byte array
public static Encode ( OpenMetaverse.Imaging.ManagedImage image ) : byte[]
image OpenMetaverse.Imaging.ManagedImage The object to encode
Résultat byte[]

Encode() public static méthode

Encode a ManagedImage object into a byte array
public static Encode ( OpenMetaverse.Imaging.ManagedImage image, bool lossless ) : byte[]
image OpenMetaverse.Imaging.ManagedImage The object to encode
lossless bool true to enable lossless conversion, only useful for small images ie: sculptmaps
Résultat byte[]

EncodeFromImage() public static méthode

Encode a System.Drawing.Bitmap object into a byte array
public static EncodeFromImage ( Bitmap bitmap, bool lossless ) : byte[]
bitmap System.Drawing.Bitmap The source object to encode
lossless bool true to enable lossless decoding
Résultat byte[]