Method function IGDIPlus.IGPBitmap.GetPixel(Integer;Integer) : TGPColor

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 GetPixel( x : Integer, y : Integer ) : TGPColor;

C++ Builder:

TGPColor __fastcall GetPixel( int x, int y );

Visual C++ (MFC):

GetPixel(  x,  y );

Summary

Gets the color of a specified pixel in this bitmap.

Description

Call this method to get 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 pixel's 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 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 GetPixel might return a different value.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox