"Tiled" Shapes

CraigG

Member
Joined
Nov 21, 2003
Messages
5
I am trying to draw ellipses the same way you see it if you were zoomed to the pixel level on most graphic programs. I am working with 16x16 tiles, so drawing a smooth circle does not look correct.

Here is an example of what I mean:

[Broken External Image]:http://www.mercgames.org/images/other/smooth_rigid2.jpg

I am trying to draw the right most version (ignore grid), and avoid the left one. Is there a method to do such a thing, or some equation? Using GDI+.

Thanks in advance for any advice.
 
Last edited by a moderator:
Im not sure I understand... there is a DrawEllipse method of a
graphics object, which you can easily use to draw a circle on a
small bitmap.

C#:
Bitmap bmp = new Bitmap(16, 16);
Graphics g = Graphics.FromImage(bmp);

g.DrawEllipse(Pens.Black, 1, 1, 14, 14);

Does that work for you?
 
I updated my first post with a better example of what I am trying to do. Instead of the smooth ellipse, I want a "tiled"? one.
 
Back
Top