Re: Cocoa and PICT
Re: Cocoa and PICT
- Subject: Re: Cocoa and PICT
- From: Erik Buck <email@hidden>
- Date: Thu, 9 Aug 2007 08:10:25 -0700 (PDT)
The Tiff flavors supported by Cocoa do not include any vector variants AFAIK. Tiff is a gigantic "standard" and no platform implements all of it. I didn't even know Tiff could contain vector data. Therefore, any format translation that uses Tiff as an intermediate step will likely only produce a bitmap.
PDF as implemented by Mac OS X is not compatible with PICT. My memory is foggy, but I think PICT is constrained to integer coordinates and has several other significant limitations. PDF uses floating point coordinates and the Postscript imaging model.
I think transparency is preserved in PDF generated by NSView. It sounds like whatever conversion you attempt is compositing the generated PDF on a white background. Have you considered explicitly compositing the PDF on a clear background ?
If you must preserve the vector representation of the graphics, I suspect you are going to have to create the PICT using quickdraw. You could use Quartz when rendering to display and use quickdraw when producing pasteboard data if you want.
Sadly, Mac OS X does not have a ubiquitous editable vector graphics format. It is basically impossible to transfer editable vector graphics from one Mac OS X application to another. PDF could potentially be the ubiquitous standard, but it's not easy to edit and many Mac OS X applications won't accept it on the pasteboard so it's certainly not ubiquitous.
_______________________________________________
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