On Tue, Sep 12, 2000 at 10:58:05PM +0200, Shay wrote:
> Hi,
> i'm trying to send a bmp file from the PC to the Palm, and display it on the
> Palm using WinDrawBitmap
> i managed to do that for 1 bit bmp, but i can't manage to do that on other
> bit depths.
> 
> must i use bmp family ? or can i just put the depth in the bitmap header ?

You can use a bitmap, but the SCREEN must be set to a depth greater
than or equal to the bitmap you want to draw.  So if the screen is in
1bpp, a 4bpp bitmap won't draw properly, if at all.

Otherwise the bitmap structure or resource has to have the proper
depth and other parameters.  You can't just set the depth in the
header since things like bytes per scanline change depending on depth.

You don't need a "family", but the bitmap has to be correctly
formatted for the depth is says it is.

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

Reply via email to