Свойство | Тип | Описание | |
---|---|---|---|
GetUncompressedSize | int | ||
HandleResult | void | ||
JpegLsReadHeaderThrowWhenError | void |
Метод | Описание | |
---|---|---|
Compress ( JpegLSMetadataInfo info, byte pixels, bool jfifHeader = false ) : ArraySegment |
Compresses the specified image passed in the source pixel buffer.
|
|
Compress ( JpegLSMetadataInfo info, byte pixels, int pixelCount, bool jfifHeader ) : ArraySegment |
Compresses the specified image passed in the source pixel buffer.
|
|
Decompress ( byte source ) : byte[] |
Decompresses the JPEG-LS encoded data passed in the source byte array.
|
|
Decompress ( byte source, int count ) : byte[] |
Decompresses the JPEG-LS encoded data passed in the source byte array.
|
|
Decompress ( byte source, int count, byte pixels ) : void |
Decompresses the JPEG-LS encoded data passed in the source byte array into the destination array.
|
|
GetMetadataInfo ( byte source ) : JpegLSMetadataInfo |
Gets the metadata info as stored in a JPEG-LS compressed bit stream.
|
|
GetMetadataInfo ( byte source, int count ) : JpegLSMetadataInfo |
Gets the metadata info as stored in a JPEG-LS compressed bit stream.
|
|
TryCompress ( JpegLSMetadataInfo info, byte pixels, int pixelCount, bool jfifHeader, byte destination, int destinationLength, int &compressedCount ) : bool |
Tries the compress the array with pixels into the provided buffer.
|
Метод | Описание | |
---|---|---|
GetUncompressedSize ( |
||
HandleResult ( JpegLSError result, StringBuilder errorMessage ) : void | ||
JpegLsReadHeaderThrowWhenError ( byte source, int length, |
public static Compress ( JpegLSMetadataInfo info, byte pixels, bool jfifHeader = false ) : ArraySegment |
||
info | JpegLSMetadataInfo | The meta info that describes the format and type of the pixels. |
pixels | byte | An array of bytes that represents the content of a bitmap image. |
jfifHeader | bool | if set to |
Результат | ArraySegment |
public static Compress ( JpegLSMetadataInfo info, byte pixels, int pixelCount, bool jfifHeader ) : ArraySegment |
||
info | JpegLSMetadataInfo | The meta info that describes the format and type of the pixels. |
pixels | byte | An array of bytes that represents the content of a bitmap image. |
pixelCount | int | The number of pixel in the pixel array. |
jfifHeader | bool | if set to |
Результат | ArraySegment |
public static Decompress ( byte source ) : byte[] | ||
source | byte | The byte array that contains the JPEG-LS encoded data to decompress. |
Результат | byte[] |
public static Decompress ( byte source, int count ) : byte[] | ||
source | byte | The byte array that contains the JPEG-LS encoded data to decompress. |
count | int | The number of bytes of the array to decompress. |
Результат | byte[] |
public static Decompress ( byte source, int count, byte pixels ) : void | ||
source | byte | The byte array that contains the JPEG-LS encoded data to decompress. |
count | int | The number of bytes of the array to decompress. |
pixels | byte | The byte array that will hold the pixels when the function returns. |
Результат | void |
public static GetMetadataInfo ( byte source ) : JpegLSMetadataInfo | ||
source | byte | The JPEG-LS compressed bit stream. |
Результат | JpegLSMetadataInfo |
public static GetMetadataInfo ( byte source, int count ) : JpegLSMetadataInfo | ||
source | byte | The JPEG-LS compressed bit stream. |
count | int | The count of bytes that are valid in the array. |
Результат | JpegLSMetadataInfo |
public static TryCompress ( JpegLSMetadataInfo info, byte pixels, int pixelCount, bool jfifHeader, byte destination, int destinationLength, int &compressedCount ) : bool | ||
info | JpegLSMetadataInfo | The meta info that describes the format and type of the pixels. |
pixels | byte | An array of bytes that represents the content of a bitmap image. |
pixelCount | int | The number of pixel in the pixel array. |
jfifHeader | bool | if set to |
destination | byte | The destination buffer that will hold the JPEG-LS compressed (encoded) bit stream. |
destinationLength | int | Length of the destination buffer that can be used (can be less then the length of the destination array). |
compressedCount | int | The number of bytes that have been compressed (encoded) into the destination array. |
Результат | bool |