FROM : Vinay Prabhu
DATE : Wed Jul 26 16:39:32 2006
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_removed>
DATE : Wed Jul 26 16:39:32 2006
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_removed>
| Related mails | Author | Date |
|---|---|---|
| Vinay Prabhu | Jul 26, 16:39 | |
| Michael Ash | Jul 27, 03:05 | |
| Vinay Prabhu | Jul 27, 11:19 | |
| Pascal Pochet | Jul 27, 13:06 | |
| Vinay Prabhu | Jul 27, 13:45 |






Cocoa mail archive

