DrawPoint

This method sets a point on an object to a specified color.

Syntax

picturebox.DrawPoint x, y, [color]

Parameters

picturebox
Reference to a PictureBox object.
x
Required. Coordinates of the point to set.
y
Required. Coordinates of the point to set.
color
Optional. RGB color for point. If omitted, the current ForeColor property setting is used.

Return Value

None.

Remarks

The setting of the DrawWidth property determines the size of the point. If DrawWidth is 1, DrawPoint sets a single pixel to the specified color. If DrawWidth is greater than 1, DrawPoint centers the point on the specified coordinates.