如何在 Delphi 2007 上显示透明 PNG?

发布于 2024-07-14 12:36:40 字数 44 浏览 6 评论 0原文

TImage 控件不支持 PNG。 是否有一些第三方组件可以做到这一点?

The TImage control doesn't support PNG. Is there some third party component that will?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

梦回梦里 2024-07-21 12:36:40

尝试 PngComponents - 只要它们可用......

D2009 版本可以找到此处

编辑
在 Google 代码中,旧版本 Delphi 的以下链接:
http://code.google。 com/p/cubicexplorer/downloads/detail?name=PngComponents.zip&can=2&q=

Try PngComponents - as long as they are available...

A D2009 version can be found here

EDIT
On Google code the following link for older versions of Delphi:
http://code.google.com/p/cubicexplorer/downloads/detail?name=PngComponents.zip&can=2&q=

无所谓啦 2024-07-21 12:36:40

GraphicEx 将为您提供对 png 和许多其他格式的支持。

GraphicEx will give you support for both png's and many other formats.

你与昨日 2024-07-21 12:36:40

我已经成功地将 TPaintBox 组件与支持 PNG 的 DevExpress TcxImageList 一起使用,然后使用列表的工具在 OnPaint 中绘制图像。 效果很好。 DevEx 也有一个 TcxImage,但我没有尝试过。

I have successfully used the TPaintBox component with the DevExpress TcxImageList which supports PNGs, and then drawn the images in the OnPaint using the list's facilities. Worked well. DevEx also have a TcxImage, but I've not tried that.

猫腻 2024-07-21 12:36:40

DevEx TCXImage 组件直接支持 PNG。

CXImage1.Picture.LoadFromFile(myimage.png)

DevEx TCXImage component support PNG straight forward.

CXImage1.Picture.LoadFromFile(myimage.png)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文