C# Class ImageMagick.ImageOptimizers.PngOptimizer

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

Public Methods

Method Description
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.

PngOptimizer ( ) : System.Collections.Generic

Initializes a new instance of the PngOptimizer class.

Private Methods

Method Description
CheckFormat ( MagickImage image ) : void
CheckTransparency ( MagickImage image ) : void
DoLosslessCompress ( FileInfo file ) : void
GetQualityList ( ) : IEnumerable

Method Details

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

PngOptimizer() public method

Initializes a new instance of the PngOptimizer class.
public PngOptimizer ( ) : System.Collections.Generic
return System.Collections.Generic