Copying parts of pictures to the front

Ken Norris (dialup) pixelbird at interisland.net
Wed Jan 30 18:41:01 EST 2002


on 1/30/02 8:47 AM, J. Landman Gay at jacque at hyperactivesw.com wrote:
 
> The method you've been using in HC is pretty inefficient and I wouldn't
> bother with it in RR, especially since the capability you want is built
> in. Since the only problem is the amount of labor needed to convert the
> images to button icons, I'd write a script to do it.
----------
Actually, it's VERY efficient from an operating, as well as a graphics,
standpoint, once I got a handle on Uli's xDraw/xGWorld thing. The full
screen picts are super easy to modify, and the parts fire onto the screen
right out of RAM. Nothing gets any more responsive than that.
----------
> Look into the "import snapshot" command -- it will grab a portion of the
> screen and import it into the stack as an image. Write a repeat loop
> that takes snapshots of each button rect and records the resultant image
> ID in a field or a text log so you can reference it later.
>
> Depending on how your buttons are set up, the script may also be able to
> create the transparent buttons and assign the icon and hilite icon IDs
> at the same time -- and then you wouldn't even need the reference list.
----------
That's what I meant when I wrote about writing a script to automate the copy
process. Needless to say, I didn't know about "import snapshot".

BTW, are there size limits on button icons? The current size (at 72 ppi) is
52 x 54 for most of them, but some are longer, some shorter, some longer AND
shorter.

Thanks and best regards,
Ken N.




More information about the use-livecode mailing list