But, because of some considerations, I want to let bitmaps displayed
in low density in case of Palm OS5.


Is it possible? If possible, how to do that?


I dunno...how about just trying it?
If you display a V2 bitmap on OS 5 it'll be in low density just like it OS 4. Exactly what problem are you having?

I guess he means that when the bitmap gets drawn in OS5 on a high resolution display, the pixels are doubled (for 320x320), and therefore the bitmap appears same size and there's no real gain is display space.


If you want the same display to look tiny on a high resolution display, you have to switch the coordinate mode to "native coordinates", before drawing the bitmap. Code was something like

WinPushDrawState();
WinSetCoordinateMode(native);
WinDrawBitmap(..);
WinPopDrawState();

This is just straight out of my memory and I'm sure I've got some function names and arguments wrong, but you can read it up in the API Documentation or in the Companion.
This should work for both OS4 and OS5 if I'm not mistaken.


Another problem is how to get fonts and controls to be displayed tiny. Haven't really tried yet, but they are always drawn in standard coordinate mode, and therefore take more pixels on high-resolution screens.

Bye,
Jan


-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to