C# Class 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.
Inheritance: IDisposable
Afficher le fichier Open project: BloomBooks/BloomDesktop Class Usage Examples

Méthodes publiques

Свойство Type Description
TargetDimension int

Méthodes publiques

Méthode Description
Dispose ( ) : void
GetPathToResizedImage ( string originalPath, bool getThumbnail = false ) : string
RuntimeImageProcessor ( BookRenamedEvent bookRenamedEvent ) : System

Private Methods

Méthode Description
GenerateThumbnail ( string originalPath, string pathToProcessedImage, int newWidth ) : bool
MakePngBackgroundTransparent ( string originalPath, string pathToProcessedImage ) : bool
OnBookRenamed ( string>.KeyValuePair fromPathAndToPath ) : void
TryToDeleteCachedImages ( ) : void

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetPathToResizedImage() public méthode

public GetPathToResizedImage ( string originalPath, bool getThumbnail = false ) : string
originalPath string
getThumbnail bool
Résultat string

RuntimeImageProcessor() public méthode

public RuntimeImageProcessor ( BookRenamedEvent bookRenamedEvent ) : System
bookRenamedEvent BookRenamedEvent
Résultat System

Property Details

TargetDimension public_oe property

public int TargetDimension
Résultat int