FROM : R. Scott Thompson
DATE : Wed Oct 06 18:47:49 2004
On Oct 6, 2004, at 11:35 AM, Frank Midgley wrote:
> On Oct 4, 2004, at 8:28PM, ±è°æ¿Á wrote:
>
>> I need to check every pixels in a circlular(oval) area drawn by
>> bezierPathWithOvalInRect in NSBezierPath.
>> Is there any method to get the coordinates of every pixels in Oval
>> not in Rect.
>> Or I need something to check if a point is in the oval like
>> NSPointInRect.
>
> Um, -[NSBezierPath containsPoint:]?
I think you'd probably be better off drawing the oval into an offscreen
image and looking to see which pixels have been set.
Scott
--
Macintosh Software Engineering Consulting Services
Visit my resume at <http://homepage.mac.com/easco/RSTResume.html>
DATE : Wed Oct 06 18:47:49 2004
On Oct 6, 2004, at 11:35 AM, Frank Midgley wrote:
> On Oct 4, 2004, at 8:28PM, ±è°æ¿Á wrote:
>
>> I need to check every pixels in a circlular(oval) area drawn by
>> bezierPathWithOvalInRect in NSBezierPath.
>> Is there any method to get the coordinates of every pixels in Oval
>> not in Rect.
>> Or I need something to check if a point is in the oval like
>> NSPointInRect.
>
> Um, -[NSBezierPath containsPoint:]?
I think you'd probably be better off drawing the oval into an offscreen
image and looking to see which pixels have been set.
Scott
--
Macintosh Software Engineering Consulting Services
Visit my resume at <http://homepage.mac.com/easco/RSTResume.html>
| Related mails | Author | Date |
|---|---|---|
| ±è°æ¿Á | Oct 5, 03:28 | |
| Frank Midgley | Oct 6, 18:35 | |
| R. Scott Thompson | Oct 6, 18:47 |






Cocoa mail archive

