編輯

共用方式為


SKShader.CreatePicture Method

Definition

Overloads

CreatePicture(SKPicture, SKShaderTileMode, SKShaderTileMode, SKMatrix, SKRect)

Creates a new shader that will draw with the specified picture.

CreatePicture(SKPicture, SKShaderTileMode, SKShaderTileMode, SKRect)

Creates a new shader that will draw with the specified picture.

CreatePicture(SKPicture, SKShaderTileMode, SKShaderTileMode)

Creates a new shader that will draw with the specified picture.

CreatePicture(SKPicture)

CreatePicture(SKPicture, SKShaderTileMode, SKShaderTileMode, SKMatrix, SKRect)

Creates a new shader that will draw with the specified picture.

public static SkiaSharp.SKShader CreatePicture (SkiaSharp.SKPicture src, SkiaSharp.SKShaderTileMode tmx, SkiaSharp.SKShaderTileMode tmy, SkiaSharp.SKMatrix localMatrix, SkiaSharp.SKRect tile);

Parameters

src
SKPicture

The picture to use inside the shader.

tmx
SKShaderTileMode

The tiling mode to use when sampling the picture in the x-direction.

tmy
SKShaderTileMode

The tiling mode to use when sampling the picture in the y-direction.

localMatrix
SKMatrix

The matrix to apply before applying the shader.

tile
SKRect

The tile rectangle in picture coordinates.

Returns

Returns a new SKShader, or an empty shader on error. This function never returns null.

Remarks

The tile rectangle represents the subset (or superset) of the picture used when building a tile. It is not affected by the local matrix and does not imply scaling (only translation and cropping).

Applies to

CreatePicture(SKPicture, SKShaderTileMode, SKShaderTileMode, SKRect)

Creates a new shader that will draw with the specified picture.

public static SkiaSharp.SKShader CreatePicture (SkiaSharp.SKPicture src, SkiaSharp.SKShaderTileMode tmx, SkiaSharp.SKShaderTileMode tmy, SkiaSharp.SKRect tile);

Parameters

src
SKPicture

The picture to use inside the shader.

tmx
SKShaderTileMode

The tiling mode to use when sampling the picture in the x-direction.

tmy
SKShaderTileMode

The tiling mode to use when sampling the picture in the y-direction.

tile
SKRect

The tile rectangle in picture coordinates.

Returns

Returns a new SKShader, or an empty shader on error. This function never returns null.

Remarks

The tile rectangle represents the subset (or superset) of the picture used when building a tile. It is not affected by the local matrix and does not imply scaling (only translation and cropping).

Applies to

CreatePicture(SKPicture, SKShaderTileMode, SKShaderTileMode)

Creates a new shader that will draw with the specified picture.

public static SkiaSharp.SKShader CreatePicture (SkiaSharp.SKPicture src, SkiaSharp.SKShaderTileMode tmx, SkiaSharp.SKShaderTileMode tmy);

Parameters

src
SKPicture

The picture to use inside the shader.

tmx
SKShaderTileMode

The tiling mode to use when sampling the picture in the x-direction.

tmy
SKShaderTileMode

The tiling mode to use when sampling the picture in the y-direction.

Returns

Returns a new SKShader, or an empty shader on error. This function never returns null.

Applies to

CreatePicture(SKPicture)

public static SkiaSharp.SKShader CreatePicture (SkiaSharp.SKPicture src);

Parameters

src
SKPicture

Returns

Applies to