Our application, which currently runs on WindowsCE, exclusively uses Image
PixelFormat 16bppRgb565.  This assumption permeates our code.  However, as
we're porting this to run on a Mac with MonoTouch -- it doesn't seem to
support this mode at all!

For example, we create a new bitmap with this line of code:

     Bitmap b = new Bitmap(height, width, PixelFormat.16bppRgb565);

And this line works, but returns a bitmap with *32bppRgb* format instead! 
Our code can't use this format!  When we call LockBits(...,
PixelFormat.16bppRgb565), it crashes.  But if we change the format to 32bpp,
it works.

So we've got a critical dilemma.  If we can't get Mac/iOS to support 16bpp
image formats, we're going to have to refactor a lot of our code.   We
*must* continue to support 16bpp on WindowsCE, because that's the native
format for the screen display.

Question:  Can we get Mac/iOS to support bitmaps with pixel format
"16bppRgb565" ?
 



--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Does-iOS-support-16bpp-Image-Formats-tp4656945.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to