更新时间:2023-11-10 20:44:10
我怀疑你正在尝试创建像透明的 splashscreen ,如果是这样,你可以阅读这些伟大的文章,他们描述了一个很好的方式来使用透明png以delphi形式。
再见。
I have a PNG image that uses transparency (it 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 set 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.
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.