Example #1
0
 async Task<IBitmap> Download(Uri uri, DesiredImageSize desiredSize) {
     return await _downloader.GetImage(uri, _defaultCacheTime, desiredSize);
 }
Example #2
0
 async Task<BitmapSource> BmiFromUrlAsync(Uri uri, DesiredImageSize desiredSize) {
     using (var bitMap = await Download(uri, desiredSize).ConfigureAwait(false))
         return GetBitMapFromMemoryStream(bitMap);
 }
 public IObservable<IBitmap> GetImage(Uri uri, TimeSpan offset, DesiredImageSize desiredDimensions) {
     var url = uri.ToString();
     return _cache.LoadImageFromUrl(GetDimensionKey(uri, desiredDimensions), url, false, desiredDimensions.Width,
         desiredDimensions.Height,
         GetAbsoluteUtc(offset));
 }
 static string GetDimensionKey(Uri uri, DesiredImageSize desiredDimensions) {
     return uri + "??dimensions=" + desiredDimensions;
 }
 public IObservable<IBitmap> GetImage(Uri uri, DesiredImageSize desiredDimensions) {
     return _cache.LoadImageFromUrl(GetDimensionKey(uri, desiredDimensions), uri.ToString(), false,
         desiredDimensions.Width, desiredDimensions.Height);
 }