Hi!
> 
> Does anyone know if there's any disadvantage to
> compressing bitmaps via Pilrc with COMPRESS keyword?
> 
> I've noticed it can save a few K, but I'm wondering if
> there's a performance penalty.

There is a performance penalty when you are drawing the 
bitmap. If you need to paint the bitmap repeatedly, like in 
a game, you can circumvent the performance penalty by 
drawing the compressed bitmap to an offscreen buffer, and 
then blitting that buffer to the window with 
WinCopyRectangle. Please note that the offscreen buffer will 
usually be created with WinCreateOffscreenWindow in dynamic 
heap, which is a very scarce resource :-(

Cheers,
Tilo




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

Reply via email to