Method function IGDIPlus.IGPBitmap.SetPixel(Integer;Integer;TGPColor) : TGPBitmap

From Mitov Wiki Doc
Jump to: navigation, search

This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.

Class: IGPBitmap

Contents

Syntax

Delphi:

function SetPixel( x : Integer, y : Integer, color : TGPColor ) : TGPBitmap;

C++ Builder:

TGPBitmap __fastcall SetPixel( int x, int y, TGPColor color );

Visual C++ (MFC):

SetPixel(  x,  y,  color );

Summary

Sets the color of a specified pixel in this bitmap.

Description

Call this method to set the color of a specified pixel in this bitmap. Remarks Depending on the format of the bitmap, GetPixel might not return the same value as was set by SetPixel. For example, if you call SetPixel on a TGPBitmap object whose pixel format is 32bppPARGB, the RGB components are premultiplied. A subsequent call to GetPixel might return a different value because of rounding. Also, if you call SetPixel on a TGPBitmap whose color depth is 16 bits per pixel, information could be lost in the conversion from 32 to 16 bits, and a subsequent call to GetPixel might return a different value.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox