So, I have a png file that uses transparency(is actually a circle with gradient effect from black, in the middle, to transparent on the margins). I am putting this on a form using TImage. I am setting TForm1.Color and the TForm1.TransparentColorValue to the same value and TForm1.TransparentColor:=true. Now, when I run the program the gradient part of the image is displayed with the color of the form. What I am looking for is to enable the transparency of the png image using the transparent form effect. What am I doing wrong? I am using Delphi 2010 Trial.
+4
A:
I suspect you're trying to create something like a transparent splashscreen, if that's the case, you can read these great articles, they describes a nice way to use a transparent png in a delphi form.
Bye.
RRUZ
2009-10-13 06:15:29
+1
A:
Your settings are wrong. I am doing this (With a bitmap).
The TImage.Transparent should be false.
The Form.TransparentColourValue should be the colour of the part of The TImage that you want to be transparent.
The Form.TransparentColor should be True.
[Edit] It does not matter what colour the form is if the Image covers it completely
Despatcher
2009-10-13 14:28:24