Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hello.
how to convert pure RGB (in unsigned char*) to some graphical format that might be displayed?
thanks.

If you use IDIB instead of IImage, you can directly access the pixel data through that interface, so basically all you would have to do is create a compatible IBitmap and get the IDIB interface using IBitmap_QueryInterface(). If you really need an IImage, you could create a Windows format bitmap in memory (or any image format the phone supports, but BMP is probably the simplest) as an IMemAStream and use IImage_SetStream().

If you use IDIB instead of IImage, you can directly access the pixel data through that interface, so basically all you would have to do is create a compatible IBitmap and get the IDIB interface using IBitmap_QueryInterface(). If you really need an IImage, you could create a Windows format bitmap in memory (or any image format the phone supports, but BMP is probably the simplest) as an IMemAStream and use IImage_SetStream().