PipelineBuilder.FromImage Method

Definition

Overloads

FromImage(String, DpiMode, CacheMode)

Starts a new PipelineBuilder pipeline from a Win2D image

FromImage(Uri, DpiMode, CacheMode)

Starts a new PipelineBuilder pipeline from a Win2D image

FromImage(String, DpiMode, CacheMode)

Starts a new PipelineBuilder pipeline from a Win2D image

public static Microsoft.Toolkit.Uwp.UI.Media.Pipelines.PipelineBuilder FromImage (string relativePath, Microsoft.Toolkit.Uwp.UI.Media.DpiMode dpiMode = Microsoft.Toolkit.Uwp.UI.Media.DpiMode.DisplayDpiWith96AsLowerBound, Microsoft.Toolkit.Uwp.UI.Media.CacheMode cacheMode = Microsoft.Toolkit.Uwp.UI.Media.CacheMode.Default);
static member FromImage : string * Microsoft.Toolkit.Uwp.UI.Media.DpiMode * Microsoft.Toolkit.Uwp.UI.Media.CacheMode -> Microsoft.Toolkit.Uwp.UI.Media.Pipelines.PipelineBuilder
Public Shared Function FromImage (relativePath As String, Optional dpiMode As DpiMode = Microsoft.Toolkit.Uwp.UI.Media.DpiMode.DisplayDpiWith96AsLowerBound, Optional cacheMode As CacheMode = Microsoft.Toolkit.Uwp.UI.Media.CacheMode.Default) As PipelineBuilder

Parameters

relativePath
String

The relative path for the image to load (eg. "/Assets/image.png")

dpiMode
DpiMode

Indicates the desired DPI mode to use when loading the image

cacheMode
CacheMode

The cache mode to use to load the image

Returns

A new PipelineBuilder instance to use to keep adding new effects

Applies to

FromImage(Uri, DpiMode, CacheMode)

Starts a new PipelineBuilder pipeline from a Win2D image

public static Microsoft.Toolkit.Uwp.UI.Media.Pipelines.PipelineBuilder FromImage (Uri uri, Microsoft.Toolkit.Uwp.UI.Media.DpiMode dpiMode = Microsoft.Toolkit.Uwp.UI.Media.DpiMode.DisplayDpiWith96AsLowerBound, Microsoft.Toolkit.Uwp.UI.Media.CacheMode cacheMode = Microsoft.Toolkit.Uwp.UI.Media.CacheMode.Default);
static member FromImage : Uri * Microsoft.Toolkit.Uwp.UI.Media.DpiMode * Microsoft.Toolkit.Uwp.UI.Media.CacheMode -> Microsoft.Toolkit.Uwp.UI.Media.Pipelines.PipelineBuilder
Public Shared Function FromImage (uri As Uri, Optional dpiMode As DpiMode = Microsoft.Toolkit.Uwp.UI.Media.DpiMode.DisplayDpiWith96AsLowerBound, Optional cacheMode As CacheMode = Microsoft.Toolkit.Uwp.UI.Media.CacheMode.Default) As PipelineBuilder

Parameters

uri
Uri

The path for the image to load

dpiMode
DpiMode

Indicates the desired DPI mode to use when loading the image

cacheMode
CacheMode

The cache mode to use to load the image

Returns

A new PipelineBuilder instance to use to keep adding new effects

Applies to