LoadedImageSurface.StartLoadFromUri Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
StartLoadFromUri(Uri) |
Loads an image into a LoadedImageSurface from the provided Uniform Resource Identifier (URI) at the natural size defined in the image source. |
StartLoadFromUri(Uri, Size) |
Loads an image into a LoadedImageSurface from the provided Uniform Resource Identifier (URI) with the desired maximum size. |
StartLoadFromUri(Uri)
Loads an image into a LoadedImageSurface from the provided Uniform Resource Identifier (URI) at the natural size defined in the image source.
public:
static LoadedImageSurface ^ StartLoadFromUri(Uri ^ uri);
/// [Windows.Foundation.Metadata.Overload("StartLoadFromUri")]
static LoadedImageSurface StartLoadFromUri(Uri const& uri);
[Windows.Foundation.Metadata.Overload("StartLoadFromUri")]
public static LoadedImageSurface StartLoadFromUri(System.Uri uri);
function startLoadFromUri(uri)
Public Shared Function StartLoadFromUri (uri As Uri) As LoadedImageSurface
Parameters
Returns
An instance of LoadedImageSurface with the image loaded onto its surface.
- Attributes
Applies to
StartLoadFromUri(Uri, Size)
Loads an image into a LoadedImageSurface from the provided Uniform Resource Identifier (URI) with the desired maximum size.
public:
static LoadedImageSurface ^ StartLoadFromUri(Uri ^ uri, Size desiredMaxSize);
/// [Windows.Foundation.Metadata.Overload("StartLoadFromUriWithSize")]
static LoadedImageSurface StartLoadFromUri(Uri const& uri, Size const& desiredMaxSize);
[Windows.Foundation.Metadata.Overload("StartLoadFromUriWithSize")]
public static LoadedImageSurface StartLoadFromUri(System.Uri uri, Size desiredMaxSize);
function startLoadFromUri(uri, desiredMaxSize)
Public Shared Function StartLoadFromUri (uri As Uri, desiredMaxSize As Size) As LoadedImageSurface
Parameters
- desiredMaxSize
- Size
The desired maximum size of the image surface in device independent pixels.
Returns
An instance of LoadedImageSurface with the image loaded onto its surface.
- Attributes
Remarks
By default, LoadedImageSurface will fill up as much of the desiredMaxSize as possible while preserving the aspect ratio and image content of the incoming source. This may result in a decodedsize that differs from the input desiredMaxSize