ASP.NET 图片加水印防盗链实现代码(2)


<?xml version="1.0" encoding="utf-8" ?>
<watermark>
<allowhost>localhost:6219</allowhost><!--允许访问的域名-->
<isflag>true</isflag><!-- true、false-->
<type>font</type><!-- img、font-->
<files>/config|/upfiles/ab</files><!--需要加水印的文件夹-->
<position>bottom-right</position><!-- top-left、top-right、bottom-left、bottom-right-->
<img-path>~/UpFiles/Watermark.png</img-path><!-- 水印位置 -->
<font-style>1</font-style><!--普通文本 0, 加粗文本 1, 倾斜文本 2, 带下划线的文本 4, 中间有直线通过的文本 8-->
<font-size>60</font-size>
<font-color>red</font-color>
<font-content>¥:8000元</font-content>
<errimgpath>images/error.jpg</errimgpath><!-- 盗图片的请求返回的跟目录下的某图片 -->
</watermark>

您可能感兴趣的文章:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wjjwjf.html