Quote from
fkapnist on December 30, 2021, 1:11 am
Quote from
luishp on December 27, 2021, 12:41 pm
@fkapnist even if you don't see the animation playing on the user interface, it will work perfectly once you run your application.
It's even possible to use more modern formats as .webp images and animated images (just add the image to the library and use SetObjectAttribute to load it):
SetObjectAttribute "Image1" "src" "./img/myimage.webp"
SetObjectAttribute "Image1" "src" "./img/myimage.webp"
SetObjectAttribute "Image1" "src" "./img/myimage.webp"
Click here for a sample animated .webp image.
Regards.
I didn't know about SetObjectAttributes. I thought "source" in Properties would be enough... But, yes, it does work now. If you don't see the animation in the user interface, the _Test folder also needs an identical img folder to test your images. Thanks!
Quote from
luishp on December 27, 2021, 12:41 pm
@fkapnist even if you don't see the animation playing on the user interface, it will work perfectly once you run your application.
It's even possible to use more modern formats as .webp images and animated images (just add the image to the library and use SetObjectAttribute to load it):
SetObjectAttribute "Image1" "src" "./img/myimage.webp"
SetObjectAttribute "Image1" "src" "./img/myimage.webp"
SetObjectAttribute "Image1" "src" "./img/myimage.webp"
Click here for a sample animated .webp image.
Regards.
I didn't know about SetObjectAttributes. I thought "source" in Properties would be enough... But, yes, it does work now. If you don't see the animation in the user interface, the _Test folder also needs an identical img folder to test your images. Thanks!
luishp has reacted to this post.