Thanks for youe great help!
I've got it! ^_^
Oscar
----- Original Message -----
From: "Richard Burmeister" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, April 16, 2001 5:20 AM
Subject: RE: Bitmap width and height
> > From: Oscar Lee
> >
> > Does anyone know how can I get a bitmap resources height and width at
run
> > time? And API can do it in a simple way? Please give me a help! ^_^
> >
>
> One way, which may not work in future OS versions, is to use the height
and
> width members of the bitmap structure. For example:
>
> MemHandle theResourceHandle;
> BitmapPtr theBitmapPtr;
> Int16 width, height;
>
> theResourceHandle = DmGetResource( bitmapRsc, yourBitmapID );
> theBitmapPtr = (BitmapPtr)MemHandleLock( theResourceHandle );
> width = theBitmapPtr->width;
> height = theBitmapPtr->height;
> MemHandleUnlock( theResourceHandle );
> DmReleaseResource( theResourceHandle );
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/