Question : Convert 16bpp bitmap to 32bpp or to JPEG on Windows Mobile 5.0 onwards

I need to encode the screen capture on pda into either 32bpp bitmap or jpeg.

I've managed to make a conversion from 16bpp to jpeg with imaging interfaces, but since the colour depth is only 16bpp the resulting image it bad :)

So I reckon I either need to convert my initial 16bpp bitmap to 32bpp (and that bmp-to-jpeg code worked only with 32bpp) or please advise how to convert 16bpp-to-jpeg directly on WM50.

I could try to port and use IJG library (www,ijg.org), but before I do it, I thought maybe there is easier way.

Please advise! :)  I'm sure there is some existing code for 16bpp-to-32bpp bitmaps conversion, so I could try it first.

Answer : Convert 16bpp bitmap to 32bpp or to JPEG on Windows Mobile 5.0 onwards

Check here: http://www.experts-exchange.com/A_1739.html
It is Win32 code, but you will see the code creating the DIB section with 32 bpp. I'm not sure if it will work for WM. The WM code I will send you from home in an hour.
Also here: http://www.wmdeveloper.com/2009/10/3-hbitmap-win32-api.html
For Windows Mobile you may need a bit different dibsection, but I'm not sure, maybe in WM6 everything's OK.
Random Solutions  
 
programming4us programming4us