Dela via


PointHelper.FromCoordinates(Single, Single) Method

Definition

Creates a new Point value using x- and y-coordinate values in pixels. C# and Microsoft Visual Basic code should use the Point(Double,Double) constructor instead.

public:
 static Point FromCoordinates(float x, float y);
 static Point FromCoordinates(float const& x, float const& y);
public static Point FromCoordinates(float x, float y);
function fromCoordinates(x, y)
Public Shared Function FromCoordinates (x As Single, y As Single) As Point

Parameters

x
Single

float

The pixel value to set for X.

y
Single

float

The pixel value to set for Y.

Returns

The created Point.

Applies to