C# Класс Bloom.ImageProcessing.RuntimeImageProcessor

Currently the only processing we're doing it to make PNGs with lots of whitespace look good against our colored background pages Previously, we also shrunk images to improve performance when we were handing out file paths. Now that we are giving images over http, gecko may do well enough without the shrinking.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
TargetDimension int

Открытые методы

Метод Описание
Dispose ( ) : void
GetPathToResizedImage ( string originalPath, bool getThumbnail = false ) : string
RuntimeImageProcessor ( BookRenamedEvent bookRenamedEvent ) : System

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

Метод Описание
GenerateThumbnail ( string originalPath, string pathToProcessedImage, int newWidth ) : bool
MakePngBackgroundTransparent ( string originalPath, string pathToProcessedImage ) : bool
OnBookRenamed ( string>.KeyValuePair fromPathAndToPath ) : void
TryToDeleteCachedImages ( ) : void

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

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

GetPathToResizedImage() публичный Метод

public GetPathToResizedImage ( string originalPath, bool getThumbnail = false ) : string
originalPath string
getThumbnail bool
Результат string

RuntimeImageProcessor() публичный Метод

public RuntimeImageProcessor ( BookRenamedEvent bookRenamedEvent ) : System
bookRenamedEvent BookRenamedEvent
Результат System

Описание свойств

TargetDimension публичное свойство

public int TargetDimension
Результат int