How to get image real number of bits per pixel
How to get image real number of bits per pixel
- Subject: How to get image real number of bits per pixel
- From: "Sebastien TOPIN" <email@hidden>
- Date: Tue, 25 Feb 2003 17:21:26 +0100
Hi Folks,
I am trying to get the real number of bits per pixel for a displayed image.
A NSImageView object enables me to drag n' drop a bmp image from the Finder
and display it in my app.
Then I got an NSBitmapImageRep from the NSImageView and did that:
int iBitsPerPix = [bittmapImageRep bitsPerPixel];
The result is always 32 even for grayscale 8 bits per pixel images or 24 bits
per pixel color images.
How can I get the image real number of bits per pixel of those images?
Thanks in advance,
Seb
_______________________________________________
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.