CornerPixel(Value: GxCorner): IGxColor;
Value - type of the angular point.
The CornerPixel property returns the color of the specified angular point.
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: