How do you resize a snapshot from rect?

Mark Wieder mwieder at
Wed Nov 17 10:53:34 EST 2010


Wednesday, November 17, 2010, 7:29:17 AM, you wrote:

> Hi there all,

> I take a snapshot from a card put I want the exported file to be saved
> resized (bigger).
> I do the same with printing but then I set the printscale to 1.8.
> Can anyone tell me what the best way is to do this?

>  ------
> set the fileType to "ogleJPEG"
>    ask file "Save:" with "*.jpg"
>    if char -4 to -1 of it <> ".jpg" then put ".jpg" after it
>    export snapshot from rect "-2,48,507,557"  of this card to file it as JPEG
> -----

Here's how I do resized snapshots:

    import snapshot from control id tControl
    set the resizequality of the last image to "best"
    set the width of the last image to tWidth
    set the height of the last image to tHeight

-Mark Wieder
 mwieder at

More information about the use-livecode mailing list