PutBitmapRow method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

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

Delphi Syntax

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

Overview

Examining and Altering Bitmaps.

Remarks

You can use the BitmapBits Property to determine the number of bytes to set the uBytes parameter. If the image is 8-bit then each byte is an index to the palette. If the image is a 24-bit image, then each three bytes represents one pixel element. Color order is determined by the BitmapOrder Property. This value can be either ORDER_RGB or ORDER_BGR.

See Also

Elements:

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

Topics:

Raster Images: Getting / Setting Rows from Bitmaps