<%@ Page Language="C#" %>

<%
    Chukeh.IO.CImage.ImageWatermark(Context.Server.MapPath("Sample.jpg"), Context.Server.MapPath("Watermark.jpg"), 5, Chukeh.IO.CImage.PositionMode.TopLeft, Context.Server.MapPath("Sample_Watermark.jpg"));
    Chukeh.IO.CImage.TextWatermark(Context.Server.MapPath("Sample_Watermark.jpg"), "图片水印文字", "宋体", 18, "Red", "White", Chukeh.IO.CImage.PositionMode.TopRight, Context.Server.MapPath("Sample_Watermark.jpg"));
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>文件对象操作示例</title>
    <link href="Style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <h3><a href="index.htm">Chukeh.Data 小诸葛</a> - 图片文件操作示例</h3>
    <div>
        <fieldset>
            <legend>图片水印</legend>
            加注图片水印及文字水印后的图片<br />
            图片水印在左上角,文字水印在右上角<br />
            <img src="Sample_Watermark.jpg" alt="水印图片" />
        </fieldset>
    </div>
</body>
</html>