Class UriImageSource
Image source that loads image data from a URI, supporting file paths and HTTP/HTTPS URLs with automatic format detection and asynchronous downloading.
Inherited Members
Namespace: Telerik.Windows.Documents.Media
Assembly: Telerik.Windows.Documents.Flow.dll
Syntax
public sealed class UriImageSource : ImageSource, IResource
Constructors
UriImageSource(Uri)
Initializes a new UriImageSource from the specified URI, with automatic image format detection from the URI extension or HTTP response.
Declaration
public UriImageSource(Uri uri)
Parameters
|
System.Uri
uri
The URI of the image. |
UriImageSource(Uri, String)
Initializes a new UriImageSource from the specified URI with an explicit image format extension, overriding automatic detection.
Declaration
public UriImageSource(Uri uri, string extension)
Parameters
|
System.Uri
uri
The URI of the image. |
|
System.String
extension
The extension of the image. |
Properties
Data
Raw image bytes loaded from the URI; data is downloaded on first access and cached for subsequent requests.
Declaration
public override byte[] Data { get; }
Property Value
|
System.Byte[]
The data. |
Overrides
Extension
Image format extension (e.g., png, jpg, gif) determined from constructor, URI path, or HTTP Content-Type header when data is loaded.
Declaration
public override string Extension { get; }
Property Value
|
System.String
The extension. |
Overrides
Uri
Source URI from which the image data is loaded, supporting file paths and HTTP/HTTPS URLs.
Declaration
public Uri Uri { get; }
Property Value
|
System.Uri
The URI of the image. |