How can I make the form transparent according to the PNG image?

I have a PNG image that uses transparency (this is actually a circle with a gradient effect from black in the middle to transparent in the margins). I put this on the form with TImage. I set TForm1.Colorand TForm1.TransparentColorValueto the same value and TForm1.TransparentColor:=true.

Now, when I run the program, the gradient part of the image is displayed with the shape color. I am looking to ensure the transparency of PNG images using the transparent shape effect.

What am I doing wrong? I am using Delphi 2010 Trial.

+5
source share
2 answers

. ( ).

TImage.Transparent .

. TransparentColourValue TImage, .

Form.TransparentColor .

[] , , .

0

All Articles