Skip to content

,System.Nullable{System.Single},System.Nullable{System.DateTimeOffset})} ,System.Nullable{System.Single},System.Nullable{System.DateTimeOffset})} ,System.Nullable{System.Single},System.Nullable{System.DateTimeOffset})} ,System.Nullable{System.Single},System.Nullable{System.DateTimeOffset})}

BitmapImageExtensions.LoadImageFromUrl(IBlobCache, string, bool, float?, float?, DateTimeOffset?) method

Defined in

Type: BitmapImageExtensions Namespace: Akavache.Drawing Assembly: Akavache.Drawing.dll

Applies to

net10.0, net10.0-tvos26.0, net10.0-maccatalyst26.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net10.0-android36.0, net10.0-ios26.0, net10.0-windows10.0.19041, net10.0-macos26.0, net9.0, net9.0-windows10.0.19041, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-windows10.0.19041, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net481, net462

Overloads

  • 1. public static IObservable<IBitmap> LoadImageFromUrl(this IBlobCache blobCache, string url, bool fetchAlways = false, float? desiredWidth = null, float? desiredHeight = null, DateTimeOffset? absoluteExpiration = null)
  • 2. public static IObservable<IBitmap> LoadImageFromUrl(this IBlobCache blobCache, Uri url, bool fetchAlways = false, float? desiredWidth = null, float? desiredHeight = null, DateTimeOffset? absoluteExpiration = null)
  • 3. public static IObservable<IBitmap> LoadImageFromUrl(this IBlobCache blobCache, string key, string url, bool fetchAlways = false, float? desiredWidth = null, float? desiredHeight = null, DateTimeOffset? absoluteExpiration = null)
  • 4. public static IObservable<IBitmap> LoadImageFromUrl(this IBlobCache blobCache, string key, Uri url, bool fetchAlways = false, float? desiredWidth = null, float? desiredHeight = null, DateTimeOffset? absoluteExpiration = null)

1. Overload

public static IObservable<IBitmap> LoadImageFromUrl(this IBlobCache blobCache, string url, bool fetchAlways = false, float? desiredWidth = null, float? desiredHeight = null, DateTimeOffset? absoluteExpiration = null)

View source

Summary: A combination of DownloadUrl and LoadImage, this method fetches an image from a remote URL (using the cached value if possible) and returns the image.

Parameters

NameTypeDescription
blobCache[IBlobCache](#The blob cache to load the image from if available.
urlstringThe URL to download.
fetchAlways = falseboolIf we should always fetch the image from the URL even if we have one in the blob.
desiredWidth = nullfloat?Optional desired width, if not specified will be the default size.
desiredHeight = nullfloat?Optional desired height, if not specified will be the default size.
absoluteExpiration = nullDateTimeOffset?An optional expiration date.

Returns: IObservable -- A Future result representing the bitmap image. blobCache Observable is guaranteed to be returned on the UI thread.

2. Overload

public static IObservable<IBitmap> LoadImageFromUrl(this IBlobCache blobCache, Uri url, bool fetchAlways = false, float? desiredWidth = null, float? desiredHeight = null, DateTimeOffset? absoluteExpiration = null)

View source

Summary: A combination of DownloadUrl and LoadImage, this method fetches an image from a remote URL (using the cached value if possible) and returns the image.

Parameters

NameTypeDescription
blobCache[IBlobCache](#The blob cache to load the image from if available.
urlUriThe URL to download.
fetchAlways = falseboolIf we should always fetch the image from the URL even if we have one in the blob.
desiredWidth = nullfloat?Optional desired width, if not specified will be the default size.
desiredHeight = nullfloat?Optional desired height, if not specified will be the default size.
absoluteExpiration = nullDateTimeOffset?An optional expiration date.

Returns: IObservable -- A Future result representing the bitmap image. blobCache Observable is guaranteed to be returned on the UI thread.

3. Overload

public static IObservable<IBitmap> LoadImageFromUrl(this IBlobCache blobCache, string key, string url, bool fetchAlways = false, float? desiredWidth = null, float? desiredHeight = null, DateTimeOffset? absoluteExpiration = null)

View source

Summary: A combination of DownloadUrl and LoadImage, this method fetches an image from a remote URL (using the cached value if possible) and returns the image.

Parameters

NameTypeDescription
blobCache[IBlobCache](#The blob cache to load the image from if available.
keystringThe key to store with.
urlstringThe URL to download.
fetchAlways = falseboolIf we should always fetch the image from the URL even if we have one in the blob.
desiredWidth = nullfloat?Optional desired width, if not specified will be the default size.
desiredHeight = nullfloat?Optional desired height, if not specified will be the default size.
absoluteExpiration = nullDateTimeOffset?An optional expiration date.

Returns: IObservable -- A Future result representing the bitmap image. blobCache Observable is guaranteed to be returned on the UI thread.

4. Overload

public static IObservable<IBitmap> LoadImageFromUrl(this IBlobCache blobCache, string key, Uri url, bool fetchAlways = false, float? desiredWidth = null, float? desiredHeight = null, DateTimeOffset? absoluteExpiration = null)

View source

Summary: A combination of DownloadUrl and LoadImage, this method fetches an image from a remote URL (using the cached value if possible) and returns the image.

Parameters

NameTypeDescription
blobCache[IBlobCache](#The blob cache to load the image from if available.
keystringThe key to store with.
urlUriThe URL to download.
fetchAlways = falseboolIf we should always fetch the image from the URL even if we have one in the blob.
desiredWidth = nullfloat?Optional desired width, if not specified will be the default size.
desiredHeight = nullfloat?Optional desired height, if not specified will be the default size.
absoluteExpiration = nullDateTimeOffset?An optional expiration date.

Returns: IObservable -- A Future result representing the bitmap image. blobCache Observable is guaranteed to be returned on the UI thread.