Re: How to cache images?

2007-01-30 Thread Alexander R. Pruss
You are assuming that the bitmap bits follow the bitmap header. This assumption is not justified in the case of bitmaps in system windows. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: How to cache images?

2007-01-20 Thread Horace Ho
Tried yesterday, but not successful... BitmapPtr icon_bmp = WinGetBitmap(icon_win); // from an offscreen UInt32 bmp_data_size = 0; UInt32 bmp_head_size = 0; BmpGetSizes(icon_bmp, &bmp_data_size, &bmp_head_size); UInt8 bmp_version = BmpGetVersion(icon_bmp); void *temp_ptr = NULL; err = FtrPtrNew

Re: How to cache images?

2007-01-19 Thread Aaron Ardiri
On 1/19/07, Horace Ho <[EMAIL PROTECTED]> wrote: The problem is how can I store a bitmap efficiently? Any chance I can FtrPtrNew some memory and store what is returned by BmpGetBits? Or there is a better way? did you try this? :) already solved it yourself before you hit the send button. but t

How to cache images?

2007-01-19 Thread Horace Ho
I need to access images (jpeg, gif) fast. So the first thing in mind is WinCreateOffscreenWindow and store the WinDrawBitmap result after PalmPhotoOpenImageV2 the image files. The problem is how can I store a bitmap efficiently? Any chance I can FtrPtrNew some memory and store what is returned