C# Class ImageMagick.Web.Handlers.ImageOptimizerHandler

IHttpHandler that can be used to optimize image before they are written to the response.
Inheritance: MagickHandler
Afficher le fichier Open project: dlemstra/Magick.NET

Méthodes protégées

Méthode Description
OptimizeFile ( string fileName ) : void

Optimizes the specified file.

WriteFile ( HttpContext context ) : void

Writes the file to the response.

Private Methods

Méthode Description
CanOptimize ( MagickFormatInfo formatInfo ) : bool
CreateOptimizedFile ( string cacheFileName ) : void
GetOptimizedFileName ( ) : string
ImageOptimizerHandler ( IUrlResolver urlResolver, MagickFormatInfo formatInfo ) : System.IO

Method Details

OptimizeFile() protected static méthode

Optimizes the specified file.
protected static OptimizeFile ( string fileName ) : void
fileName string
Résultat void

WriteFile() protected méthode

Writes the file to the response.
protected WriteFile ( HttpContext context ) : void
context System.Web.HttpContext
Résultat void