Hello,
Everything is OK after creation of BITMAPFAMILY containing (identical)
versions of the bitmap for 4bpp and 8bpp screen mode. Of course
BITMAPPALETTE was also specified.
Unfortunatelly my application grown up about 18kB.

Robert


"Robert Niedziela" <[EMAIL PROTECTED]> wrote in message
news:103107@palm-dev-forum...
>
> Hi gurus,
> I started tests of my application on PalmSimulator 5 (release) and found a
> problem with grayscale images. I use prc tools 2.2.1, sdk 4.0 and 5.0,
pilrc
> 2.9.
> In the application I switch video mode to 160x160, 256 colors and set a
new
> palette. Then I create offscreen window (in generic format), load bitmap
and
> draw it on the offscreen window. After it I copy content of offscreen
window
> into the screen. If bitmap was in 8bpp format, then everything is OK, but
if
> it was gray scale bitmap (4bpp) the colors on the screen (on copied
bitmap)
> are  totally changed. In a few forms I use this bitmap as a form object
and
> in those cases it looks OK.
> Of course on old emulator 3.5 everything is OK. Is it OS5 or emulator bug
?
> Maybe I do something wrong ?
> Color bitmaps are defined with BITMAPPALETTE and are compressed, gray
scale
> bitmaps are compressed.
>
> Regards,
>     Robert
>
>
>
>



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

Reply via email to