C# 클래스 ImageMagick.ImageOptimizer

Class that can be used to optimize an image.
상속: ILosslessImageOptimizer
파일 보기 프로젝트 열기: dlemstra/Magick.NET 1 사용 예제들

공개 메소드들

메소드 설명
IsSupported ( FileInfo file ) : bool

Returns true when the supplied file name is supported based on the extension of the file.

IsSupported ( MagickFormatInfo formatInfo ) : bool

Returns true when the supplied formation information is supported.

IsSupported ( string fileName ) : bool

Returns true when the supplied file name is supported based on the extension of the file.

LosslessCompress ( FileInfo file ) : void

Performs lossless compression on the file. If the new file size is not smaller the file won't be overwritten.

LosslessCompress ( string fileName ) : void

Performs lossless compression on speified the file. If the new file size is not smaller the file won't be overwritten.

비공개 메소드들

메소드 설명
CreateImageOptimizers ( ) : Collection
DoLosslessCompress ( FileInfo file ) : void
GetFormatInformation ( FileInfo file ) : MagickFormatInfo
GetOptimizer ( FileInfo file ) : ILosslessImageOptimizer

메소드 상세

IsSupported() 공개 메소드

Returns true when the supplied file name is supported based on the extension of the file.
public IsSupported ( FileInfo file ) : bool
file System.IO.FileInfo The file to check.
리턴 bool

IsSupported() 공개 메소드

Returns true when the supplied formation information is supported.
public IsSupported ( MagickFormatInfo formatInfo ) : bool
formatInfo MagickFormatInfo The format information to check.
리턴 bool

IsSupported() 공개 메소드

Returns true when the supplied file name is supported based on the extension of the file.
public IsSupported ( string fileName ) : bool
fileName string The name of the file to check.
리턴 bool

LosslessCompress() 공개 메소드

Performs lossless compression on the file. If the new file size is not smaller the file won't be overwritten.
public LosslessCompress ( FileInfo file ) : void
file System.IO.FileInfo The image file to optimize
리턴 void

LosslessCompress() 공개 메소드

Performs lossless compression on speified the file. If the new file size is not smaller the file won't be overwritten.
public LosslessCompress ( string fileName ) : void
fileName string The name of the image file to optimize
리턴 void