jbv wrote:
http://lists.runrev.com/mailman/listinfo/use-livecode
jbv wrote:
>"One more question : what happens to the imagedata
>when an image is resized ?
>For instance :
>
> put width of img 1 into w
> put height of img 1 into h
> put w/h into tratio
> set width of img 1 to 150
> set height of img 1 to 150/tratio
>
>And then when you crop the image..
Sorry for the multiple messages, but I found the solution
to my problem :
after resizing an image, it seems necessary to update its
imagedata before cropping it :
put width of img 1 into w
put height of img 1 into h
put w/h into tratio
set width of img 1 to 150
set height of i
Thank you for your replies.
One more question : what happens to the imagedata
when an image is resized ?
For instance :
put width of img 1 into w
put height of img 1 into h
put w/h into tratio
set width of img 1 to 150
set height of img 1 to 150/tratio
And then when you crop the im
jbv wrote:
"Actually, it looks like the "crop" function doesn't work
on images with transparencies, or it outputs weird results..."
I tried to crop images with and without transparencies (both png images)
programmatically as visible or hidden images and it worked all the time.
Imagedata was what
It sounds like you are doing the image cropping
programmatically. In theory you could move the
image off screen so it doesn’t have to be transparent,
crop it there, and then move it back when you’re done.
Rick
> On Sep 24, 2024, at 2:35 PM, jbv via use-livecode
> wrote:
>
> Actually, it looks
Actually, it looks like the "crop" function doesn't work
on images with transparencies, or it outputs weird results...
Le 2024-09-24 11:16, jbv via use-livecode a écrit :
Hi list,
When cropping an invisible image, what happens to the imagedata?
I might be wrong, but it looks like the imagedata