Hi,
  for the clies with PalmOS 4.0 you will need the sony clie SDK (hires).
For drawing in hires you will need to load the hires shared library that
is present on those devices. It exports hires-function-versions for most
of the Win* and Fnt*, such as HRDrawBitmap. You cannot use version 3
bitmaps directly as they are not supported on palmOS 4.0. You can
however use the "indirect" bitmaps. These bitmaps have a pointer to data
after the bitmap header instead of the data itself. So the trick is to
create a new header at runtime and reuse the bitmap data. You should
download the bitmapRsrc package from palmsource as it contains many
bitmap-helper functions and definitions.
Note that compression seams not to be supported on clie 4.0 devices. (at
least not the v3 "packbits", rle has been reported to be slow here)

There are a lot of issues with the hires library (fonts for example),
which have to be addressed, so a thin "graphics abstraction layer" is
the best way to go.

regards,
miro pomsar

On Tue, 2004-08-03 at 02:37, John Gruenenfelder wrote:
> I am revamping the graphics support in my application.  I have included new
> bitmap families so that devices running OS 5.0+ will see nice high density
> bitmaps.
> 
> For people running older Sony Clie models, I want to also show the same high
> density bitmaps.  Rather than include two copies of the larger bitmap, it
> would be best to just have the Clie code access that member of the bitmap
> family.
> 
> However... there does not seem to be any function in the OS or glue library to
> access the high density bitmaps on older models.  Since the OS on the older
> hardware won't change, I can just access the resource directly and use a
> bitmap pointer to it.  But, I need to know how to access it.
> 
> I've tried searching the palm-dev archive as well as the clie forum archive,
> but without any success.  Can anybody offer pointers on how to accomplish
> this, or perhaps you have a superior alternative method?  Thanks!
> 
> 
> -- 
> --John Gruenenfelder    Research Assistant, Steward Observatory, U of Arizona
>                         [EMAIL PROTECTED]
> Try Weasel Reader for PalmOS  --  http://gutenpalm.sf.net
> "This is the most fun I've had without being drenched in the blood
> of my enemies!"
>         --Sam of Sam & Max


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

Reply via email to