C# Class Bloom.ImageProcessing.LowResImageCache

Gecko struggles with hi-res images intented for printing. Gecko chews up memory, makes for slow drawing, or even gives up on displaying the image altogether (worse on slow machines). This cache takes requests for images and returns lo-res versions of them.
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 ) : string
LowResImageCache ( BookRenamedEvent bookRenamedEvent ) : System

Private Methods

Method Description
GetModifiedDateTime ( string path ) : System.DateTime
OnBookRenamed ( string>.KeyValuePair fromPathAndToPath ) : void
TryToDeleteCachedImages ( ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GetPathToResizedImage() public method

public GetPathToResizedImage ( string originalPath ) : string
originalPath string
return string

LowResImageCache() public method

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

Property Details

TargetDimension public property

public int TargetDimension
return int