LBitmapBase::PutRowCompressed

#include "ltwrappr.h"

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

LBuffer& LRunBuffer;

/* an LBuffer object */

L_INT nRow;

/* number of the first row to update */

L_INT nLines;

/* number of the rows to update */

LBuffer L_FAR * pWorkBuffer;

/* pointer to an optional work buffer */

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. This function is available in Document/Medical toolkits only.

Parameter

Description

LRunBuffer

An LBuffer object that contains the row data.

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.

nLines

The number of rows to update.

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

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

LTDIS
LTFIL

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

Elements:

LBitmapBase::PutRow, LBitmapBase::PutRowCol, LBitmapBase::GetRow, LBitmapBase::PutRowColCompressed, LBitmapBase::GetRowCol, LBitmapBase::GetRowColCompressed, Class Members

Topics:

Speeding Up 1-Bit Documents

Example

For an example, refer to LBitmapBase::GetRowCompressed.