|
-
Jan 25th, 2007, 09:24 PM
#1
System.Drawing Drawing points to single percision. is it possible?
Ok, here is my issue. I have a custom control that I wrote for a game that works like a radar. For the most part it works perfectly, except I have one issue. Positions in the game are stored as singles and it seems like, even though a pass a single into my X and Y coordinates when drawing my points on the map, it seems to round them to the nearest whole number, causing thins to move in sort of step like pattern. Is there any way to draw a point using single precision or am I bound to only whole numbers?
-
Jan 25th, 2007, 10:14 PM
#2
Re: System.Drawing Drawing points to single percision. is it possible?
Drawing a point would involve drawing a single pixel. The smallest amount that you can move that is one pixel. You can't move the drawing by part of a pixel so floating-point numbers aren't relevant. If you're talking about some unit of measure other than pixels then you need to state that.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|