• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSData and NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSData and NSImage (From: "Andy Bell" <email@hidden>)

  • Prev by Date: Re: NSInputStream Not Reading All Data [SOLVED]
  • Next by Date: Re: [NSOpenPanel] How to disable folder selection but still access their contents?
  • Previous by thread: NSData and NSImage
  • Next by thread: MVC
  • Index(es):
    • Date
    • Thread