I get this in digest, so before the flame starts, Ben pointed out BmpSize()
:D

Still interested in the second part though.

-MD

> Or How to get the size of a BitmapPtr under OS 5....
> 
> In one of our apps, we do the following:
> 
>   Err                error = 0;
>   WinHandle        saveWinH = NULL;
>   BitmapType        *bp;
>   
>   saveWinH = WinSaveBits(bounds, &error);
>   bp = WinGetBitmap(saveWinH);
>   
>   // Validate Image Offset...
>   imageSize = MemPtrSize(bp);
> 
> 
> This works well, actually, on all 3.5/4.x devices and to-date have experience
> no ill effects.  However in OS/5 the Simulator blows up big time at the
> MemPtrSize() function.  If there's a better way to get the size of the bitmap,
> I'm open to it. 
> 
> On a side note, has anyone published anything that discusses how programs that
> scribble on the screen can capture the screen or portions from in PalmOS 5 and
> what we'll need to do to make that compatible with earlier versions? And
> backwards?  I'd like to give my users the ability to use sketches they've
> created in prior devices, but for now have to 'turn off' that functionality.
> 
> -MD


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

Reply via email to