Re: How to get image real number of bits per pixel
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.