生成缩略图并加水印的方法 Posted on 2006-05-16 15:54 浪剑 阅读(134) 评论(0) 编辑 收藏 引用 网摘 所属分类: ASP.Net+C# <!--aspx文件--><%@ Page language="c#" Codebehind="WaterPhoto.aspx.cs" AutoEventWireup="false" Inherits="Example.WaterPhoto.WaterPhoto" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><HTML> <HEAD> <title>WaterPhoto</title> <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> <meta name="CODE_LANGUAGE" Content="C#"> <meta name="vs_defaultClientScript" content="JavaScript"> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> </HEAD> <body MS_POSITIONING="GridLayout"> <form id="Form1" method="post" runat="server" Enctype="multipart/form-data"> <FONT face="宋体"><input type="file" id="UploadFile" runat="Server" NAME="UploadFile"><br> <asp:Button id="Button1" style="Z-INDEX: 101; LEFT: 392px; POSITION: absolute; TOP: 264px" runat="server" Text="加水印"></asp:Button> <asp:Button id="Button2" style="Z-INDEX: 102; LEFT: 504px; POSITION: absolute; TOP: 272px" runat="server" Text="生成缩略图"></asp:Button> <asp:Image id="Image1" style="Z-INDEX: 103; LEFT: 16px; POSITION: absolute; TOP: 88px" runat="server"></asp:Image> <asp:Image id="Image2" style="Z-INDEX: 104; LEFT: 200px; POSITION: absolute; TOP: 96px" runat="server"></asp:Image> <asp:TextBox id="TextBox1" style="Z-INDEX: 105; LEFT: 16px; POSITION: absolute; TOP: 48px" runat="server"></asp:TextBox></FONT> </form> </body></HTML><!--aspx.cs类文件-->using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.HtmlControls;using System.Text;using System.Drawing.Imaging;using System.IO;namespace Example.WaterPhoto 相关文章: 2021-09-23 2021-09-02 2022-12-23 2022-12-23 2021-12-22 2021-07-19 2021-08-14