GetBitmapRow method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int __fastcall GetBitmapRow(void * pBuffer, int nRow, unsigned uBytes);

Delphi Syntax

function GetBitmapRow ( pBuffer : pointer; nRow : integer; uBytes : Cardinal ) : Integer ;

Overview

Refer to Examining and Altering Bitmaps.

Remarks

This method copies image data from the bitmap to a buffer that you specify. The data is copied exactly as it is stored in the image.

Use the BitmapBytesPerLine Property to determine the byte count of each line. Color order is determined by the BitmapOrder Property. This value can be either ORDER_RGB, ORDER_BGR or ORDER_GRAY. ORDER_GRAY is only valid for 12 and 16-bit grayscale images. Support for 12 and 16-bit grayscale images is only available in the Document/Medical toolkits .

See Also

Elements:

PutBitmapRow method, GetBitmapRowCol method, PutBitmapRowCol method, BitmapBytesPerLine Property, BitmapOrder Property .

Topics:

Raster Images: Getting / Setting Rows from Bitmaps