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
Show file Open project: BloomBooks/BloomDesktop Class Usage Examples

Public Properties

Property Type Description
TargetDimension int

Public Methods

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

Private Methods

Method 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 method

public Dispose ( ) : void
return void

GetPathToResizedImage() public method

public GetPathToResizedImage ( string originalPath, bool getThumbnail = false ) : string
originalPath string
getThumbnail bool
return string

RuntimeImageProcessor() public method

public RuntimeImageProcessor ( BookRenamedEvent bookRenamedEvent ) : System
bookRenamedEvent BookRenamedEvent
return System

Property Details

TargetDimension public property

public int TargetDimension
return int