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

string width = img.Width.ToString();
string height = img.Height.ToString();
img.Dispose();
// string width = "400";
// string height = "400";
context.Response.Write("/ImgCut/TempImages/" + sNewFileName + sExtension+"|"+width+"|"+height);
context.Response.StatusCode = 200;
}
else
{
context.Response.Write("TypeError");
}
}
catch (Exception ex)
{
context.Response.Write("ServerError: " + ex.Message);
}
}
public bool IsReusable {
get {
return false;
}
tags: