Skip to main content

Class SKShader

Namespace: SkiaSharp
Assembly: VelloSharp.Skia.Core.dll

public sealed class SKShader : IDisposable

Inheritance

objectSKShader

Implements

IDisposable

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Methods

CreateBitmap(SKBitmap, SKShaderTileMode, SKShaderTileMode)

public static SKShader CreateBitmap(SKBitmap bitmap, SKShaderTileMode tileModeX, SKShaderTileMode tileModeY)

Parameters

bitmap SKBitmap

tileModeX SKShaderTileMode

tileModeY SKShaderTileMode

Returns

SKShader

CreateBitmap(SKBitmap, SKShaderTileMode, SKShaderTileMode, SKSamplingOptions)

public static SKShader CreateBitmap(SKBitmap bitmap, SKShaderTileMode tileModeX, SKShaderTileMode tileModeY, SKSamplingOptions sampling)

Parameters

bitmap SKBitmap

tileModeX SKShaderTileMode

tileModeY SKShaderTileMode

sampling SKSamplingOptions

Returns

SKShader

CreateBitmap(SKBitmap, SKShaderTileMode, SKShaderTileMode, SKSamplingOptions, SKMatrix)

public static SKShader CreateBitmap(SKBitmap bitmap, SKShaderTileMode tileModeX, SKShaderTileMode tileModeY, SKSamplingOptions sampling, SKMatrix localMatrix)

Parameters

bitmap SKBitmap

tileModeX SKShaderTileMode

tileModeY SKShaderTileMode

sampling SKSamplingOptions

localMatrix SKMatrix

Returns

SKShader

CreateBitmap(SKBitmap, SKShaderTileMode, SKShaderTileMode, SKMatrix)

public static SKShader CreateBitmap(SKBitmap src, SKShaderTileMode tmx, SKShaderTileMode tmy, SKMatrix localMatrix)

Parameters

src SKBitmap

tmx SKShaderTileMode

tmy SKShaderTileMode

localMatrix SKMatrix

Returns

SKShader

CreateBlend(SKBlendMode, SKShader, SKShader)

public static SKShader CreateBlend(SKBlendMode mode, SKShader shaderA, SKShader shaderB)

Parameters

mode SKBlendMode

shaderA SKShader

shaderB SKShader

Returns

SKShader

CreateBlend(SKBlender, SKShader, SKShader)

public static SKShader CreateBlend(SKBlender blender, SKShader shaderA, SKShader shaderB)

Parameters

blender SKBlender

shaderA SKShader

shaderB SKShader

Returns

SKShader

CreateColor(SKColor)

public static SKShader CreateColor(SKColor color)

Parameters

color SKColor

Returns

SKShader

CreateColor(SKColorF, SKColorSpace)

public static SKShader CreateColor(SKColorF color, SKColorSpace colorspace)

Parameters

color SKColorF

colorspace SKColorSpace

Returns

SKShader

CreateColorFilter(SKShader, SKColorFilter)

public static SKShader CreateColorFilter(SKShader shader, SKColorFilter filter)

Parameters

shader SKShader

filter SKColorFilter

Returns

SKShader

CreateCompose(SKShader, SKShader)

public static SKShader CreateCompose(SKShader outer, SKShader inner)

Parameters

outer SKShader

inner SKShader

Returns

SKShader

CreateCompose(SKShader, SKShader, SKBlendMode)

public static SKShader CreateCompose(SKShader shaderA, SKShader shaderB, SKBlendMode mode)

Parameters

shaderA SKShader

shaderB SKShader

mode SKBlendMode

Returns

SKShader

CreateEmpty()

public static SKShader CreateEmpty()

Returns

SKShader

CreateImage(SKImage)

public static SKShader CreateImage(SKImage src)

Parameters

src SKImage

Returns

SKShader

CreateImage(SKImage, SKShaderTileMode, SKShaderTileMode)

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

Parameters

src SKImage

tmx SKShaderTileMode

tmy SKShaderTileMode

Returns

SKShader

CreateImage(SKImage, SKShaderTileMode, SKShaderTileMode, SKSamplingOptions)

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

Parameters

src SKImage

tmx SKShaderTileMode

tmy SKShaderTileMode

sampling SKSamplingOptions

Returns

SKShader

CreateImage(SKImage, SKShaderTileMode, SKShaderTileMode, SKFilterQuality)

public static SKShader CreateImage(SKImage src, SKShaderTileMode tmx, SKShaderTileMode tmy, SKFilterQuality quality)

Parameters

src SKImage

tmx SKShaderTileMode

tmy SKShaderTileMode

quality SKFilterQuality

Returns

SKShader

CreateImage(SKImage, SKShaderTileMode, SKShaderTileMode, SKMatrix)

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

Parameters

src SKImage

tmx SKShaderTileMode

tmy SKShaderTileMode

localMatrix SKMatrix

Returns

SKShader

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

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

Parameters

src SKImage

tmx SKShaderTileMode

tmy SKShaderTileMode

sampling SKSamplingOptions

localMatrix SKMatrix

Returns

SKShader

CreateImage(SKImage, SKShaderTileMode, SKShaderTileMode, SKFilterQuality, SKMatrix)

public static SKShader CreateImage(SKImage src, SKShaderTileMode tmx, SKShaderTileMode tmy, SKFilterQuality quality, SKMatrix localMatrix)

Parameters

src SKImage

tmx SKShaderTileMode

tmy SKShaderTileMode

quality SKFilterQuality

localMatrix SKMatrix

Returns

SKShader

CreateLinearGradient(SKPoint, SKPoint, SKColor[], float[]?, SKShaderTileMode, SKMatrix?)

public static SKShader CreateLinearGradient(SKPoint start, SKPoint end, SKColor[] colors, float[]? colorPos, SKShaderTileMode tileMode, SKMatrix? localMatrix = null)

Parameters

start SKPoint

end SKPoint

colors SKColor[]

colorPos float[]?

tileMode SKShaderTileMode

localMatrix SKMatrix?

Returns

SKShader

CreateLinearGradient(SKPoint, SKPoint, SKColor[], float[]?, SKShaderTileMode)

public static SKShader CreateLinearGradient(SKPoint start, SKPoint end, SKColor[] colors, float[]? colorPos, SKShaderTileMode tileMode)

Parameters

start SKPoint

end SKPoint

colors SKColor[]

colorPos float[]?

tileMode SKShaderTileMode

Returns

SKShader

CreateLinearGradient(SKPoint, SKPoint, SKColor[], SKShaderTileMode)

public static SKShader CreateLinearGradient(SKPoint start, SKPoint end, SKColor[] colors, SKShaderTileMode mode)

Parameters

start SKPoint

end SKPoint

colors SKColor[]

mode SKShaderTileMode

Returns

SKShader

CreateLinearGradient(SKPoint, SKPoint, SKColor[], SKShaderTileMode, SKMatrix)

public static SKShader CreateLinearGradient(SKPoint start, SKPoint end, SKColor[] colors, SKShaderTileMode mode, SKMatrix localMatrix)

Parameters

start SKPoint

end SKPoint

colors SKColor[]

mode SKShaderTileMode

localMatrix SKMatrix

Returns

SKShader

CreateLinearGradient(SKPoint, SKPoint, SKColorF[], SKColorSpace?, SKShaderTileMode)

public static SKShader CreateLinearGradient(SKPoint start, SKPoint end, SKColorF[] colors, SKColorSpace? colorspace, SKShaderTileMode mode)

Parameters

start SKPoint

end SKPoint

colors SKColorF[]

colorspace SKColorSpace?

mode SKShaderTileMode

Returns

SKShader

CreateLinearGradient(SKPoint, SKPoint, SKColorF[], SKColorSpace?, float[]?, SKShaderTileMode)

public static SKShader CreateLinearGradient(SKPoint start, SKPoint end, SKColorF[] colors, SKColorSpace? colorspace, float[]? colorPos, SKShaderTileMode mode)

Parameters

start SKPoint

end SKPoint

colors SKColorF[]

colorspace SKColorSpace?

colorPos float[]?

mode SKShaderTileMode

Returns

SKShader

CreateLinearGradient(SKPoint, SKPoint, SKColorF[], SKColorSpace?, float[]?, SKShaderTileMode, SKMatrix)

public static SKShader CreateLinearGradient(SKPoint start, SKPoint end, SKColorF[] colors, SKColorSpace? colorspace, float[]? colorPos, SKShaderTileMode mode, SKMatrix localMatrix)

Parameters

start SKPoint

end SKPoint

colors SKColorF[]

colorspace SKColorSpace?

colorPos float[]?

mode SKShaderTileMode

localMatrix SKMatrix

Returns

SKShader

CreateLocalMatrix(SKShader, SKMatrix)

public static SKShader CreateLocalMatrix(SKShader shader, SKMatrix localMatrix)

Parameters

shader SKShader

localMatrix SKMatrix

Returns

SKShader

CreatePerlinNoiseFractalNoise(float, float, int, float)

public static SKShader CreatePerlinNoiseFractalNoise(float baseFrequencyX, float baseFrequencyY, int numOctaves, float seed)

Parameters

baseFrequencyX float

baseFrequencyY float

numOctaves int

seed float

Returns

SKShader

CreatePerlinNoiseFractalNoise(float, float, int, float, SKPointI)

public static SKShader CreatePerlinNoiseFractalNoise(float baseFrequencyX, float baseFrequencyY, int numOctaves, float seed, SKPointI tileSize)

Parameters

baseFrequencyX float

baseFrequencyY float

numOctaves int

seed float

tileSize SKPointI

Returns

SKShader

CreatePerlinNoiseFractalNoise(float, float, int, float, SKSizeI)

public static SKShader CreatePerlinNoiseFractalNoise(float baseFrequencyX, float baseFrequencyY, int numOctaves, float seed, SKSizeI tileSize)

Parameters

baseFrequencyX float

baseFrequencyY float

numOctaves int

seed float

tileSize SKSizeI

Returns

SKShader

CreatePerlinNoiseTurbulence(float, float, int, float)

public static SKShader CreatePerlinNoiseTurbulence(float baseFrequencyX, float baseFrequencyY, int numOctaves, float seed)

Parameters

baseFrequencyX float

baseFrequencyY float

numOctaves int

seed float

Returns

SKShader

CreatePerlinNoiseTurbulence(float, float, int, float, SKPointI)

public static SKShader CreatePerlinNoiseTurbulence(float baseFrequencyX, float baseFrequencyY, int numOctaves, float seed, SKPointI tileSize)

Parameters

baseFrequencyX float

baseFrequencyY float

numOctaves int

seed float

tileSize SKPointI

Returns

SKShader

CreatePerlinNoiseTurbulence(float, float, int, float, SKSizeI)

public static SKShader CreatePerlinNoiseTurbulence(float baseFrequencyX, float baseFrequencyY, int numOctaves, float seed, SKSizeI tileSize)

Parameters

baseFrequencyX float

baseFrequencyY float

numOctaves int

seed float

tileSize SKSizeI

Returns

SKShader

CreatePicture(SKPicture)

public static SKShader CreatePicture(SKPicture src)

Parameters

src SKPicture

Returns

SKShader

CreatePicture(SKPicture, SKShaderTileMode, SKShaderTileMode)

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

Parameters

src SKPicture

tmx SKShaderTileMode

tmy SKShaderTileMode

Returns

SKShader

CreatePicture(SKPicture, SKShaderTileMode, SKShaderTileMode, SKRect)

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

Parameters

src SKPicture

tmx SKShaderTileMode

tmy SKShaderTileMode

tile SKRect

Returns

SKShader

CreatePicture(SKPicture, SKShaderTileMode, SKShaderTileMode, SKFilterMode)

public static SKShader CreatePicture(SKPicture src, SKShaderTileMode tmx, SKShaderTileMode tmy, SKFilterMode filterMode)

Parameters

src SKPicture

tmx SKShaderTileMode

tmy SKShaderTileMode

filterMode SKFilterMode

Returns

SKShader

CreatePicture(SKPicture, SKShaderTileMode, SKShaderTileMode, SKFilterMode, SKRect)

public static SKShader CreatePicture(SKPicture src, SKShaderTileMode tmx, SKShaderTileMode tmy, SKFilterMode filterMode, SKRect tile)

Parameters

src SKPicture

tmx SKShaderTileMode

tmy SKShaderTileMode

filterMode SKFilterMode

tile SKRect

Returns

SKShader

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

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

Parameters

src SKPicture

tmx SKShaderTileMode

tmy SKShaderTileMode

localMatrix SKMatrix

tile SKRect

Returns

SKShader

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

public static SKShader CreatePicture(SKPicture src, SKShaderTileMode tmx, SKShaderTileMode tmy, SKFilterMode filterMode, SKMatrix localMatrix, SKRect tile)

Parameters

src SKPicture

tmx SKShaderTileMode

tmy SKShaderTileMode

filterMode SKFilterMode

localMatrix SKMatrix

tile SKRect

Returns

SKShader

CreateRadialGradient(SKPoint, float, SKColor[], float[]?, SKShaderTileMode, SKMatrix?)

public static SKShader CreateRadialGradient(SKPoint center, float radius, SKColor[] colors, float[]? colorPos, SKShaderTileMode tileMode, SKMatrix? localMatrix = null)

Parameters

center SKPoint

radius float

colors SKColor[]

colorPos float[]?

tileMode SKShaderTileMode

localMatrix SKMatrix?

Returns

SKShader

CreateRadialGradient(SKPoint, float, SKColor[], float[]?, SKShaderTileMode)

public static SKShader CreateRadialGradient(SKPoint center, float radius, SKColor[] colors, float[]? colorPos, SKShaderTileMode tileMode)

Parameters

center SKPoint

radius float

colors SKColor[]

colorPos float[]?

tileMode SKShaderTileMode

Returns

SKShader

CreateRadialGradient(SKPoint, float, SKColor[], SKShaderTileMode)

public static SKShader CreateRadialGradient(SKPoint center, float radius, SKColor[] colors, SKShaderTileMode mode)

Parameters

center SKPoint

radius float

colors SKColor[]

mode SKShaderTileMode

Returns

SKShader

CreateRadialGradient(SKPoint, float, SKColor[], SKShaderTileMode, SKMatrix)

public static SKShader CreateRadialGradient(SKPoint center, float radius, SKColor[] colors, SKShaderTileMode mode, SKMatrix localMatrix)

Parameters

center SKPoint

radius float

colors SKColor[]

mode SKShaderTileMode

localMatrix SKMatrix

Returns

SKShader

CreateRadialGradient(SKPoint, float, SKColorF[], SKColorSpace?, SKShaderTileMode)

public static SKShader CreateRadialGradient(SKPoint center, float radius, SKColorF[] colors, SKColorSpace? colorspace, SKShaderTileMode mode)

Parameters

center SKPoint

radius float

colors SKColorF[]

colorspace SKColorSpace?

mode SKShaderTileMode

Returns

SKShader

CreateRadialGradient(SKPoint, float, SKColorF[], SKColorSpace?, float[]?, SKShaderTileMode)

public static SKShader CreateRadialGradient(SKPoint center, float radius, SKColorF[] colors, SKColorSpace? colorspace, float[]? colorPos, SKShaderTileMode mode)

Parameters

center SKPoint

radius float

colors SKColorF[]

colorspace SKColorSpace?

colorPos float[]?

mode SKShaderTileMode

Returns

SKShader

CreateRadialGradient(SKPoint, float, SKColorF[], SKColorSpace?, float[]?, SKShaderTileMode, SKMatrix)

public static SKShader CreateRadialGradient(SKPoint center, float radius, SKColorF[] colors, SKColorSpace? colorspace, float[]? colorPos, SKShaderTileMode mode, SKMatrix localMatrix)

Parameters

center SKPoint

radius float

colors SKColorF[]

colorspace SKColorSpace?

colorPos float[]?

mode SKShaderTileMode

localMatrix SKMatrix

Returns

SKShader

CreateSweepGradient(SKPoint, SKColor[], float[]?, SKMatrix?)

public static SKShader CreateSweepGradient(SKPoint center, SKColor[] colors, float[]? colorPos, SKMatrix? localMatrix = null)

Parameters

center SKPoint

colors SKColor[]

colorPos float[]?

localMatrix SKMatrix?

Returns

SKShader

CreateSweepGradient(SKPoint, SKColor[])

public static SKShader CreateSweepGradient(SKPoint center, SKColor[] colors)

Parameters

center SKPoint

colors SKColor[]

Returns

SKShader

CreateSweepGradient(SKPoint, SKColor[], float[]?)

public static SKShader CreateSweepGradient(SKPoint center, SKColor[] colors, float[]? colorPos)

Parameters

center SKPoint

colors SKColor[]

colorPos float[]?

Returns

SKShader

CreateSweepGradient(SKPoint, SKColor[], float[]?, SKMatrix)

public static SKShader CreateSweepGradient(SKPoint center, SKColor[] colors, float[]? colorPos, SKMatrix localMatrix)

Parameters

center SKPoint

colors SKColor[]

colorPos float[]?

localMatrix SKMatrix

Returns

SKShader

CreateSweepGradient(SKPoint, SKColor[], float[]?, SKShaderTileMode, float, float)

public static SKShader CreateSweepGradient(SKPoint center, SKColor[] colors, float[]? colorPos, SKShaderTileMode tileMode, float startAngle, float endAngle)

Parameters

center SKPoint

colors SKColor[]

colorPos float[]?

tileMode SKShaderTileMode

startAngle float

endAngle float

Returns

SKShader

CreateSweepGradient(SKPoint, SKColor[], float[]?, SKShaderTileMode, float, float, SKMatrix)

public static SKShader CreateSweepGradient(SKPoint center, SKColor[] colors, float[]? colorPos, SKShaderTileMode tileMode, float startAngle, float endAngle, SKMatrix localMatrix)

Parameters

center SKPoint

colors SKColor[]

colorPos float[]?

tileMode SKShaderTileMode

startAngle float

endAngle float

localMatrix SKMatrix

Returns

SKShader

CreateSweepGradient(SKPoint, SKColorF[], SKColorSpace?)

public static SKShader CreateSweepGradient(SKPoint center, SKColorF[] colors, SKColorSpace? colorspace)

Parameters

center SKPoint

colors SKColorF[]

colorspace SKColorSpace?

Returns

SKShader

CreateSweepGradient(SKPoint, SKColorF[], SKColorSpace?, float[]?)

public static SKShader CreateSweepGradient(SKPoint center, SKColorF[] colors, SKColorSpace? colorspace, float[]? colorPos)

Parameters

center SKPoint

colors SKColorF[]

colorspace SKColorSpace?

colorPos float[]?

Returns

SKShader

CreateSweepGradient(SKPoint, SKColorF[], SKColorSpace?, float[]?, SKMatrix)

public static SKShader CreateSweepGradient(SKPoint center, SKColorF[] colors, SKColorSpace? colorspace, float[]? colorPos, SKMatrix localMatrix)

Parameters

center SKPoint

colors SKColorF[]

colorspace SKColorSpace?

colorPos float[]?

localMatrix SKMatrix

Returns

SKShader

CreateSweepGradient(SKPoint, SKColorF[], SKColorSpace?, SKShaderTileMode, float, float)

public static SKShader CreateSweepGradient(SKPoint center, SKColorF[] colors, SKColorSpace? colorspace, SKShaderTileMode tileMode, float startAngle, float endAngle)

Parameters

center SKPoint

colors SKColorF[]

colorspace SKColorSpace?

tileMode SKShaderTileMode

startAngle float

endAngle float

Returns

SKShader

CreateSweepGradient(SKPoint, SKColorF[], SKColorSpace?, float[]?, SKShaderTileMode, float, float)

public static SKShader CreateSweepGradient(SKPoint center, SKColorF[] colors, SKColorSpace? colorspace, float[]? colorPos, SKShaderTileMode tileMode, float startAngle, float endAngle)

Parameters

center SKPoint

colors SKColorF[]

colorspace SKColorSpace?

colorPos float[]?

tileMode SKShaderTileMode

startAngle float

endAngle float

Returns

SKShader

CreateSweepGradient(SKPoint, SKColorF[], SKColorSpace?, float[]?, SKShaderTileMode, float, float, SKMatrix)

public static SKShader CreateSweepGradient(SKPoint center, SKColorF[] colors, SKColorSpace? colorspace, float[]? colorPos, SKShaderTileMode tileMode, float startAngle, float endAngle, SKMatrix localMatrix)

Parameters

center SKPoint

colors SKColorF[]

colorspace SKColorSpace?

colorPos float[]?

tileMode SKShaderTileMode

startAngle float

endAngle float

localMatrix SKMatrix

Returns

SKShader

CreateTwoPointConicalGradient(SKPoint, float, SKPoint, float, SKColor[], float[]?, SKShaderTileMode, SKMatrix?)

public static SKShader CreateTwoPointConicalGradient(SKPoint start, float startRadius, SKPoint end, float endRadius, SKColor[] colors, float[]? colorPos, SKShaderTileMode tileMode, SKMatrix? localMatrix = null)

Parameters

start SKPoint

startRadius float

end SKPoint

endRadius float

colors SKColor[]

colorPos float[]?

tileMode SKShaderTileMode

localMatrix SKMatrix?

Returns

SKShader

CreateTwoPointConicalGradient(SKPoint, float, SKPoint, float, SKColor[], float[]?, SKShaderTileMode)

public static SKShader CreateTwoPointConicalGradient(SKPoint start, float startRadius, SKPoint end, float endRadius, SKColor[] colors, float[]? colorPos, SKShaderTileMode tileMode)

Parameters

start SKPoint

startRadius float

end SKPoint

endRadius float

colors SKColor[]

colorPos float[]?

tileMode SKShaderTileMode

Returns

SKShader

CreateTwoPointConicalGradient(SKPoint, float, SKPoint, float, SKColor[], SKShaderTileMode)

public static SKShader CreateTwoPointConicalGradient(SKPoint start, float startRadius, SKPoint end, float endRadius, SKColor[] colors, SKShaderTileMode mode)

Parameters

start SKPoint

startRadius float

end SKPoint

endRadius float

colors SKColor[]

mode SKShaderTileMode

Returns

SKShader

CreateTwoPointConicalGradient(SKPoint, float, SKPoint, float, SKColor[], SKShaderTileMode, SKMatrix)

public static SKShader CreateTwoPointConicalGradient(SKPoint start, float startRadius, SKPoint end, float endRadius, SKColor[] colors, SKShaderTileMode mode, SKMatrix localMatrix)

Parameters

start SKPoint

startRadius float

end SKPoint

endRadius float

colors SKColor[]

mode SKShaderTileMode

localMatrix SKMatrix

Returns

SKShader

CreateTwoPointConicalGradient(SKPoint, float, SKPoint, float, SKColorF[], SKColorSpace?, SKShaderTileMode)

public static SKShader CreateTwoPointConicalGradient(SKPoint start, float startRadius, SKPoint end, float endRadius, SKColorF[] colors, SKColorSpace? colorspace, SKShaderTileMode mode)

Parameters

start SKPoint

startRadius float

end SKPoint

endRadius float

colors SKColorF[]

colorspace SKColorSpace?

mode SKShaderTileMode

Returns

SKShader

CreateTwoPointConicalGradient(SKPoint, float, SKPoint, float, SKColorF[], SKColorSpace?, float[]?, SKShaderTileMode)

public static SKShader CreateTwoPointConicalGradient(SKPoint start, float startRadius, SKPoint end, float endRadius, SKColorF[] colors, SKColorSpace? colorspace, float[]? colorPos, SKShaderTileMode mode)

Parameters

start SKPoint

startRadius float

end SKPoint

endRadius float

colors SKColorF[]

colorspace SKColorSpace?

colorPos float[]?

mode SKShaderTileMode

Returns

SKShader

CreateTwoPointConicalGradient(SKPoint, float, SKPoint, float, SKColorF[], SKColorSpace?, float[]?, SKShaderTileMode, SKMatrix)

public static SKShader CreateTwoPointConicalGradient(SKPoint start, float startRadius, SKPoint end, float endRadius, SKColorF[] colors, SKColorSpace? colorspace, float[]? colorPos, SKShaderTileMode mode, SKMatrix localMatrix)

Parameters

start SKPoint

startRadius float

end SKPoint

endRadius float

colors SKColorF[]

colorspace SKColorSpace?

colorPos float[]?

mode SKShaderTileMode

localMatrix SKMatrix

Returns

SKShader

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

WithColorFilter(SKColorFilter?)

public SKShader WithColorFilter(SKColorFilter? filter)

Parameters

filter SKColorFilter?

Returns

SKShader