Delphi 7,将PNG加载到TImage [英] Delphi 7, load PNG to TImage

查看:1015
本文介绍了Delphi 7,将PNG加载到TImage的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只需要加载一个.PNG,尝试使用与其他格式一起使用的OleGraphic的LoadPic(),但是在PNG上失败。

Just want to load a .PNG, tried with my LoadPic() using OleGraphic that works with other formats, but it failed on PNG.

目标是将图像复制到隐藏的位图,然后将其屏蔽并复制到可见的工作图像画布。如果CopyRect不这样做,请随意提出其他建议。

The goal is to copy the image to a hidden bitmap whence it is then masked and copied to a visible working image canvas. Feel free to suggest something else if CopyRect doesn't do this.

但主要问题:加载PNG。怎么样?我找到了很多页面(f.ex.TPNGImage),但是网络上的所有资源和链接都已经死了,已经或不可下载。

But the main question: Load PNG. How? I've found a lot of pages (f.ex. TPNGImage), but all the resources and links on the web are dead, gone or not downloadable.

推荐答案

我将使用软宝石现在。感谢有帮助的答案!

I will use GraphicEx from Soft Gems for now. Thanks for helpful answers!

这篇关于Delphi 7,将PNG加载到TImage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆