Re: Pixel Drawing Program 4
Re: Pixel Drawing Program 4
- Subject: Re: Pixel Drawing Program 4
- From: Shawn Erickson <email@hidden>
- Date: Sun, 16 Feb 2003 20:01:02 -0800
On Sunday, February 16, 2003, at 01:45 PM, Sebastian Gomez Papiol
wrote:
I understand how quartz draw pixels. But since I need some trick to
force inclined and curved lines to have only one pixel, understand how
quartz work don't help me much.
In a drawing program the user must be able to draw free lines with the
mouse, and also need tools to draw 1 pixel lines in every angle and
position. And I discovered is impossible to draw inclined lines of 1
pixel without forcing the draw to a imaginary pixels grid.
Is possible than I need to use other methods to draw these kind of
lines, but which is the better system? I can force NSBezier to draw
lines in a bitmap image coordinate system?
NSBezierPath does draw into what I guess you could call a "bitmap image
coordinate system" when drawing to the screen or into a bitmap image
(NSBitmapImageRep).
or perhaps I need to make my own line methods to draw insite an
bitmap image?
You could try using QuickDraw. QuickDraw may do a little better then
Quartz because Quartz is most likely optimized to render using
anti-aliasing (which you are purposely turning off).
-Shawn
_______________________________________________
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.