> Hi,
>
> It fails on the line
> WinHandle theWindowHandle;
> UInt16 theRowBytes, theHeight;
>
> theRowBytes = theWindowHandle->gDeviceP->rowBytes;
>
> saying that gDeviceP is not a member of WinHandle.
of course.. thats going beyond the API abstraction layer :)) accessing
the data directly? not good.. see if you can find a new API call to
get the information you want.. you can get the depth, the width.. i
think you can figure the rest out.
> Alternatively - has anyone got a method of getting a bitmap from a gadget
> into a BitmapPtr (preferably compatible with as many OS versions as
> possible)
sure.. piece of cake.. create an offscreen window, copy the window
contents using a rectangle.. and then get the bitmap handle of the
window.. no issues here.. just gotta choose the right API's to call.
// Aaron "Yes, still feel like John Marshall today." Ardiri
[EMAIL PROTECTED]
http://www.ardiri.com/ <--- free games!
+46 70 656 1143
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/