C# 클래스 ImgHelper, zcw

改变图片像素和大小
파일 보기 프로젝트 열기: jerrytan/zcw 1 사용 예제들

공개 메소드들

메소드 설명
ToSmile ( string fullPath, int width, int height ) : bool

把一个图片压缩成小图

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

비공개 메소드들

메소드 설명
GetEncoderInfo ( String mimeType ) : ImageCodecInfo
rebdqulity_pic ( string szdir, long lqulity ) : void

메소드 상세

ToSmile() 공개 정적인 메소드

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

resize_pic() 공개 정적인 메소드

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

resize_pic() 공개 정적인 메소드

public static resize_pic ( int width, int height ) : void
width int
height int
리턴 void