添加网络链接作为图像水印
我目前正在为水印网站工作,我已经完成了工作,一切都工作正常。现在我想将网络链接添加到图像作为水印而不是文本。
我尝试过使用超链接并将其添加到图像中,但它只是绘制文本而不将其添加为 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想到了两种方法:
以及适当的链接。
图像就是图像 - 它们没有嵌入您可以点击的链接 - 您需要额外的东西才能使它们可点击。
Two approaches come to mind:
<a>
around your images with the appropriate link.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.