C# 클래스 Imazen.LightResize.Encoding

Provides adjustable Jpeg encoding and 32-bit PNG encoding methods
파일 보기 프로젝트 열기: imazen/lightresize

공개 메소드들

메소드 설명
GetImageCodecInfo ( string mimeType ) : System.Drawing.Imaging.ImageCodecInfo

Looks up encoders by mime-type

SaveJpeg ( Image b, Stream target, int quality ) : void

Saves the specified image to the specified stream using jpeg compression of the specified quality.

SavePng ( Image img, Stream target ) : void

Saves the image in png form. If Stream 'target' is not seekable, a temporary MemoryStream will be used to buffer the image data into the stream

메소드 상세

GetImageCodecInfo() 공개 정적인 메소드

Looks up encoders by mime-type
public static GetImageCodecInfo ( string mimeType ) : System.Drawing.Imaging.ImageCodecInfo
mimeType string
리턴 System.Drawing.Imaging.ImageCodecInfo

SaveJpeg() 공개 정적인 메소드

Saves the specified image to the specified stream using jpeg compression of the specified quality.
public static SaveJpeg ( Image b, Stream target, int quality ) : void
b Image
target Stream
quality int A number between 0 and 100. Defaults to 90 if passed a negative number. Numbers over 100 are truncated to 100. /// 90 is a *very* good setting. ///
리턴 void

SavePng() 공개 정적인 메소드

Saves the image in png form. If Stream 'target' is not seekable, a temporary MemoryStream will be used to buffer the image data into the stream
public static SavePng ( Image img, Stream target ) : void
img Image
target Stream
리턴 void