Re: NSData and NSImage
Re: NSData and NSImage
- Subject: Re: NSData and NSImage
- From: David Duncan <email@hidden>
- Date: Thu, 23 Oct 2008 16:15:43 -0700
On Oct 23, 2008, at 11:30 AM, Andy Bell wrote:
I have an NSData buffer with valid JPEG data which I can save to
disk using
writeToFile: and view the image easily. When I come to create an
NSImage
object from the same data I get an object returned back from
initWithData:
but the size property has dumb values. What does this mean? Is
this a
valid NSImage object?
What are the "dumb" values? The size that an NSImage reports are in
points, not pixels, so if the image is recorded as having a DPI other
than 72, then you will see values other than the pixel size of the
image.
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
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