C# Class ImageMagick.ImageOptimizers.PngOptimizer

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

Méthodes publiques

Méthode 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

Méthode Description
CheckFormat ( MagickImage image ) : void
CheckTransparency ( MagickImage image ) : void
DoLosslessCompress ( FileInfo file ) : void
GetQualityList ( ) : IEnumerable

Method Details

LosslessCompress() public méthode

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
Résultat void

LosslessCompress() public méthode

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
Résultat void

PngOptimizer() public méthode

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