> I want to generalize my application, such that it works in all devices, > showing color or black & white images according to the device used. > One way of solving this problem would be creating Bitmap Families. > But, In this particular application, I am using Offscreen windows, which > copies the colored images. > So, to work in all devices, Is it necessary to track the version and the > supported depth and paste the corresponding Offscreen Window (either 1 bit, > 4bit or 8 bit). But i feel that it would result in some clumsy coding. > Your suggestion and ideas are always welcome.
when you create an offscreen window - it'll use the same depth as the screen :) thats how it works. when you draw your bitmap to it, the API will select the best depth from the bitmap family.. you dont need to do anything else. try it, it might surprise you :) --- Aaron Ardiri CEO - CTO Mobile Wizardry http://www.mobilewizardry.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
