Vladan Markovic wrote:

Another suggestion (in addition to the one that Ben provided) might be to keep all the bitmaps in the same family, but declare only one family member for a particular depth. So you might create the family like this:

BITMAPfamilyex ID bitmapID
begin
   BITMAP "bitmap_v1_1.bmp" bpp 1 density 1 transparent 255 255 255
   BITMAP "bitmap_v1_2.bmp" bpp 2 density 1 transparent 255 255 255
   BITMAP "bitmap_v1_4.bmp" bpp 4 density 1 transparent 255 255 255
   BITMAP "bitmap_v1_8.bmp" bpp 8 density 1 transparent 255 255 255
   BITMAP "bitmap_v1_16.bmp" bpp 16 density 1 transparent 255 255 255
   BITMAP "bitmap_v1_16_hires.bmp" bpp 16 density 2 transparent 255 255 255
end

In 16 bit mode, the bitmap resolution would match the display, but in any other mode it would display only in low res. I didn't try this, but I think it would work. Bob.

Tnx,
it`s changing color depth OK, but can`t change resolution, do you know
something about this?

UInt32 widScr = 160;
UInt32 heiScr = 160;
UInt32 clrDpth = 8;
UInt8 enClr = 1;

WinScreenMode(winScreenModeSet, &widScr,  &heiScr, &clrDpth, &enClr);



"Robert Moynihan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]


Hi Vladan, have you looked at the WinScreenMode command?  Bob.



I am developing graphic app, In BITMAPFAMILYEX i have two bitmaps, 8bit


and


16bit color, this is ok, but i want allow user to choose between 8bit and
16bit design , (8bit is simple and clear), what is best way to do this,


how


can i force 16bit color device to show 8bit bitmap from BitmapFamily
resource?

Thank You,

Vladan Markovic
















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

Reply via email to