首页 > 问答

帝国CMS程序安装头像裁切插件,帝国CMS怎么实现头像裁切功能(17)

作者:轶名 来源:网络 2014-01-22 10:26:01

帝国CMS是一个功能很强大的门户CMS系统,可是它的个人空间功能却并不强大,甚至会员头像都不能实现自动裁剪功能,要怎么给自己的帝国CMS系统安装头像裁切插件呢?最佳答案:头像裁切一直是一个棘手的问题,网上一些裁...


   }

}

<%@ 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();

 17/22   首页 上一页 15 16 17 18 19 下一页 尾页
上一篇 下一篇

I 热点 / Hot