[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'InterfaceBase' (#lcl)

TWidgetSet.DCGetPixel

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

Declaration

Source position: interfacebase.pp line 161

public function TWidgetSet.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.


Version 4.0 Generated 2025-05-03 Home