L_ChangeFromDIB

#include "l_bitmap.h"

L_LTKRN_API L_INT L_ChangeFromDIB(pBitmap, uStructSize, hDIB)

Changes a Windows device independent bitmap (DIB) to a LEAD bitmap. 

Parameters

pBITMAPHANDLE pBitmap

Address of the LEAD bitmap handle.

L_UINT uStructSize

Size in bytes, of the structure pointed to by pBitmap, for versioning. Use sizeof(BITMAPHANDLE).

L_HDIB hDIB

The DIB handle to be changed.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

This function results in only one copy of the bitmap, and it invalidates the DIB handle.

This function does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this function.

Before calling this function, you must declare the LEAD bitmap handle, but you should not allocate the bitmap, because the new bitmap handle will point to the previous DIB data after the function is called. (If the bitmap is already allocated, you must free it.)

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 that LEADTOOLS supports at the moment:

Required DLLs and Libraries

Platforms

Win32, x64, Linux.

Help Version 20.0.2019.9.22
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help