添加网络链接作为图像水印

发布于 2025-01-06 10:50:28 字数 362 浏览 2 评论 0原文

我目前正在为水印网站工作,我已经完成了工作,一切都工作正常。现在我想将网络链接添加到图像作为水印而不是文本。

我尝试过使用超链接并将其添加到图像中,但它只是绘制文本而不将其添加为 URL。

可以这样做吗?那么我怎样才能实现这一目标呢?

这就是我尝试做的事情:

pth.AddString(txtLink.NavigateUrl, New FontFamily(DropFont.SelectedValue), 0, Integer.Parse(DropFontSize.SelectedValue), New Point(left, top), StringFormat.GenericTypographic)

I am presently working for watermarking site and I have done completely and everyting is working fine.Now I would like to add a weblink to image as watermark instead of text.

I have tried by taking a hyperlink and adding to Image but it just draws the text and dosen't add it as a URL.

Is it possible to do so?I so how can I achieve this?

This is how I tried to do it:

pth.AddString(txtLink.NavigateUrl, New FontFamily(DropFont.SelectedValue), 0, Integer.Parse(DropFontSize.SelectedValue), New Point(left, top), StringFormat.GenericTypographic)

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

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

发布评论

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

评论(1

怕倦 2025-01-13 10:50:28

我想到了两种方法:

图像就是图像 - 它们没有嵌入您可以点击的链接 - 您需要额外的东西才能使它们可点击。

Two approaches come to mind:

  • Use anchor elements - <a> around your images with the appropriate link.
  • Use image maps with your images.

Images are images - they don't have links embedded in them that you can click on - you need something extra in order to make them clickable.

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