,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)
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
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to load the image from if available. |
url | string | The URL to download. |
fetchAlways = false | bool | If we should always fetch the image from the URL even if we have one in the blob. |
desiredWidth = null | float? | Optional desired width, if not specified will be the default size. |
desiredHeight = null | float? | Optional desired height, if not specified will be the default size. |
absoluteExpiration = null | DateTimeOffset? | An optional expiration date. |
Returns: IObservable
2. Overload¶
public static IObservable<IBitmap> LoadImageFromUrl(this IBlobCache blobCache, Uri url, bool fetchAlways = false, float? desiredWidth = null, float? desiredHeight = null, DateTimeOffset? absoluteExpiration = null)
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
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to load the image from if available. |
url | Uri | The URL to download. |
fetchAlways = false | bool | If we should always fetch the image from the URL even if we have one in the blob. |
desiredWidth = null | float? | Optional desired width, if not specified will be the default size. |
desiredHeight = null | float? | Optional desired height, if not specified will be the default size. |
absoluteExpiration = null | DateTimeOffset? | An optional expiration date. |
Returns: IObservable
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)
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
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to load the image from if available. |
key | string | The key to store with. |
url | string | The URL to download. |
fetchAlways = false | bool | If we should always fetch the image from the URL even if we have one in the blob. |
desiredWidth = null | float? | Optional desired width, if not specified will be the default size. |
desiredHeight = null | float? | Optional desired height, if not specified will be the default size. |
absoluteExpiration = null | DateTimeOffset? | An optional expiration date. |
Returns: IObservable
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)
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
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to load the image from if available. |
key | string | The key to store with. |
url | Uri | The URL to download. |
fetchAlways = false | bool | If we should always fetch the image from the URL even if we have one in the blob. |
desiredWidth = null | float? | Optional desired width, if not specified will be the default size. |
desiredHeight = null | float? | Optional desired height, if not specified will be the default size. |
absoluteExpiration = null | DateTimeOffset? | An optional expiration date. |
Returns: IObservable