Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Raster imaging C++ Class library help

LBitmapBase::PutRowColCompressed

Show in webframe

#include "ltwrappr.h"

virtual L_SSIZE_T LBitmapBase::PutRowColCompressed(LRunBuffer, nRow, nCol, uWidth, pWorkBuffer=NULL)

LBuffer& LRunBuffer;

/* an LBuffer object */

L_INT nRow;

/* number of the row to update */

L_INT nCol;

/* column offset within the row to update */

L_UINT32 uWidth;

/* number of pixels to update */

LBuffer * pWorkBuffer;

/* pointer to an optional work buffer */

Puts a row (or part of a row) of 1-bit compressed data from a buffer into a class object's bitmap that is maintained in its compressed format.

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.

nCol

The column offset within the row to update. The first column offset is 0, and the last column offset is 1 less than the bitmap width.

uWidth

The number of pixels to be placed in the row.

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

> 0

The number of pixels processed.

< 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.

Platforms

Win32, x64.

See Also

Functions:

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

Topics:

Speeding Up 1-Bit Documents

Example

For an example, refer to LBitmapBase::GetRowColCompressed.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.