C# Class DvachBrowser.Assets.BitmapManager

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

Méthodes publiques

Méthode Description
DownloadImage ( string uri, System.Action onFinished ) : void
GetCachedImage ( string uri ) : CachedBitmapImageModel

Private Methods

Méthode 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 méthode

public DownloadImage ( string uri, System.Action onFinished ) : void
uri string
onFinished System.Action
Résultat void

GetCachedImage() public méthode

public GetCachedImage ( string uri ) : CachedBitmapImageModel
uri string
Résultat CachedBitmapImageModel