L_AccessBitmap

Summary

Provides exclusive access to the image data contained in a bitmap handle.

Syntax

#include "l_bitmap.h"

L_LTKRN_API L_VOID L_AccessBitmap(pBitmap)

Parameters

pBITMAPHANDLE pBitmap

Pointer to the bitmap handle that references the bitmap to lock.

Returns

None.

Comments

This call locks the memory. If you do not call this function before accessing the data with a low-level function such as L_GetBitmapRow or L_PutBitmapRow, the application will fail.

To make the most of available system resources, you should only keep a bitmap handle locked when you need to access the image data. Call L_ReleaseBitmap to unlock the bitmap data for more efficient use of Windows memory resources.

Required DLLs and Libraries

Platforms

Win32, x64, Linux.

See Also

Functions

Topics

Example

For an example, refer to L_GetBitmapRow.
For complete sample code, refer to the GETROW
example.

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

LEADTOOLS Raster Imaging C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.