Re: One pixel wide bezier path
Re: One pixel wide bezier path
- Subject: Re: One pixel wide bezier path
- From: Andy Armstrong <email@hidden>
- Date: Wed, 25 Jan 2006 21:20:20 +0000
On 25 Jan 2006, at 21:05, Eamon Ford wrote:
Thanks! That made it work.
If you're doing a lot of bezier drawing it's worth having a deeper
understanding of the problem:
By convention computer graphics coordinate systems are arranged so
that the coordinate 37, 68 refers to the pixel 37 in from the left
and 68 up from the bottom (or down from the top) of the coordinate
system. OS X is more mathmatically correct: 37, 68 refers to the
point at the lower left corner of that pixel. That means that when
you draw at integral coordinates you are drawing through through the
corners of pixels - and pixels around that pixel corner will be
affected.
Does that make sense?
--
Andy Armstrong, hexten.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden