Modifying the transparent property of images
From Morfikwiki.com
Contents |
[edit] Introduction
This describes how to set the transparent property of image at runtime
[edit] Notes
At design time, the IDE sets this to false every time the Form containing the image is closed and reopened.
[edit] Solution
The first thing to do is ensure that in the original images, their backgrounds are set to transparent.
Also the following Tip may be relevant : Making_.png_images_transparent_in_Internet_Explorer
Now the key line of code is simply
MyImageControl.DOMStyle.Background := 'transparent';
