LoadedImageSurface.StartLoadFromUri 方法

定义

重载

StartLoadFromUri(Uri)

将图像加载到 LoadedImageSurface 提供的统一资源标识符(URI)中,该标识符位于图像源中定义的自然大小。

StartLoadFromUri(Uri, Size)

将图像加载到 LoadedImageSurface 提供的统一资源标识符(URI)中,其最大大小。

StartLoadFromUri(Uri)

将图像加载到 LoadedImageSurface 提供的统一资源标识符(URI)中,该标识符位于图像源中定义的自然大小。

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

参数

uri
Uri Uri

从中加载映像的 URI。

返回

LoadedImageSurface 实例,图像加载到其图面上。

属性

适用于

StartLoadFromUri(Uri, Size)

将图像加载到 LoadedImageSurface 提供的统一资源标识符(URI)中,其最大大小。

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

参数

uri
Uri Uri

从中加载映像的 URI。

desiredMaxSize
Size

设备独立像素中图像图面的所需最大大小。

返回

LoadedImageSurface 实例,图像加载到其图面上。

属性

注解

默认情况下,LoadedImageSurface 将尽可能多地填充 desiredMaxSize,同时保留传入源的纵横比和图像内容。 这可能会导致解码大小与所需的输入 desiredMaxSize

适用于