Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. |
LChange::ChangeFromDIB
#include "ltwrappr.h"
static L_INT LChange::ChangeFromDIB(pLBitmap, uStructSize, hDIB)
LBitmapBase * pLBitmap; |
/* address of the LEAD bitmap object */ |
L_UINT uStructSize; |
/* size in bytes, of the structure pointed to by pLBitmap */ |
HGLOBAL hDIB; |
/* DIB handle to be changed */ |
Changes a Windows device independent bitmap (DIB) to a LEAD bitmap. The new LEAD bitmap is stored in the specified LBitmapBase object's internal LEAD bitmap handle. This function results in only one copy of the bitmap, and it invalidates the DIB handle.
Parameter |
Description |
pLBitmap |
Address of the LEAD bitmap object. |
uStructSize |
Size in bytes, of the structure pointed to by pLBitmap. Use sizeof(BITMAPHANDLE). |
hDIB |
The DIB handle to be changed. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
After calling this function, the class object's internal LEAD bitmap handle will point to the previous DIB data.
This function supports the standard DIB formats (BI_RGB and BI_BITFIELDS) as well as some FOURCC (Four Character Code) formats that some capture cards output.
These are the FOURCC formats that LEADTOOLS supports at the moment:
YVU9 (YUV9), I420 (YUV12), YUV2, YV12, IF09, IYUV, UYVY, cyuv, YUY2, YVYU, Y41P, Y211, Y41T, Y42T.
Required DLLs and Libraries
LTDIS For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
See Also
Functions: |
LBitmapBase::ConvertFromDDB, LBitmapBase::ConvertFromDIB, LBitmapBase::ConvertToDDB, LBitmapBase::ConvertToDIB, LChange::ChangeToDIB, Class Members |
Topics: |
|
|
Example
For an example, refer to LChange::ChangeToDIB.