PointHelper.FromCoordinates(Single, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.