Description
Sets the
color of a specified pixel in this bitmap.
Syntax
GpStatus WINGDIPAPI GdipBitmapSetPixel(
GpBitmap* bitmap,
INT x,
INT y,
ARGB color
);
PowerBASIC Syntax
DECLARE FUNCTION GdipBitmapSetPixel ( _
BYVAL pbitmap AS DWORD, _
BYVAL x AS LONG, _
BYVAL y AS LONG, _
BYVAL pcolor AS DWORD _
) AS LONG
Parameters
bitmap
[in]
Pointer to the Bitmap object.
x
[in]
Long integer value that specifies the x-coordinate (column) of the pixel.
y
[in]
Long integer value that specifies the y-coordinate (row) of the pixel.
color
[in] ARGB
color value that specifies the color to set.
Remarks
Depending
on the format of the bitmap, GdipBitmapGetPixel might not return the
same value as was set by GdipBitmapSetPixel. For example, if you call GdipBitmapSetPixel
on a Bitmap object whose pixel format is 32bppPARGB, the pixel's RGB
components are premultiplied. A subsequent call to GdipBitmapGetPixel might
return a different value because of rounding. Also, if you call GdipBitmapSetPixel
on a Bitmap object whose color depth is 16 bits per pixel, information could be
lost during the conversion from 32 to 16 bits, and a subsequent call to GdipBitmapGetPixel
might return a different value.
|