Edit

SKShader.CreateImage Method

Definition

Overloads

Name Description
CreateImage(SKImage, SKShaderTileMode, SKShaderTileMode, SKSamplingOptions)

Creates a new shader that draws an image with specified tile modes and sampling options.

CreateImage(SKImage, SKShaderTileMode, SKShaderTileMode, SKMatrix)

Creates a new shader that draws an image with specified tile modes and transformation matrix.

CreateImage(SKImage, SKShaderTileMode, SKShaderTileMode, SKSamplingOptions, SKMatrix)

Creates a new shader that draws an image with specified tile modes, sampling options, and transformation matrix.

CreateImage(SKImage)

Creates a new shader that draws an image.

CreateImage(SKImage, SKShaderTileMode, SKShaderTileMode)

Creates a new shader that draws an image with specified tile modes.

CreateImage(SKImage, SKShaderTileMode, SKShaderTileMode, SKSamplingOptions)

Creates a new shader that draws an image with specified tile modes and sampling options.

public static SkiaSharp.SKShader CreateImage(SkiaSharp.SKImage src, SkiaSharp.SKShaderTileMode tmx, SkiaSharp.SKShaderTileMode tmy, SkiaSharp.SKSamplingOptions sampling);

Parameters

src
SKImage

The source image to use for the shader.

tmx
SKShaderTileMode

The tile mode in the X direction.

tmy
SKShaderTileMode

The tile mode in the Y direction.

sampling
SKSamplingOptions

The sampling options to use when sampling the image.

Returns

Returns a new SKShader.

Applies to

CreateImage(SKImage, SKShaderTileMode, SKShaderTileMode, SKMatrix)

Creates a new shader that draws an image with specified tile modes and transformation matrix.

public static SkiaSharp.SKShader CreateImage(SkiaSharp.SKImage src, SkiaSharp.SKShaderTileMode tmx, SkiaSharp.SKShaderTileMode tmy, SkiaSharp.SKMatrix localMatrix);

Parameters

src
SKImage

The source image to use for the shader.

tmx
SKShaderTileMode

The tile mode in the X direction.

tmy
SKShaderTileMode

The tile mode in the Y direction.

localMatrix
SKMatrix

The matrix to apply before applying the shader.

Returns

Returns a new SKShader.

Applies to

CreateImage(SKImage, SKShaderTileMode, SKShaderTileMode, SKSamplingOptions, SKMatrix)

Creates a new shader that draws an image with specified tile modes, sampling options, and transformation matrix.

public static SkiaSharp.SKShader CreateImage(SkiaSharp.SKImage src, SkiaSharp.SKShaderTileMode tmx, SkiaSharp.SKShaderTileMode tmy, SkiaSharp.SKSamplingOptions sampling, SkiaSharp.SKMatrix localMatrix);

Parameters

src
SKImage

The source image to use for the shader.

tmx
SKShaderTileMode

The tile mode in the X direction.

tmy
SKShaderTileMode

The tile mode in the Y direction.

sampling
SKSamplingOptions

The sampling options to use when sampling the image.

localMatrix
SKMatrix

The matrix to apply before applying the shader.

Returns

Returns a new SKShader.

Applies to

CreateImage(SKImage)

Creates a new shader that draws an image.

public static SkiaSharp.SKShader CreateImage(SkiaSharp.SKImage src);

Parameters

src
SKImage

The source image to use for the shader.

Returns

Returns a new SKShader.

Applies to

CreateImage(SKImage, SKShaderTileMode, SKShaderTileMode)

Creates a new shader that draws an image with specified tile modes.

public static SkiaSharp.SKShader CreateImage(SkiaSharp.SKImage src, SkiaSharp.SKShaderTileMode tmx, SkiaSharp.SKShaderTileMode tmy);

Parameters

src
SKImage

The source image to use for the shader.

tmx
SKShaderTileMode

The tile mode in the X direction.

tmy
SKShaderTileMode

The tile mode in the Y direction.

Returns

Returns a new SKShader.

Applies to