Edit

Share via


SKPicture.ToShader Method

Definition

Overloads

Name Description
ToShader()

Creates a shader from this picture using the cull rect as the tile boundary.

ToShader(SKShaderTileMode, SKShaderTileMode)

Creates a shader from this picture with specified tile modes.

ToShader(SKShaderTileMode, SKShaderTileMode, SKFilterMode)

Creates a shader from this picture with specified tile and filter modes.

ToShader(SKShaderTileMode, SKShaderTileMode, SKRect)

Creates a shader from this picture with specified tile modes and boundary.

ToShader(SKShaderTileMode, SKShaderTileMode, SKFilterMode, SKRect)

Creates a shader from this picture with specified tile modes, filter mode, and boundary.

ToShader(SKShaderTileMode, SKShaderTileMode, SKMatrix, SKRect)

Creates a shader from this picture with specified tile modes, transformation, and boundary.

ToShader(SKShaderTileMode, SKShaderTileMode, SKFilterMode, SKMatrix, SKRect)

Creates a shader from this picture with specified tile modes, filter mode, transformation, and boundary.

ToShader()

Creates a shader from this picture using the cull rect as the tile boundary.

public SkiaSharp.SKShader ToShader();

Returns

A new shader that renders this picture.

Applies to

ToShader(SKShaderTileMode, SKShaderTileMode)

Creates a shader from this picture with specified tile modes.

public SkiaSharp.SKShader ToShader(SkiaSharp.SKShaderTileMode tmx, SkiaSharp.SKShaderTileMode tmy);

Parameters

tmx
SKShaderTileMode

The tile mode for the X axis.

tmy
SKShaderTileMode

The tile mode for the Y axis.

Returns

A new shader that renders this picture.

Applies to

ToShader(SKShaderTileMode, SKShaderTileMode, SKFilterMode)

Creates a shader from this picture with specified tile and filter modes.

public SkiaSharp.SKShader ToShader(SkiaSharp.SKShaderTileMode tmx, SkiaSharp.SKShaderTileMode tmy, SkiaSharp.SKFilterMode filterMode);

Parameters

tmx
SKShaderTileMode

The tile mode for the X axis.

tmy
SKShaderTileMode

The tile mode for the Y axis.

filterMode
SKFilterMode

The filter mode to apply when scaling.

Returns

A new shader that renders this picture.

Applies to

ToShader(SKShaderTileMode, SKShaderTileMode, SKRect)

Creates a shader from this picture with specified tile modes and boundary.

public SkiaSharp.SKShader ToShader(SkiaSharp.SKShaderTileMode tmx, SkiaSharp.SKShaderTileMode tmy, SkiaSharp.SKRect tile);

Parameters

tmx
SKShaderTileMode

The tile mode for the X axis.

tmy
SKShaderTileMode

The tile mode for the Y axis.

tile
SKRect

The rectangle defining the tile boundary.

Returns

A new shader that renders this picture.

Applies to

ToShader(SKShaderTileMode, SKShaderTileMode, SKFilterMode, SKRect)

Creates a shader from this picture with specified tile modes, filter mode, and boundary.

public SkiaSharp.SKShader ToShader(SkiaSharp.SKShaderTileMode tmx, SkiaSharp.SKShaderTileMode tmy, SkiaSharp.SKFilterMode filterMode, SkiaSharp.SKRect tile);

Parameters

tmx
SKShaderTileMode

The tile mode for the X axis.

tmy
SKShaderTileMode

The tile mode for the Y axis.

filterMode
SKFilterMode

The filter mode to apply when scaling.

tile
SKRect

The rectangle defining the tile boundary.

Returns

A new shader that renders this picture.

Applies to

ToShader(SKShaderTileMode, SKShaderTileMode, SKMatrix, SKRect)

Creates a shader from this picture with specified tile modes, transformation, and boundary.

public SkiaSharp.SKShader ToShader(SkiaSharp.SKShaderTileMode tmx, SkiaSharp.SKShaderTileMode tmy, SkiaSharp.SKMatrix localMatrix, SkiaSharp.SKRect tile);

Parameters

tmx
SKShaderTileMode

The tile mode for the X axis.

tmy
SKShaderTileMode

The tile mode for the Y axis.

localMatrix
SKMatrix

The local transformation matrix to apply.

tile
SKRect

The rectangle defining the tile boundary.

Returns

A new shader that renders this picture.

Applies to

ToShader(SKShaderTileMode, SKShaderTileMode, SKFilterMode, SKMatrix, SKRect)

Creates a shader from this picture with specified tile modes, filter mode, transformation, and boundary.

public SkiaSharp.SKShader ToShader(SkiaSharp.SKShaderTileMode tmx, SkiaSharp.SKShaderTileMode tmy, SkiaSharp.SKFilterMode filterMode, SkiaSharp.SKMatrix localMatrix, SkiaSharp.SKRect tile);

Parameters

tmx
SKShaderTileMode

The tile mode for the X axis.

tmy
SKShaderTileMode

The tile mode for the Y axis.

filterMode
SKFilterMode

The filter mode to apply when scaling.

localMatrix
SKMatrix

The local transformation matrix to apply.

tile
SKRect

The rectangle defining the tile boundary.

Returns

A new shader that renders this picture.

Applies to