Point Method (AForm)

Returns, as an integer of type long, the RGB color of the specified point on a Form or PictureBox object.

Syntax

[ lcolor = ] Object.Point ( fx ,fy )

The Point method syntax has the following parts:

 

Name

Type

Description

Object

AForm

AForm object

lcolor

Long

The red-green-blue (RGB) color of the specified point.

fX

Val Float

The horizontal (x-axis) coordinate of the point in the ScaleMode property of the Form or PictureBox. Parentheses must enclose the values.

fY

Val Float

The vertical (y-axis) coordinate of the point in the ScaleMode property of the Form or PictureBox. Parentheses must enclose the values.

Comments

If the point referred to by the x and y coordinates is outside the object, the Point method returns -1.

The Point method does not support named arguments.

Example

The following statement returns the RGB values of the color of the point on the AForm at x=20 and y=30:

lafrm1Point1color= frm1.Point(20, 30)

Applies to

AForm

See Also

BackColor, Circle, FillColor, ForeColor, Line, MousePointer, Palette, Rectangle, Scale, ScaleMode, ScaleX, ScaleY