C# Class ImgHelper, zcw

改变图片像素和大小
Mostra file Open project: jerrytan/zcw Class Usage Examples

Public Methods

Method Description
ToSmile ( string fullPath, int width, int height ) : bool

把一个图片压缩成小图

resize_pic ( string szdir, int width, int height ) : bool
resize_pic ( int width, int height ) : void

Private Methods

Method Description
GetEncoderInfo ( String mimeType ) : ImageCodecInfo
rebdqulity_pic ( string szdir, long lqulity ) : void

Method Details

ToSmile() public static method

把一个图片压缩成小图
public static ToSmile ( string fullPath, int width, int height ) : bool
fullPath string 图片路径
width int 压缩以后的图片宽度
height int 压缩以后的图片高度
return bool

resize_pic() public static method

public static resize_pic ( string szdir, int width, int height ) : bool
szdir string
width int
height int
return bool

resize_pic() public static method

public static resize_pic ( int width, int height ) : void
width int
height int
return void