--- Aaron Ardiri <[EMAIL PROTECTED]> wrote: > > I have an application with two sets of bitmaps; one for 160x160 displays > and > > one for 320x320 displays. Since I am using PilRC, I am using > BITMAPFAMILYEX. > > Is there a way for me to switch to the lower resolution bitmaps on the > fly? I > > am wanting to do this as a demo to show the difference between high and > low > > resolution. > > use a BitmapV3, and BmpSetDensity() :) and, then draw the bitmap. you can > then > use the same bitmap, and, show one smaller than the other *g*
Sort of works. Here is what I have right now as some test code: ----- MemHandle hBitmap; MemPtr pBitmap; BitmapTypeV3 *pBitmap3; hBitmap = DmGetResource(bitmapRsc, bitmapID_photographTop); pBitmap = MemHandleLock(hBitmap); pBitmap3 = BmpCreateBitmapV3(pBitmap, kDensityLow, BmpGetBits(pBitmap), NULL); WinDrawBitmap(pBitmap3, 0, 0); // compiler warning here MemHandleUnlock(hBitmap); DmReleaseResource(hBitmap); ----- I do get a compiler warning with WinDrawBitmap (I'm not surprised here). The bitmap is drawn in low density mode but it is slightly offset and is always in black and white. Also, the simulator gives an error when exiting the program. Any ideas on how to draw the V3 bitmap? Mike > > --- > Aaron Ardiri [EMAIL PROTECTED] > CEO - CTO +46 70 656 1143 > 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/ __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
