typedef struct _STARTDECOMPRESSDATA
} STARTDECOMPRESSDATA, *pSTARTDECOMPRESSDATA;
The STARTDECOMPRESSDATA structure provides decompression to the L_StartDecompressBuffer function.
Size of this structure in bytes, for versioning. Use the sizeof() operator to calculate this value.
Pointer to the bitmap handle in which to load the image.
Size of the structure pointed to by pBitmap, for versioning. Use sizeof(BITMAPHANDLE).
Flag that indicates whether strips or tiles are being decompressed. Strips have a width equal to the bitmap width, but tiles can have a width that is less than the bitmap width. Possible values are:
|DECOMPRESS_STRIPS||Decompress strips of data.|
|DECOMPRESS_TILES||Decompress tiles of data. The pfnReadCallback is not called if this option is set.|
Format of the image to decompress. Possible values are:
|FILE_RAW_RLE4||RAW file with RLE compression, 4 bits per pixel|
|FILE_RAW_RLE8||RAW file with RLE compression, 8 bits per pixel|
|FILE_RAW_BITFIELDS||RAW file with bitfield compression|
|FILE_RAW_PACKBITS||RAW file with packed bits compression|
|FILE_RAW_CCITT||RAW file with CCITT compression.|
|FILE_FAX_G3_1D||Fax file with G3 one-dimensional compression|
|FILE_FAX_G3_2D||Fax file with G3 two-dimensional compression|
|FILE_FAX_G4||Fax file with G4 compression|
Bits per pixel of the compressed data.
View perspective of the compressed data. Possible values are:
|TOP_LEFT||Top-left of image is first in memory.|
|TOP_LEFT90||TOP_LEFT rotated clockwise by 90 degrees.|
|TOP_LEFT180||TOP_LEFT rotated clockwise by 180 degrees.|
|TOP_LEFT270||TOP_LEFT rotated clockwise by 270 degrees.|
|BOTTOM_LEFT||Bottom-left of image is first in memory.|
|BOTTOM_LEFT90||BOTTOM_LEFT rotated clockwise by 90 degrees.|
|BOTTOM_LEFT180||BOTTOM_LEFT rotated clockwise by 180 degrees.|
|BOTTOM_LEFT270||BOTTOM_LEFT rotated clockwise by 270 degrees|
Color order of 24-bit raw data. This is ignored if the image is palettized. Possible values are:
Desired color order after a 24-bit image is loaded. This is ignored if the image is palettized. Possible values are:
Horizontal resolution, in dots per inch.
Vertical resolution, in dots per inch.
Optional callback function for additional processing.
If you do not provide a callback function, use NULL as the value of this parameter.
If you do provide a callback function, use the function pointer as the value of this parameter.
The callback function must adhere to the function prototype described in FILEREADCALLBACK Function.
Palette for uncompressed data that is 8 bits per pixel or less. Fill in the first 2BitsPerPixel entries in this palette and include DECOMPRESS_PALETTE in the uFlags field.
Flags that affect the decompression process. Possible values are:
|DECOMPRESS_LSB||Fill the least significant bit first.|
|DECOMPRESS_PAD4||Pad each line to a multiple of 4 bytes.|
|DECOMPRESS_PALETTE||A palette is supplied in the rgbQuad field.|
Void pointer that you can use to pass one or more additional parameters that the callback function needs.
To use this feature, assign a value to a variable or create a structure that contains as many fields as you need. Then, in this parameter, pass the address of the variable or structure, casting it to L_VOID *. The callback function, which receives the address in its own pUserData parameter, can cast it to a pointer of the appropriate data type to access your variable or structure.
If the additional parameters are not needed, you can pass NULL in this parameter.
An array of L_UINT32 values that represent RGB color masks. rgbColorMask is the red mask; rgbColorMask is the green mask; rgbColorMask is the blue mask. This field is valid only if uFormat is FILE_RAW_BITFIELDS.
Value that represents color information. Possible values are:
|0||White is zero|
|1||Black is zero|
|2||There is no color map (RGB)|
|6||YC b C r color space|
|8||1976 CIE Lab|
Planar configuration. This value is used only if uFormat is FILE_RAW_PACKBITS. Otherwise, it is ignored. Possible values are:
Reserved for future use. Pass 0.
As an example, with 16-bit data arranged as RRR RRGG GGGB BBBB, the masks would be:
rgbColorMask = 0x7C00
rgbColorMask = 0x0E30
rgbColorMask = 0x001F
For 32-bit data, the only valid data is RRRR RRRR GGGG GGGG BBBB BBBB. The masks would be:
rgbColorMask = 0xFF0000
rgbColorMask = 0x00FF00
rgbColorMask = 0x0000FF
Some functions which take this structure as a parameter require that the structure be initialized prior to the function call. You must set the uStructSize member to the total size, in bytes, of the structure. Use the sizeof() operator to calculate this value. Functions that do not require the structure be initialized will take the total size of the structure, in bytes, as an additional function parameter.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries