• 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: How to get image real number of bits per pixel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get image real number of bits per pixel


  • Subject: Re: How to get image real number of bits per pixel
  • From: "John C. Randolph" <email@hidden>
  • Date: Wed, 26 Feb 2003 14:16:14 -0800

On Wednesday, February 26, 2003, at 07:04 AM, Sebastien TOPIN wrote:

I am still not able to get the "real" number of bits per pixel from my bmp
image.

I don't know a way to do this with a .bmp short of writing your own bmp file parser, but for tiffs you can use tiffutil:

jcr@kaboom:Projects/DTS Examples/Handy Icons>tiffutil -info Scissors.tiff
Directory at 0x10008
Image Width: 128 Image Length: 128
Resolution: 72, 72
Resolution Unit: pixels/inch
Bits/Sample: 8
Compression Scheme: none
Photometric Interpretation: RGB color
Alpha: Present
Samples/Pixel: 4
Number of Strips: 1
Planar Configuration: Not planar
Directory at 0x110c2
Image Width: 32 Image Length: 32
Resolution: 72, 72
Resolution Unit: pixels/inch
Bits/Sample: 8
Compression Scheme: none
Photometric Interpretation: RGB color
Alpha: Present
Samples/Pixel: 4
Number of Strips: 1
Planar Configuration: Not planar



John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: How to get image real number of bits per pixel (From: "Sebastien TOPIN" <email@hidden>)

  • Prev by Date: Drawing strings at angles?
  • Next by Date: Re: PBI: tear-off tab items?
  • Previous by thread: Re: How to get image real number of bits per pixel
  • Next by thread: Re: How to get image real number of bits per pixel
  • Index(es):
    • Date
    • Thread