SKBitmap.ToShader Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| ToShader() |
Creates a shader from this bitmap. |
| ToShader(SKShaderTileMode, SKShaderTileMode) |
Creates a tiled shader from this bitmap. |
| ToShader(SKShaderTileMode, SKShaderTileMode, SKMatrix) |
Creates a tiled shader with a local transformation matrix. |
| ToShader(SKShaderTileMode, SKShaderTileMode, SKSamplingOptions) |
Creates a tiled shader with the specified filtering. |
| ToShader(SKShaderTileMode, SKShaderTileMode, SKSamplingOptions, SKMatrix) |
Creates a tiled shader with the specified filtering. |
ToShader()
Creates a shader from this bitmap.
public SkiaSharp.SKShader ToShader();
Returns
The shader.
Applies to
ToShader(SKShaderTileMode, SKShaderTileMode)
Creates a tiled shader from this bitmap.
public SkiaSharp.SKShader ToShader(SkiaSharp.SKShaderTileMode tmx, SkiaSharp.SKShaderTileMode tmy);
Parameters
- tmx
- SKShaderTileMode
The tile mode for x axis.
- tmy
- SKShaderTileMode
The tile mode for y axis.
Returns
The shader.
Applies to
ToShader(SKShaderTileMode, SKShaderTileMode, SKMatrix)
Creates a tiled shader with a local transformation matrix.
public SkiaSharp.SKShader ToShader(SkiaSharp.SKShaderTileMode tmx, SkiaSharp.SKShaderTileMode tmy, SkiaSharp.SKMatrix localMatrix);
Parameters
- tmx
- SKShaderTileMode
The tile mode for x axis.
- tmy
- SKShaderTileMode
The tile mode for y axis.
- localMatrix
- SKMatrix
The local matrix to apply to the shader.
Returns
The shader.
Applies to
ToShader(SKShaderTileMode, SKShaderTileMode, SKSamplingOptions)
Creates a tiled shader with the specified filtering.
public SkiaSharp.SKShader ToShader(SkiaSharp.SKShaderTileMode tmx, SkiaSharp.SKShaderTileMode tmy, SkiaSharp.SKSamplingOptions sampling);
Parameters
- tmx
- SKShaderTileMode
The tile mode for x axis.
- tmy
- SKShaderTileMode
The tile mode for y axis.
- sampling
- SKSamplingOptions
The sampling options for resizing.
Returns
The shader.
Applies to
ToShader(SKShaderTileMode, SKShaderTileMode, SKSamplingOptions, SKMatrix)
Creates a tiled shader with the specified filtering.
public SkiaSharp.SKShader ToShader(SkiaSharp.SKShaderTileMode tmx, SkiaSharp.SKShaderTileMode tmy, SkiaSharp.SKSamplingOptions sampling, SkiaSharp.SKMatrix localMatrix);
Parameters
- tmx
- SKShaderTileMode
The tile mode for x axis.
- tmy
- SKShaderTileMode
The tile mode for y axis.
- sampling
- SKSamplingOptions
The sampling options for resizing.
- localMatrix
- SKMatrix
The local matrix to apply to the shader.
Returns
The shader.