You have to know lots of aspects.
- PDB format. If you want to simply display bitmaps, I recommend you to use
PRC instead of PDB. Anyway, to write PDB/PRC on the PC, you have to know
about BigEndian and LittleEndian.
- If you use 'Visual C++' to write PDB/PRC on the PC, note that, by default,
it enables structures packing for the speed-up. You have to disable
'structure packing' to generate data structures for Palm. This should be
applied to PDB/PRC structure, and also to BitmapType structure.
- 'bitmap.h' has the structure for Palm bitmap. There, note that Palm bitmap
has 2-bytes boundary. So, 'rowBytes' should be computed as '(width *
color_depth + 15) / 16 * 2'.
- The maximum color depth depends on the version of Palm OS. PalmOS 3.0 and
later support 2-bit grayscale. PalmOS 3.25 and later support 4-bit
grayscale. And PalmOS 3.5 with Palm IIIc supports 8-bit color mode. In most
case, you need to convert color bitmaps of PC into grayscale bitmaps for
Palm.
- Compression to save the memory.

Kijang Jung
SolidStreaming Inc.

"gundam" <[EMAIL PROTECTED]> wrote in message
news:25161@palm-dev-forum...
>
> I would like to write a program to display bitmap image on palm. Can
anyone
> tell me what kinds of thinks i need to know if i want to write a pc
program
> to convert pc bitmap file to palm bitmap file (pdb)?
> do i need to make a pdb file which have the structure of bitmap.h?
>
>
>
>
>



-- 
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