Skip navigation.
 
mlHow to convert 32bit to 24 bit NSBitmapImageRep
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>

Related mailsAuthorDate
mlHow to convert 32bit to 24 bit NSBitmapImageRep Vinay Prabhu Jul 26, 16:39
mlRe: How to convert 32bit to 24 bit NSBitmapImageRep Michael Ash Jul 27, 03:05
mlRE: How to convert 32bit to 24 bit NSBitmapImageRep Vinay Prabhu Jul 27, 11:19
mlRe: How to convert 32bit to 24 bit NSBitmapImageRep Pascal Pochet Jul 27, 13:06
mlRE: How to convert 32bit to 24 bit NSBitmapImageRep Vinay Prabhu Jul 27, 13:45