LoadedImageSurface.StartLoadFromUri 方法

定義

多載

StartLoadFromUri(Uri)

從提供的統一資源標識碼 (URI,將影像載入 LoadedImageSurface ,) 影像來源中所定義的自然大小。

StartLoadFromUri(Uri, Size)

從所提供統一資源標識碼 (URI 將影像載入 LoadedImageSurface ,) 所需的大小上限。

StartLoadFromUri(Uri)

從提供的統一資源標識碼 (URI,將影像載入 LoadedImageSurface ,) 影像來源中所定義的自然大小。

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)

從所提供統一資源標識碼 (URI 將影像載入 LoadedImageSurface ,) 所需的大小上限。

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 會盡可能填滿 所需的MaxSize ,同時保留傳入來源的外觀比例和影像內容。 這可能會導致與輸入 desiredMaxSize 不同的譯碼

適用於