Re: Cropping invisible images

2024-09-25 Thread Niggemann, Bernd via use-livecode
jbv wrote: http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Cropping invisible images

2024-09-25 Thread Niggemann, Bernd via 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..

Re: Cropping invisible images

2024-09-25 Thread jbv via use-livecode
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

Re: Cropping invisible images

2024-09-25 Thread jbv via use-livecode
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

Re: Cropping invisible images

2024-09-24 Thread Niggemann, Bernd via use-livecode
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

Re: Cropping invisible images

2024-09-24 Thread harrison--- via use-livecode
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

Re: Cropping invisible images

2024-09-24 Thread jbv via use-livecode
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