STARTDECOMPRESSDATA - Raster Imaging C API Help

STARTDECOMPRESSDATA

typedef struct _STARTDECOMPRESSDATA 
{ 
   L_UINT uStructSize; 
   pBITMAPHANDLE pBitmap; 
   L_UINT uBitmapStructSize; 
   L_UINT uStripsOrTiles; 
   L_UINT uFormat; 
   L_INT nWidth; 
   L_INT nHeight; 
   L_INT nBitsPerPixel; 
   L_INT nViewPerspective; 
   L_INT nRawOrder; 
   L_INT nLoadOrder; 
   L_INT nXResolution; 
   L_INT nYResolution; 
   FILEREADCALLBACK pfnReadCallback; 
   L_RGBQUAD Palette[256]; 
   L_UINT uFlags; 
   L_VOID* pUserData; 
   L_UINT rgbColorMask[3]; 
   L_INT nPhotoInt; 
   L_INT nPlanarConfig; 
   L_UINT uReserved1; 
} STARTDECOMPRESSDATA, *pSTARTDECOMPRESSDATA; 

The STARTDECOMPRESSDATA structure provides decompression to the L_StartDecompressBuffer function.

Comments

As an example, with 16-bit data arranged as RRR RRGG GGGB BBBB, the masks would be:

rgbColorMask[0] = 0x7C00
rgbColorMask[1] = 0x0E30
rgbColorMask[2] = 0x001F

For 32-bit data, the only valid data is RRRR RRRR GGGG GGGG BBBB BBBB. The masks would be:

rgbColorMask[0] = 0xFF0000
rgbColorMask[1] = 0x00FF00
rgbColorMask[2] = 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.

Help Version 20.0.2018.7.30
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help