Sign in Join
FPDoc Onlineexperiment

TWidgetSet.DCGetPixel function

Member of TWidgetSetpublicIn unit InterfaceBase

Gets the color for a pixel on the specified device context.

Declaration

pascal
function DCGetPixel(CanvasHandle: HDC; X: Integer; Y: Integer)
: TGraphicsColor; virtual; abstract

Arguments

CanvasHandle

Handle (device context) with the image data examined in the method.

X

Horizontal coordinate for the pixel examined in the method.

Y

Vertical coordinate for the pixel examined in the method.

Function result

TGraphicsColor value with the color for the specified pixel.

Description

Defined as an abstract virtual method. Must be implemented in a descendent class to use the image format and device context needed for the platform.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.