Skip to main content

Class SKImageFilter

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

public sealed class SKImageFilter : IDisposable

Inheritance

objectSKImageFilter

Implements

IDisposable

Inherited Members

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

Methods

CreateArithmetic(float, float, float, float, bool, SKImageFilter?, SKImageFilter?, SKRect?)

public static SKImageFilter CreateArithmetic(float k1, float k2, float k3, float k4, bool enforcePremul, SKImageFilter? background, SKImageFilter? foreground, SKRect? cropRect = null)

Parameters

k1 float

k2 float

k3 float

k4 float

enforcePremul bool

background SKImageFilter?

foreground SKImageFilter?

cropRect SKRect?

Returns

SKImageFilter

CreateBlendMode(SKBlendMode, SKImageFilter?, SKImageFilter?, SKRect?)

public static SKImageFilter CreateBlendMode(SKBlendMode mode, SKImageFilter? background, SKImageFilter? foreground = null, SKRect? cropRect = null)

Parameters

mode SKBlendMode

background SKImageFilter?

foreground SKImageFilter?

cropRect SKRect?

Returns

SKImageFilter

CreateBlendMode(SKBlender, SKImageFilter?, SKImageFilter?, SKRect?)

public static SKImageFilter CreateBlendMode(SKBlender blender, SKImageFilter? background, SKImageFilter? foreground = null, SKRect? cropRect = null)

Parameters

blender SKBlender

background SKImageFilter?

foreground SKImageFilter?

cropRect SKRect?

Returns

SKImageFilter

CreateBlur(float, float)

public static SKImageFilter CreateBlur(float sigmaX, float sigmaY)

Parameters

sigmaX float

sigmaY float

Returns

SKImageFilter

CreateBlur(float, float, SKImageFilter?)

public static SKImageFilter CreateBlur(float sigmaX, float sigmaY, SKImageFilter? input)

Parameters

sigmaX float

sigmaY float

input SKImageFilter?

Returns

SKImageFilter

CreateBlur(float, float, SKImageFilter?, SKRect)

public static SKImageFilter CreateBlur(float sigmaX, float sigmaY, SKImageFilter? input, SKRect cropRect)

Parameters

sigmaX float

sigmaY float

input SKImageFilter?

cropRect SKRect

Returns

SKImageFilter

CreateBlur(float, float, SKShaderTileMode)

public static SKImageFilter CreateBlur(float sigmaX, float sigmaY, SKShaderTileMode tileMode)

Parameters

sigmaX float

sigmaY float

tileMode SKShaderTileMode

Returns

SKImageFilter

CreateBlur(float, float, SKShaderTileMode, SKImageFilter?)

public static SKImageFilter CreateBlur(float sigmaX, float sigmaY, SKShaderTileMode tileMode, SKImageFilter? input)

Parameters

sigmaX float

sigmaY float

tileMode SKShaderTileMode

input SKImageFilter?

Returns

SKImageFilter

CreateBlur(float, float, SKShaderTileMode, SKImageFilter?, SKRect)

public static SKImageFilter CreateBlur(float sigmaX, float sigmaY, SKShaderTileMode tileMode, SKImageFilter? input, SKRect cropRect)

Parameters

sigmaX float

sigmaY float

tileMode SKShaderTileMode

input SKImageFilter?

cropRect SKRect

Returns

SKImageFilter

CreateColorFilter(SKColorFilter)

public static SKImageFilter CreateColorFilter(SKColorFilter cf)

Parameters

cf SKColorFilter

Returns

SKImageFilter

CreateColorFilter(SKColorFilter, SKImageFilter?)

public static SKImageFilter CreateColorFilter(SKColorFilter cf, SKImageFilter? input)

Parameters

cf SKColorFilter

input SKImageFilter?

Returns

SKImageFilter

CreateColorFilter(SKColorFilter, SKImageFilter?, SKRect)

public static SKImageFilter CreateColorFilter(SKColorFilter cf, SKImageFilter? input, SKRect cropRect)

Parameters

cf SKColorFilter

input SKImageFilter?

cropRect SKRect

Returns

SKImageFilter

CreateCompose(SKImageFilter, SKImageFilter)

public static SKImageFilter CreateCompose(SKImageFilter outer, SKImageFilter inner)

Parameters

outer SKImageFilter

inner SKImageFilter

Returns

SKImageFilter

CreateDilate(int, int, SKImageFilter?, SKRect?)

public static SKImageFilter CreateDilate(int radiusX, int radiusY, SKImageFilter? input = null, SKRect? cropRect = null)

Parameters

radiusX int

radiusY int

input SKImageFilter?

cropRect SKRect?

Returns

SKImageFilter

CreateDisplacementMapEffect(SKColorChannel, SKColorChannel, float, SKImageFilter)

public static SKImageFilter CreateDisplacementMapEffect(SKColorChannel xChannelSelector, SKColorChannel yChannelSelector, float scale, SKImageFilter displacement)

Parameters

xChannelSelector SKColorChannel

yChannelSelector SKColorChannel

scale float

displacement SKImageFilter

Returns

SKImageFilter

CreateDisplacementMapEffect(SKColorChannel, SKColorChannel, float, SKImageFilter, SKImageFilter?)

public static SKImageFilter CreateDisplacementMapEffect(SKColorChannel xChannelSelector, SKColorChannel yChannelSelector, float scale, SKImageFilter displacement, SKImageFilter? input)

Parameters

xChannelSelector SKColorChannel

yChannelSelector SKColorChannel

scale float

displacement SKImageFilter

input SKImageFilter?

Returns

SKImageFilter

CreateDisplacementMapEffect(SKColorChannel, SKColorChannel, float, SKImageFilter, SKImageFilter?, SKRect)

public static SKImageFilter CreateDisplacementMapEffect(SKColorChannel xChannelSelector, SKColorChannel yChannelSelector, float scale, SKImageFilter displacement, SKImageFilter? input, SKRect cropRect)

Parameters

xChannelSelector SKColorChannel

yChannelSelector SKColorChannel

scale float

displacement SKImageFilter

input SKImageFilter?

cropRect SKRect

Returns

SKImageFilter

CreateDistantLitDiffuse(SKPoint3, SKColor, float, float, SKImageFilter?, SKRect?)

public static SKImageFilter CreateDistantLitDiffuse(SKPoint3 direction, SKColor lightColor, float surfaceScale, float kd, SKImageFilter? input = null, SKRect? cropRect = null)

Parameters

direction SKPoint3

lightColor SKColor

surfaceScale float

kd float

input SKImageFilter?

cropRect SKRect?

Returns

SKImageFilter

CreateDistantLitSpecular(SKPoint3, SKColor, float, float, float, SKImageFilter?, SKRect?)

public static SKImageFilter CreateDistantLitSpecular(SKPoint3 direction, SKColor lightColor, float surfaceScale, float ks, float shininess, SKImageFilter? input = null, SKRect? cropRect = null)

Parameters

direction SKPoint3

lightColor SKColor

surfaceScale float

ks float

shininess float

input SKImageFilter?

cropRect SKRect?

Returns

SKImageFilter

CreateDropShadow(float, float, float, float, SKColor)

public static SKImageFilter CreateDropShadow(float dx, float dy, float sigmaX, float sigmaY, SKColor color)

Parameters

dx float

dy float

sigmaX float

sigmaY float

color SKColor

Returns

SKImageFilter

CreateDropShadow(float, float, float, float, SKColor, SKImageFilter?)

public static SKImageFilter CreateDropShadow(float dx, float dy, float sigmaX, float sigmaY, SKColor color, SKImageFilter? input)

Parameters

dx float

dy float

sigmaX float

sigmaY float

color SKColor

input SKImageFilter?

Returns

SKImageFilter

CreateDropShadow(float, float, float, float, SKColor, SKImageFilter?, SKRect)

public static SKImageFilter CreateDropShadow(float dx, float dy, float sigmaX, float sigmaY, SKColor color, SKImageFilter? input, SKRect cropRect)

Parameters

dx float

dy float

sigmaX float

sigmaY float

color SKColor

input SKImageFilter?

cropRect SKRect

Returns

SKImageFilter

CreateDropShadow(float, float, float, float, SKColor, SKDropShadowImageFilterShadowMode, SKImageFilter?, SKRect?)

public static SKImageFilter CreateDropShadow(float dx, float dy, float sigmaX, float sigmaY, SKColor color, SKDropShadowImageFilterShadowMode shadowMode, SKImageFilter? input, SKRect? cropRect = null)

Parameters

dx float

dy float

sigmaX float

sigmaY float

color SKColor

shadowMode SKDropShadowImageFilterShadowMode

input SKImageFilter?

cropRect SKRect?

Returns

SKImageFilter

CreateDropShadowOnly(float, float, float, float, SKColor, SKImageFilter?, SKRect?)

public static SKImageFilter CreateDropShadowOnly(float dx, float dy, float sigmaX, float sigmaY, SKColor color, SKImageFilter? input, SKRect? cropRect = null)

Parameters

dx float

dy float

sigmaX float

sigmaY float

color SKColor

input SKImageFilter?

cropRect SKRect?

Returns

SKImageFilter

CreateErode(int, int, SKImageFilter?, SKRect?)

public static SKImageFilter CreateErode(int radiusX, int radiusY, SKImageFilter? input = null, SKRect? cropRect = null)

Parameters

radiusX int

radiusY int

input SKImageFilter?

cropRect SKRect?

Returns

SKImageFilter

CreateImage(SKImage, SKRect, SKRect, SKSamplingOptions, SKImageFilter?)

public static SKImageFilter CreateImage(SKImage image, SKRect srcRect, SKRect dstRect, SKSamplingOptions sampling, SKImageFilter? input = null)

Parameters

image SKImage

srcRect SKRect

dstRect SKRect

sampling SKSamplingOptions

input SKImageFilter?

Returns

SKImageFilter

CreateImage(SKImage, SKRect, SKRect, SKFilterQuality)

public static SKImageFilter CreateImage(SKImage image, SKRect srcRect, SKRect dstRect, SKFilterQuality filterQuality)

Parameters

image SKImage

srcRect SKRect

dstRect SKRect

filterQuality SKFilterQuality

Returns

SKImageFilter

CreateImage(SKImage, SKRect, SKRect, SKFilterQuality, SKImageFilter?)

public static SKImageFilter CreateImage(SKImage image, SKRect srcRect, SKRect dstRect, SKFilterQuality filterQuality, SKImageFilter? input)

Parameters

image SKImage

srcRect SKRect

dstRect SKRect

filterQuality SKFilterQuality

input SKImageFilter?

Returns

SKImageFilter

CreateImage(SKImage, SKRect, SKRect, SKSamplingOptions, SKImageFilter?, SKRect)

public static SKImageFilter CreateImage(SKImage image, SKRect srcRect, SKRect dstRect, SKSamplingOptions sampling, SKImageFilter? input, SKRect cropRect)

Parameters

image SKImage

srcRect SKRect

dstRect SKRect

sampling SKSamplingOptions

input SKImageFilter?

cropRect SKRect

Returns

SKImageFilter

CreateImage(SKImage, SKRect, SKRect, SKFilterQuality, SKImageFilter?, SKRect)

public static SKImageFilter CreateImage(SKImage image, SKRect srcRect, SKRect dstRect, SKFilterQuality filterQuality, SKImageFilter? input, SKRect cropRect)

Parameters

image SKImage

srcRect SKRect

dstRect SKRect

filterQuality SKFilterQuality

input SKImageFilter?

cropRect SKRect

Returns

SKImageFilter

CreateMagnifier(SKRect, float, float, SKSamplingOptions, SKImageFilter?, SKRect?)

public static SKImageFilter CreateMagnifier(SKRect lensBounds, float zoomAmount, float inset, SKSamplingOptions sampling, SKImageFilter? input = null, SKRect? cropRect = null)

Parameters

lensBounds SKRect

zoomAmount float

inset float

sampling SKSamplingOptions

input SKImageFilter?

cropRect SKRect?

Returns

SKImageFilter

CreateMatrix(in SKMatrix)

public static SKImageFilter CreateMatrix(in SKMatrix matrix)

Parameters

matrix SKMatrix

Returns

SKImageFilter

CreateMatrix(in SKMatrix, SKSamplingOptions)

public static SKImageFilter CreateMatrix(in SKMatrix matrix, SKSamplingOptions sampling)

Parameters

matrix SKMatrix

sampling SKSamplingOptions

Returns

SKImageFilter

CreateMatrix(in SKMatrix, SKFilterQuality)

public static SKImageFilter CreateMatrix(in SKMatrix matrix, SKFilterQuality quality)

Parameters

matrix SKMatrix

quality SKFilterQuality

Returns

SKImageFilter

CreateMatrix(in SKMatrix, SKSamplingOptions, SKImageFilter?)

public static SKImageFilter CreateMatrix(in SKMatrix matrix, SKSamplingOptions sampling, SKImageFilter? input)

Parameters

matrix SKMatrix

sampling SKSamplingOptions

input SKImageFilter?

Returns

SKImageFilter

CreateMatrix(in SKMatrix, SKFilterQuality, SKImageFilter?)

public static SKImageFilter CreateMatrix(in SKMatrix matrix, SKFilterQuality quality, SKImageFilter? input)

Parameters

matrix SKMatrix

quality SKFilterQuality

input SKImageFilter?

Returns

SKImageFilter

CreateMatrixConvolution(SKSizeI, float[], float, float, SKPointI, SKShaderTileMode, bool, SKImageFilter?, SKRect?)

public static SKImageFilter CreateMatrixConvolution(SKSizeI kernelSize, float[] kernel, float gain, float bias, SKPointI kernelOffset, SKShaderTileMode tileMode, bool convolveAlpha, SKImageFilter? input = null, SKRect? cropRect = null)

Parameters

kernelSize SKSizeI

kernel float[]

gain float

bias float

kernelOffset SKPointI

tileMode SKShaderTileMode

convolveAlpha bool

input SKImageFilter?

cropRect SKRect?

Returns

SKImageFilter

CreateMorphology(SKImageFilterMorphologyType, int, int, SKImageFilter?, SKRect?)

public static SKImageFilter CreateMorphology(SKImageFilterMorphologyType morphologyType, int radiusX, int radiusY, SKImageFilter? input = null, SKRect? cropRect = null)

Parameters

morphologyType SKImageFilterMorphologyType

radiusX int

radiusY int

input SKImageFilter?

cropRect SKRect?

Returns

SKImageFilter

CreateOffset(float, float, SKImageFilter?, SKRect?)

public static SKImageFilter CreateOffset(float dx, float dy, SKImageFilter? input = null, SKRect? cropRect = null)

Parameters

dx float

dy float

input SKImageFilter?

cropRect SKRect?

Returns

SKImageFilter

CreatePaint(SKPaint, SKImageFilter?)

public static SKImageFilter CreatePaint(SKPaint paint, SKImageFilter? input = null)

Parameters

paint SKPaint

input SKImageFilter?

Returns

SKImageFilter

CreatePicture(SKPicture)

public static SKImageFilter CreatePicture(SKPicture picture)

Parameters

picture SKPicture

Returns

SKImageFilter

CreatePicture(SKPicture, SKRect)

public static SKImageFilter CreatePicture(SKPicture picture, SKRect cropRect)

Parameters

picture SKPicture

cropRect SKRect

Returns

SKImageFilter

CreatePicture(SKPicture, SKMatrix, SKRect)

public static SKImageFilter CreatePicture(SKPicture picture, SKMatrix localMatrix, SKRect cropRect)

Parameters

picture SKPicture

localMatrix SKMatrix

cropRect SKRect

Returns

SKImageFilter

CreatePointLitDiffuse(SKPoint3, SKColor, float, float, SKImageFilter?, SKRect?)

public static SKImageFilter CreatePointLitDiffuse(SKPoint3 location, SKColor lightColor, float surfaceScale, float kd, SKImageFilter? input = null, SKRect? cropRect = null)

Parameters

location SKPoint3

lightColor SKColor

surfaceScale float

kd float

input SKImageFilter?

cropRect SKRect?

Returns

SKImageFilter

CreatePointLitSpecular(SKPoint3, SKColor, float, float, float, SKImageFilter?, SKRect?)

public static SKImageFilter CreatePointLitSpecular(SKPoint3 location, SKColor lightColor, float surfaceScale, float ks, float shininess, SKImageFilter? input = null, SKRect? cropRect = null)

Parameters

location SKPoint3

lightColor SKColor

surfaceScale float

ks float

shininess float

input SKImageFilter?

cropRect SKRect?

Returns

SKImageFilter

CreateShader(SKShader, SKImageFilter?)

public static SKImageFilter CreateShader(SKShader shader, SKImageFilter? input = null)

Parameters

shader SKShader

input SKImageFilter?

Returns

SKImageFilter

CreateShader(SKShader, SKImageFilter?, SKRect)

public static SKImageFilter CreateShader(SKShader shader, SKImageFilter? input, SKRect cropRect)

Parameters

shader SKShader

input SKImageFilter?

cropRect SKRect

Returns

SKImageFilter

CreateSpotLitDiffuse(SKPoint3, SKPoint3, float, float, SKColor, float, float, SKImageFilter?, SKRect?)

public static SKImageFilter CreateSpotLitDiffuse(SKPoint3 location, SKPoint3 target, float specularExponent, float cutoffAngle, SKColor lightColor, float surfaceScale, float kd, SKImageFilter? input = null, SKRect? cropRect = null)

Parameters

location SKPoint3

target SKPoint3

specularExponent float

cutoffAngle float

lightColor SKColor

surfaceScale float

kd float

input SKImageFilter?

cropRect SKRect?

Returns

SKImageFilter

CreateSpotLitSpecular(SKPoint3, SKPoint3, float, float, SKColor, float, float, float, SKImageFilter?, SKRect?)

public static SKImageFilter CreateSpotLitSpecular(SKPoint3 location, SKPoint3 target, float specularExponent, float cutoffAngle, SKColor lightColor, float surfaceScale, float ks, float shininess, SKImageFilter? input = null, SKRect? cropRect = null)

Parameters

location SKPoint3

target SKPoint3

specularExponent float

cutoffAngle float

lightColor SKColor

surfaceScale float

ks float

shininess float

input SKImageFilter?

cropRect SKRect?

Returns

SKImageFilter

CreateTable(SKColorTable, SKImageFilter?, SKRect?)

public static SKImageFilter CreateTable(SKColorTable table, SKImageFilter? input = null, SKRect? cropRect = null)

Parameters

table SKColorTable

input SKImageFilter?

cropRect SKRect?

Returns

SKImageFilter

CreateTable(byte[]?, byte[]?, byte[]?, byte[]?, SKImageFilter?, SKRect?)

public static SKImageFilter CreateTable(byte[]? tableA, byte[]? tableR, byte[]? tableG, byte[]? tableB, SKImageFilter? input = null, SKRect? cropRect = null)

Parameters

tableA byte[]?

tableR byte[]?

tableG byte[]?

tableB byte[]?

input SKImageFilter?

cropRect SKRect?

Returns

SKImageFilter

CreateTile(SKRect, SKRect, SKImageFilter?)

public static SKImageFilter CreateTile(SKRect src, SKRect dst, SKImageFilter? input = null)

Parameters

src SKRect

dst SKRect

input SKImageFilter?

Returns

SKImageFilter

Dispose()

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

public void Dispose()