帝国CMS程序安装头像裁切插件,帝国CMS怎么实现头像裁切功能
2014-01-22 10:26:01

   }

}

<%@ WebHandler Language="C#" Class="ImgCut" %>
using System;
using System.Web;
public class ImgCut : IHttpHandler
{
   
   public void ProcessRequest (HttpContext context)
   {
       context.Response.ContentType = "text/xml";
       context.Response.Expires = -1;
       try
       {
           if (context.Request.Form["pPath"] != null)
           {
               string pPath = context.Request.Form["pPath"].ToString();
               string spPath=context.Server.MapPath("~"+pPath);
               string pSavedPath = pPath.Replace("TempImages", "FaceImages");
               string spSavedPath=context.Server.MapPath("~"+pSavedPath);
               string pOrigSta人体PointX = context.Request.Form["SX"].ToString();
               string pOrigSta人体PointY = context.Request.Form["SY"].ToString();