L_PutBitmapRowCompressed

#include "l_bitmap.h"

L_LTKRN_API L_INT L_PutBitmapRowCompressed(pBitmap, pWorkBuffer, pRunBuffer, nRow, nLines)

Puts one or more rows of 1-bit compressed data from a buffer to a bitmap that is maintained in its compressed format.

Parameters

pBITMAPHANDLE pBitmap

Pointer to the bitmap handle referencing the bitmap to copy the rows into.

L_UCHAR* pWorkBuffer

NULL or a pointer to an optional work buffer. Allocating the work buffer speeds processing if you call this function more than once, because if you do not allocate a work buffer, the function allocates and frees a temporary buffer each time it is called. The size of this buffer should be the same as the bitmap handle's BytesPerLine field.

L_UINT16* pRunBuffer

Pointer to the input buffer, which contains 1-bit compressed image data.

L_UINT nRow

Number of the first row to update.

L_UINT nLines

Number of rows to update.

Returns

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

Comments

This function is useful for working with 1-bit images that are loaded in their compressed formats for faster loading and display. For more information, refer to Speeding Up 1-Bit Documents.

Required DLLs and Libraries

Platforms

Win32, x64, Linux.

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

LEADTOOLS Raster Imaging C API Help