What is the difference between System.Drawing.Point
and System.Drawing.PointF
. Can you give an example between this two.
Thanks in advance.
The PointF class defines a point in the plane using floating point precision. A point is specified by a x coordinate and an y coordinate which can be accessed using the x() and y() functions. The coordinates of the point are specified using floating point numbers for accuracy.
C# Point, PointF StructsUse the Point type, which is found in the System. Drawing namespace. Point. This C# struct represents an X and a Y coordinate grouped together. Points are useful whenever you need to store coordinates.
Point
uses integer coordinates (int
for X
and Y
).
PointF
uses floating points (float
for X
and Y
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With