Need a little help with image resizing

J. Landman Gay jacque at hyperactivesw.com
Sat Aug 11 13:38:02 EDT 2018


Do you mean that you just want more white space around the image? You can 
use the crop command for that.

--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On August 11, 2018 11:54:16 AM Michael Kristensen via use-livecode 
<use-livecode at lists.runrev.com> wrote:

> Hi there
>
> I have an image B1 with a scribble made with brush tool in it.
> I want to double the width of the image without distorting the scribble.
>
> The plan is to:
> 1. select the image with select tool
> 2. cut the image out
> 3. resize the image
> 4. paste the image back in, in the original proportions
>
> As script:
>
> on mouseUp
>   lock screen
>
>   put (item 1 to 2 of rect of img B1) into K1
>   put (item 3 to 4 of rect of img B1) into K2
>
>   choose select tool
>
>   drag from K1 to K2
>
>   cut
>
>   set width of img B1 to 2*(width of img B1)
>
>   drag from K1 to K2
>
>   paste
>
>   choose browse tool
> end mouseUp
>
>
> But the script does not work. The proportions of the image after paste is 
> as if the image was stretched.
>
>
> NOTE
> This works if I cut from one image and paste into another.
>
> It also works if I do it manually on image B1.
>
>
> Thanks
>
> Mic
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode







More information about the use-livecode mailing list