Re: Cocoa and PICT
Re: Cocoa and PICT
- Subject: Re: Cocoa and PICT
- From: "I. Savant" <email@hidden>
- Date: Mon, 13 Aug 2007 13:14:23 -0400
On 8/9/07, I. Savant <email@hidden> wrote:
> If I get
> beautifully-rendered PDF or EPS data from my view and create an image
> (or even directly creating an image representation), transparency is
> lost *and* the image appears to be converted to a *bitmap*
> representation. Numerous sources (lists, not the documentation) say
> this is a basic limitation of Cocoa's PICT support. This, in short,
> SUCKS.
Alright, *many* thanks to those who've offered up some great insight
and tips (with special thanks to Scott Thompson who gave me some extra
pointers off-list). I've found what appears to be a very good
solution, thanks to a cocoadev.com post by Julian Blow:
http://www.cocoadev.com/index.pl?HowDoICreatePICTDataInCocoa
I had seen it once in the beginning of my researching this problem
but didn't quite understand its usefulness as I still had no concept
of just what was involved with my goal. It needed only minor tweaks to
support color (converting NSColor to an RGBColor) but works very well.
The only thing I'm having trouble with at the moment is the
NSBezierPath's -setFlatness: does not appear to make things very
smooth. Does anybody know a good sweet spot for getting smoother arcs
with a flattened bezier path?
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden