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

与世无争的帅哥 提交于 2019-12-03 15:12:27

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.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!