Pixel Drawing Program 3
Pixel Drawing Program 3
- Subject: Pixel Drawing Program 3
- From: Sebastian Gomez Papiol <email@hidden>
- Date: Sat, 15 Feb 2003 20:16:42 +0100
I understand now better how quartz print graphics on the screen and I
believe I have one solution for draw one pixel paths. I explain the
solution.
First of all, I moved the center of the coordinate system to (-0.5,
-0.5) with the method setFrameOrigin:
Now if I paint horizontal or vertical lines with a 0.5 width the lines
measures only 1 pixel in the screen.
But this solves partially my problem, since if I draw curved or
inclined lines, in some cases quartz draw 2 or 4 pixels instead of 1.
My question is, I can, with some trick, modify que coordinate system,
adding clipping or something else for draw always lines only 1 pixel
width?
Thanks again.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.