Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImageRep.imageFileTypes() doesnt work...



> NSBezierPaths don't have pixels.
>
> If you want all of the points that define a path, you can get them like
> this:

Thanks. Of course i know, that a NSBezierPath does not "have" pixels; was a
bad way to put it, I guess. I wanted to access all the "integer points"
(what I called pixels) INSIDE the path area (so
[myPath.containsPoint:testpoint] would return YES).

Anyway, I probably ask too much of the class.

But: can anyone maybe give me a fast way to calculate the area (you know,
square piixels, em, sorry, square points) of an NSBezierPath object (i guess
I could do it for rects and ovals, but freeform gets problematic... I havent
studied maths or IT...).

marco
_______________________________________________
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.

References: 
 >Re: NSImageRep.imageFileTypes() doesnt work... (From: "John C. Randolph" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.