Re: Convert PICT to NSImage
Re: Convert PICT to NSImage
- Subject: Re: Convert PICT to NSImage
- From: Douglas Davidson <email@hidden>
- Date: Mon, 27 Jun 2005 15:17:24 -0700
On Jun 27, 2005, at 3:12 PM, Ian was here wrote:
Still doesn't work though. It would seem that
"theData" is raw PICT data, so it needs to get
transformed by NSPICTImageRep (which it does). The
issue then, is that the correct data needs to be
pulled from the NSPICTImageRep. This is where I'm
stuck, and spinning my wheels. I need to pass an
NSData object containing the correct image data into
fileWrapper object.
One thing to keep in mind is that there are two PICT formats, an in-
memory format and an on-disk format. The on-disk format has 512
bytes of 0 (if I remember correctly) prepended to it. The data for
NSFileWrapper presumably would use the on-disk format.
Douglas Davidson
_______________________________________________
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