--- Aaron Ardiri <[EMAIL PROTECTED]> wrote:
> > pBitmap3 = BmpCreateBitmapV3(pBitmap, kDensityLow, BmpGetBits(pBitmap),
> NULL);
> > WinDrawBitmap(pBitmap3, 0, 0);  // compiler warning here
> 
>   WinDrawBitmap((BitmapType *)pBitmap3);

Yep, fixed the warning.

>   you are doing it right. but, maybe your bitmap isn't *perfect* :P
>   you might want to use an offscreen window (WinCreateBitmapWindow())
>   and use WinCopyRectangle(). i have never drawn a V3 bitmap using
>   WinDrawBitmap :P

I now have it working when the bitmap is not compressed.  When I do this (where
pBitmap is not a V3 bitmap, this is before the V3 bitmap creation):

err = BmpCompress(pBitmap, BitmapCompressionTypeNone);

It returns sysErrParamErr wich according to docs when I get this error "either
the compType parameter does not specify a compression type or the bitmap is
already compressed, is in the storage heap, or represents the screen.".

Could it be that

hBitmap = DmGetResource(bitmapRsc, bitmapID);
pBitmap = MemhandleLock(hBitmap);

puts the bitmap in the storage heap instead of dynamic where BmpCompress wants
it to be? Or it could be that PilRC 2.9p9 does not compress the bitmap properly
:).

Also, if the bitmap is uncompressed in the resource, I have to go through
BmpGetNextBitmap a number of times until I get the bit depth that I need for
the current screen mode.  This seems very tedious, is there a better way?

Mike

__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

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

Reply via email to