Re: Most efficient way to get the pixel dimensions of a JPG
Re: Most efficient way to get the pixel dimensions of a JPG
- Subject: Re: Most efficient way to get the pixel dimensions of a JPG
- From: Ricky Sharp <email@hidden>
- Date: Thu, 6 Jan 2005 18:35:00 -0600
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