Can you copy the image of an existing image control into another image control using code? I tried setting the ImageData, but the result was garbled.
Thanks
How to Set the Image of an Image Control
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: How to Set the Image of an Image Control
Hi McJazz,
or less obvious
If you use imageData the dimensions of image object 1 and 2 have to be exactly the same, then it works. Above will adapt the image size.
Kind regards
Bernd
Code: Select all
put image 1 into image 2
Code: Select all
set the text of image 2 to the text of image 1
Kind regards
Bernd
Re: How to Set the Image of an Image Control
Thanks. I thought it should be simple. It worked once I added ID to the image number.