LBitmapBase::PutRowCompressed

Summary

Puts one or more rows of 1-bit compressed data from a buffer into a class object's bitmap that is maintained in its compressed format.

Syntax

#include "ltwrappr.h"

virtual L_INT LBitmapBase::PutRowCompressed(LRunBuffer, nRow, nLines=1, pWorkBuffer=NULL)

Parameters

LBuffer& LRunBuffer

An LBuffer object that contains the row data.

L_INT nRow

The number of the row in which to put the data. The first row is 0, and the last row is 1 less than the bitmap height.

L_INT nLines

The number of rows to update.

LBuffer * pWorkBuffer

A pointer to an optional work buffer. You can also pass NULL. 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 value returned by LBitmapBase::GetBytesPerLine.

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.

Note: The LRunBuffer parameter is passed by reference, and is a required parameter.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

For an example, refer to LBitmapBase::GetRowCompressed.

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

LEADTOOLS Raster Imaging C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.