C# Class DvachBrowser.Assets.BitmapManager

Downloads and caches images or their errors.
Mostra file Open project: vortexwolf/2ch-Browser-WP7 Class Usage Examples

Public Methods

Method Description
DownloadImage ( string uri, System.Action onFinished ) : void
GetCachedImage ( string uri ) : CachedBitmapImageModel

Private Methods

Method Description
AddImage ( string uri, System.Windows.Media.Imaging.BitmapSource bitmap ) : void
OnError ( string uri, string error, System.Action onFinished ) : void
OnImageDownloaded ( string uri, System.Windows.Media.Imaging.BitmapSource bitmap, System.Action onFinished ) : void

Method Details

DownloadImage() public method

public DownloadImage ( string uri, System.Action onFinished ) : void
uri string
onFinished System.Action
return void

GetCachedImage() public method

public GetCachedImage ( string uri ) : CachedBitmapImageModel
uri string
return CachedBitmapImageModel