Constructs a point from an integer.
Syntax

[C#]

Point(int dw);
Point(int x, int y);
Point(Size sz);

[Visual Basic]

Sub New(dw As Integer)
Sub New(x As Integer, y As Integer)
Sub New(sz As Size)
Params
Name Description
dw The integer whose lower 16 bits specify the horizontal coordinate and whose higher 16 bits specify the vertical coordinate.
x The horizontal coordinate.
y The vertical coordinate.
sz The size value.
Notes

None.

Example

[C#]

Point point = new Point(20, 10);
Response.Write($"X = {point.X}<br>");
Response.Write($"Y = {point.Y}<br>");


This produces the following output.

X = 20
Y = 10