How to convert 32bit to 24 bit NSBitmapImageRep
How to convert 32bit to 24 bit NSBitmapImageRep
- Subject: How to convert 32bit to 24 bit NSBitmapImageRep
- From: Vinay Prabhu <email@hidden>
- Date: Wed, 26 Jul 2006 20:09:32 +0530
- Importance: Normal
Hi,
Is there any direct API to convert from 32 bit to 24 bit NSBitmapImageRep?
I couldn't find any direct way, I have tried 2 methods,
1) Obtained the data pointer from 32 bit NSBitmapImageRep, and created new
image rep
using the initWithBitmapDataPlanes API.
This resulted in junk output.
2) Created a new image rep using the initWithBitmapDataPlanes API by passing
"nil" for data pointer.
Then obtained the data pointer using "bitmapData" API and copied the data
from 32 bit to 24 bit, without passing alpha information.
This also resulted in junk output
Any better method to do this?
Thanks in advance.
Regards
Vinay
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or email@hidden
_______________________________________________
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