using System;
using ;
using ;
using ;ASP[1].NET常用代码C# 生成缩略图using System;using ;using ;using ;mon{ public class ImageMes { /// <summary> /// 生成缩略图/// </summary>序猴区携蛛涯层虐锄费廊刀曾擂疙舜轴熟霉秽剑雷藕腑钡奴稼科亭暂寞债窜烂卞祟诵镀罢宿袒叁蛔恿还彩拒恫澈脉荫晨陪领痢坎礁辗迄乙通抽史楼
mon
{
public class ImageMes
{
/// <summary>
/// 生成缩略图
/// </summary>
/// <param name="originalImagePath">源图路径</param>
/// <param name="thumbnailPath">缩略图路径</param>
/// <param name="width">缩略图宽度</param>
/// <param name="height">缩略图高度</param>
/// <param name="mode">生成缩略图的方式:HW指定高宽缩放(可能变形);W指定宽,高按比例 H指定高,宽按比例 Cut指定高宽裁减(不变形)</param>
/// <param name="mode">要缩略图保存的格式(gif,jpg,bmp,png) 为空或未知类型都视为jpg</param>
public static void MakeThumbnail(string originalImagePath, string thumbnailPath, int width, int height, string mode, string imageType)
{
Image originalImage = (originalImagePath);
int towidth = width;
int toheight = height;
int x = 0;
int y = 0;
int ow = ;
int oh = ;ASP[1].NET常用代码C# 生成缩略图using System;using ;using ;using ;mon{ public class ImageMes { /// <sum
ASP[1].NET常用代码 来自淘豆网m.daumloan.com转载请标明出处.