• 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: 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


  • 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


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

  • Prev by Date: Re: [Newbie] How to make application reappear after a close?
  • Next by Date: image wont display in custom nsview
  • Previous by thread: Re: Most efficient way to get the pixel dimensions of a JPG
  • Next by thread: Scrolling a view containing two subviews (NSTextView weirdness)
  • Index(es):
    • Date
    • Thread