C# Class ImgHelper, zcw

改变图片像素和大小
Afficher le fichier Open project: jerrytan/zcw Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
GetEncoderInfo ( String mimeType ) : ImageCodecInfo
rebdqulity_pic ( string szdir, long lqulity ) : void

Method Details

ToSmile() public static méthode

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

resize_pic() public static méthode

public static resize_pic ( string szdir, int width, int height ) : bool
szdir string
width int
height int
Résultat bool

resize_pic() public static méthode

public static resize_pic ( int width, int height ) : void
width int
height int
Résultat void