Class SKImageFilter
Namespace: SkiaSharp
Assembly: VelloSharp.Skia.Core.dll
public sealed class SKImageFilter : IDisposable
Inheritance
Implements
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
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
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
CreateBlur(float, float)
public static SKImageFilter CreateBlur(float sigmaX, float sigmaY)
Parameters
sigmaX float
sigmaY float
Returns
CreateBlur(float, float, SKImageFilter?)
public static SKImageFilter CreateBlur(float sigmaX, float sigmaY, SKImageFilter? input)
Parameters
sigmaX float
sigmaY float
input SKImageFilter?
Returns
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
CreateBlur(float, float, SKShaderTileMode)
public static SKImageFilter CreateBlur(float sigmaX, float sigmaY, SKShaderTileMode tileMode)
Parameters
sigmaX float
sigmaY float
tileMode SKShaderTileMode
Returns
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
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
CreateColorFilter(SKColorFilter)
public static SKImageFilter CreateColorFilter(SKColorFilter cf)
Parameters
Returns
CreateColorFilter(SKColorFilter, SKImageFilter?)
public static SKImageFilter CreateColorFilter(SKColorFilter cf, SKImageFilter? input)
Parameters
input SKImageFilter?
Returns
CreateColorFilter(SKColorFilter, SKImageFilter?, SKRect)
public static SKImageFilter CreateColorFilter(SKColorFilter cf, SKImageFilter? input, SKRect cropRect)
Parameters
input SKImageFilter?
cropRect SKRect
Returns
CreateCompose(SKImageFilter, SKImageFilter)
public static SKImageFilter CreateCompose(SKImageFilter outer, SKImageFilter inner)
Parameters
outer SKImageFilter
inner SKImageFilter
Returns
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
CreateMatrix(in SKMatrix)
public static SKImageFilter CreateMatrix(in SKMatrix matrix)
Parameters
matrix SKMatrix
Returns
CreateMatrix(in SKMatrix, SKSamplingOptions)
public static SKImageFilter CreateMatrix(in SKMatrix matrix, SKSamplingOptions sampling)
Parameters
matrix SKMatrix
sampling SKSamplingOptions
Returns
CreateMatrix(in SKMatrix, SKFilterQuality)
public static SKImageFilter CreateMatrix(in SKMatrix matrix, SKFilterQuality quality)
Parameters
matrix SKMatrix
quality SKFilterQuality
Returns
CreateMatrix(in SKMatrix, SKSamplingOptions, SKImageFilter?)
public static SKImageFilter CreateMatrix(in SKMatrix matrix, SKSamplingOptions sampling, SKImageFilter? input)
Parameters
matrix SKMatrix
sampling SKSamplingOptions
input SKImageFilter?
Returns
CreateMatrix(in SKMatrix, SKFilterQuality, SKImageFilter?)
public static SKImageFilter CreateMatrix(in SKMatrix matrix, SKFilterQuality quality, SKImageFilter? input)
Parameters
matrix SKMatrix
quality SKFilterQuality
input SKImageFilter?
Returns
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
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
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
CreatePaint(SKPaint, SKImageFilter?)
public static SKImageFilter CreatePaint(SKPaint paint, SKImageFilter? input = null)
Parameters
paint SKPaint
input SKImageFilter?
Returns
CreatePicture(SKPicture)
public static SKImageFilter CreatePicture(SKPicture picture)
Parameters
picture SKPicture
Returns
CreatePicture(SKPicture, SKRect)
public static SKImageFilter CreatePicture(SKPicture picture, SKRect cropRect)
Parameters
picture SKPicture
cropRect SKRect
Returns
CreatePicture(SKPicture, SKMatrix, SKRect)
public static SKImageFilter CreatePicture(SKPicture picture, SKMatrix localMatrix, SKRect cropRect)
Parameters
picture SKPicture
localMatrix SKMatrix
cropRect SKRect
Returns
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
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
CreateShader(SKShader, SKImageFilter?)
public static SKImageFilter CreateShader(SKShader shader, SKImageFilter? input = null)
Parameters
shader SKShader
input SKImageFilter?
Returns
CreateShader(SKShader, SKImageFilter?, SKRect)
public static SKImageFilter CreateShader(SKShader shader, SKImageFilter? input, SKRect cropRect)
Parameters
shader SKShader
input SKImageFilter?
cropRect SKRect
Returns
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
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
CreateTable(SKColorTable, SKImageFilter?, SKRect?)
public static SKImageFilter CreateTable(SKColorTable table, SKImageFilter? input = null, SKRect? cropRect = null)
Parameters
table SKColorTable
input SKImageFilter?
cropRect SKRect?
Returns
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
CreateTile(SKRect, SKRect, SKImageFilter?)
public static SKImageFilter CreateTile(SKRect src, SKRect dst, SKImageFilter? input = null)
Parameters
src SKRect
dst SKRect
input SKImageFilter?
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()