图片/相框

发布于 2024-09-30 15:43:11 字数 41 浏览 0 评论 0原文

Delphi有什么好的组件可以创建像照片周围的信使框架这样的框架吗?

Is there any good component for Delphi to create a frame like the messenger frame around a photo?

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

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

发布评论

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

评论(2

情独悲 2024-10-07 15:43:11

该帧基本上只是一个位图。 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.

桃酥萝莉 2024-10-07 15:43:11

看看我们的 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...

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