Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Most efficient way to get the pixel dimensions of a JPG
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Most efficient way to get the pixel dimensions of a JPG



On Jan 6, 2005, at 5:46 PM, John Fox wrote:

I'm looking for a really fast and memory efficient way to determine the pixel height and width of a JPEG image. Can someone help me with this? Right now I'm creating an NSBitmapImageRep and getting its pixelsWide and pixelsHigh, but there's a lot of overhead for doing this.

For a general-purpose method which will also handle other image formats, use QuickTime.


Check out the GraphicsImportGetNaturalBounds API.

___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________
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


References: 
 >Most efficient way to get the pixel dimensions of a JPG (From: John Fox <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.