Posts: 7
Threads: 2
Joined: May 2018
Reputation:
0
Location: belgium
How can I make a TIWimage transparent ?
I have tried loading a BMP image as 'picture', and I have set the property 'Transparentcolor' to clWebWHITE.
I would now expect that all white areas in the BMP become transparent, but this does not happen.
Posts: 2,205
Threads: 186
Joined: Mar 2018
Reputation:
79
Location: Auckland, New Zealand
If you want your application to scale, prefer TIWImageFile over TIWImage. TIWImage needs to be converted at runtime into a PNG (or JPG) to be served.
Also, it can't be cached by the web browser.
Best thing to do is: Create a transparent PNG file, save it into wwwroot folder and use the file name in TIWImageFile.
Posts: 7
Threads: 2
Joined: May 2018
Reputation:
0
Location: belgium
Loading the image with a transparent color seems to do the job. Thanks!
Posts: 2,205
Threads: 186
Joined: Mar 2018
Reputation:
79
Location: Auckland, New Zealand
This has been fixed in the new update that we are building. Cheers,