Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# .NET graphics
Could you please explain more to me what is the difference between PointF and Point in .NET?
 
I thought the coordinates of pixels on screen are calculated as integers only, so what can PointF do anything special here?
 
In fact, in some cases I have to use PointF instead of Point to have some shape drawn with higher quality, but in some case using PointF doesn't make any difference.
 
Your help would be highly appreciated!
 
VipHaLong
Posted 1-Mar-13 6:43am
supernorb2.6K
Comments
Sergey Alexandrovich Kryukov at 1-Mar-13 14:20pm
   
Why asking such questions? Anyone can see the declaration of one and another. The questions about "difference" are generally incorrect. If you don't understand it, tell us the difference between apple and Apple. :-)
—SA
supernorb at 1-Mar-13 20:27pm
   
I mean the difference in usages of the both not in declarations (Why and when using PointF instead of Point ? Don't you think this is a must understand matter for everyone who programs with GDI+ in .NET?). Thanks!

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
supernorb at 1-Mar-13 20:31pm
   
Thank you, the answers from that link can tell me at least a reason for PointF to be used in .NET, but I still don't know how it works differently from Point because as I said that our screen is divided into many rectangular pixels and coordinates are integers. Please wait more for other answers... before I accept your solution. Thanks again!!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 269
1 OriginalGriff 240
2 CPallini 195
3 Maciej Los 177
4 BillWoodruff 173
0 OriginalGriff 5,655
1 DamithSL 4,506
2 Maciej Los 3,997
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 1 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100