C# Class ImageMagick.ImageOptimizers.GifOptimizer

Class that can be used to optimize gif files.
Inheritance: IImageOptimizer, ILosslessImageOptimizer
Mostrar archivo Open project: dlemstra/Magick.NET

Public Methods

Method Description
GifOptimizer ( ) : System.IO

Initializes a new instance of the GifOptimizer class.

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 the file. If the new file size is not smaller the file won't be overwritten.

Private Methods

Method Description
CheckFormat ( MagickImage image ) : void
DoLosslessCompress ( FileInfo file ) : void
DoLosslessCompress ( FileInfo file, MagickImage image ) : void

Method Details

GifOptimizer() public method

Initializes a new instance of the GifOptimizer class.
public GifOptimizer ( ) : System.IO
return System.IO

LosslessCompress() public method

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 png file to optimize
return void

LosslessCompress() public method

Performs lossless compression on the file. If the new file size is not smaller the file won't be overwritten.
public LosslessCompress ( string fileName ) : void
fileName string The png file to optimize
return void