图片/相框
Delphi有什么好的组件可以创建像照片周围的信使框架这样的框架吗?
Is there any good component for Delphi to create a frame like the messenger frame around a photo?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该帧基本上只是一个位图。 Windows API 中似乎没有任何函数可以绘制此图。相反,如果我没记错的话,SO 的前一个提问者发现这个(或至少是一个非常相似的)位图作为资源位图存储在
explorer.exe
中。因此,编写一个在这样的框架内显示位图的 Delphi 组件将是微不足道的——只需复制该位图即可。然而,我觉得这是错误的(copyvio 或者至少是不礼貌的行为)。当然,您可以使用 GIMP 或 Photoshop/ 绘制您自己的框架版本,并将其作为位图包含在内。
另请注意,在运行时将位图效果(例如色调偏移)应用于位图非常容易。
This frame is basically just a bitmap. There seems not to be any function in the Windows API to draw this. Instead, a previous questioner here at SO found that this (or at least a very similar) bitmap is stored as a resource bitmap in
explorer.exe
, if I recall correctly.Hence, to write a Delphi component displaying a bitmap inside such a frame would be trivial -- one just have to copy this bitmap. However, I feel this would be wrong (copyvio or at least bad manners). But of course you can draw your own version of a frame /using The GIMP or Photoshop/, and include it as a bitmap.
Also notice that it is very easy to apply bitmap effects, such as hue shifts, to a bitmap during run-time.
看看我们的 MicroPic 非常小的工具。
http://bouchez.info/micropic.html
您已在页面上获得源代码。
这对您来说可能很有趣,因为开始为任何图片绘制自定义框架。
我几年前写的,只是为了帮助我女朋友建立她的网站,在插入图片之前没有使用 Photoshop...
Take a look at our MicroPic very small tool.
http://bouchez.info/micropic.html
You've got the source code on the page.
It could be interesting for you, as start for drawing a custom frame to any picture.
I wrote this years ago, just to help my girl friend with her web site, without using photoshop before inserting pictures...