我正在使用Delphi 2007。如何将GIF/PNG图像放置在BitBtn组件上?(最好支持alpha透明度)
我该如何在Delphi的BitBtn上放置GIF/PNG/...图像?
原标题:
最佳回答
PngComponents包含一个名为PngBitBtn的组件,可以正确显示带有Alpha透明度的PNG图像。它们有些旧,但是可以通过一些工作在Delphi 2007下安装。
问题回答
使用像Photoshop(或更便宜的软件)这样的图形程序将图像转换为位图。BitBtn不能接受GIF或PNG图像。
PNG支持仅由Delphi 2009完全支持。有一个免费软件包(以MPL 1.1许可)命名为GraphicEx,可让您在设计时/运行时加载图像,但在Delphi 2007中,按钮上将无法获得Alpha混合透明度。
PNG图像,包含在Delphi 2009k中,应该可以完成这项工作。如果我们能找到它。
相关问题
热门标签
- winforms
- combobox
- fogbugz
- java
- date
- internationalization
- asp.net
- iis
- url-rewriting
- urlrewriter
- c#
- enums
- ocaml
- haxe
- algorithm
- string
- viewstate
- .net
- c++
- c
- symbol-table
- mysql
- database
- postgresql
- licensing
- migration
- vb.net
- vb6
- declaration
- vb6-migration
- python
- psycopg2
- backup
- vmware
- virtualization
- gnu-screen
- authentication
- desktop
- excel
- xll
- cultureinfo
- regioninfo
- oracle
- client
- session
- download
- html
- virtual
- constructor
- scenarios
- perl
- full-text-search
- javascript
- ajax
- testing
- oop
- inheritance
- vim
- encapsulation
- information-hiding