C# Class ImageMagick.ImageOptimizers.JpegOptimizer

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

Méthodes publiques

Méthode Description
JpegOptimizer ( ) : System.IO

Initializes a new instance of the JpegOptimizer class.

LosslessCompress ( FileInfo file ) : void

Performs lossless compression on speified 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.

Private Methods

Méthode Description
LosslessCompress ( FileInfo file, bool progressive ) : void

Method Details

JpegOptimizer() public méthode

Initializes a new instance of the JpegOptimizer class.
public JpegOptimizer ( ) : System.IO
Résultat System.IO

LosslessCompress() public méthode

Performs lossless compression on speified 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 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 png file to optimize
Résultat void