C# Класс ImageMagick.Web.Handlers.ImageOptimizerHandler

IHttpHandler that can be used to optimize image before they are written to the response.
Наследование: MagickHandler
Показать файл Открыть проект

Защищенные методы

Метод Описание
OptimizeFile ( string fileName ) : void

Optimizes the specified file.

WriteFile ( HttpContext context ) : void

Writes the file to the response.

Приватные методы

Метод Описание
CanOptimize ( MagickFormatInfo formatInfo ) : bool
CreateOptimizedFile ( string cacheFileName ) : void
GetOptimizedFileName ( ) : string
ImageOptimizerHandler ( IUrlResolver urlResolver, MagickFormatInfo formatInfo ) : System.IO

Описание методов

OptimizeFile() защищенный статический Метод

Optimizes the specified file.
protected static OptimizeFile ( string fileName ) : void
fileName string
Результат void

WriteFile() защищенный Метод

Writes the file to the response.
protected WriteFile ( HttpContext context ) : void
context System.Web.HttpContext
Результат void