HttpImageSource Class
Provides an image fetched via HTTP which can be displayed by the Image control.
Note Image provides a shorthand for this, using its Url property.
Example
<Image>
<HttpImageSource Url="https://upload.wikimedia.org/wikipedia/commons/0/06/Kitten_in_Rizal_Park%2C_Manila.jpg" />
</Image>
To cache the image to the disk, you can add DiskCache
attribute and set it to true
so that the next time we display an image it will no longer be downloaded from the network but use from disk instead.
Location
- Namespace
- Fuse.Resources
- Package
- Fuse.Elements 2.9.1
Interface of HttpImageSource
DefaultPolicy : MemoryPolicy uno
Density : float ux
Specifies the source's pixel density.
DiskCache : bool ux
Determines whether we use the disk cache to store downloaded images so that the next time we display an image it will no longer be downloaded from the network. Default is false.
DiskCachePolicy : CachePolicy ux
HttpImageSource Constructor uno
HttpImageSource(string) Constructor uno
Policy : MemoryPolicy ux
Specifies a hint for how the image should be managed in memory. See MemoryPolicy.
TargetSize : int2 ux
The Target size of the image to resize.
Url : string ux
The URL of the image.