IGxImage.CornerPixel

Syntax

CornerPixel(Value: GxCorner): IGxColor;

Parameters

Value - type of the angular point.

Description

The CornerPixel property returns the color of the specified angular point.

Example

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

Image: IGxImage;

Color: IGxColor;

Begin

Image:=ImageBox1.Image;

Color:=Image.CornerPixel(GxCorner.BottomLeft);

End Sub Button1OnClick;

After executing the example on clicking the button the Color variable contains the color of the left bottom point of the image that is stored in the component named ImageBox1.

See also:

IGxImage