Re: One pixel wide bezier path
Re: One pixel wide bezier path
- Subject: Re: One pixel wide bezier path
- From: Eamon Ford <email@hidden>
- Date: Wed, 25 Jan 2006 13:23:09 -0800
Ah, okay. Yeah, that makes more sense. Thanks.
On Jan 25, 2006, at 1:20 PM, Andy Armstrong wrote:
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