Re: Creating NSImage with NSData
Re: Creating NSImage with NSData
- Subject: Re: Creating NSImage with NSData
- From: Mark Woollard <email@hidden>
- Date: Mon, 15 Mar 2004 19:39:55 +0000
Its a JPEG embedded in a DWF file. The whole app displays DWF files and
the image is parsed out into a data buffer which I then need to create
an NSImage from to render to screen. Its now working by creating an
NSBitmapImageRep and passing it into that.
Mark
On 15 Mar 2004, at 18:48, Shawn Erickson wrote:
On Mar 15, 2004, at 4:31 AM, Mark Woollard wrote:
Yes, have found that if I load the data into an NSBitmapImageRep, the
rep parses the data correctly and I can then add the rep to an
NSImage instance. Just thought that bit would be done by NSImage.
It normally is... what type of image data are you working with?
-Shawn
_______________________________________________
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.