Edit

SKImageFilter.CreateDropShadow Method

Definition

Overloads

Name Description
CreateDropShadow(Single, Single, Single, Single, SKColor)

Creates an image filter that draws a drop shadow.

CreateDropShadow(Single, Single, Single, Single, SKColor, SKImageFilter)

Creates an image filter that draws a drop shadow.

CreateDropShadow(Single, Single, Single, Single, SKColor, SKImageFilter, SKRect)

Creates an image filter that draws a drop shadow.

CreateDropShadow(Single, Single, Single, Single, SKColor)

Creates an image filter that draws a drop shadow.

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

Parameters

dx
Single

The X offset of the shadow.

dy
Single

The Y offset of the shadow.

sigmaX
Single

The Gaussian blur standard deviation in the X direction.

sigmaY
Single

The Gaussian blur standard deviation in the Y direction.

color
SKColor

The color of the shadow.

Returns

Returns the new SKImageFilter, or null on error.

Applies to

CreateDropShadow(Single, Single, Single, Single, SKColor, SKImageFilter)

Creates an image filter that draws a drop shadow.

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

Parameters

dx
Single

The X offset of the shadow.

dy
Single

The Y offset of the shadow.

sigmaX
Single

The Gaussian blur standard deviation in the X direction.

sigmaY
Single

The Gaussian blur standard deviation in the Y direction.

color
SKColor

The color of the shadow.

input
SKImageFilter

The input filter to use, or null to use the source bitmap.

Returns

Returns the new SKImageFilter, or null on error.

Applies to

CreateDropShadow(Single, Single, Single, Single, SKColor, SKImageFilter, SKRect)

Creates an image filter that draws a drop shadow.

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

Parameters

dx
Single

The X offset of the shadow.

dy
Single

The Y offset of the shadow.

sigmaX
Single

The Gaussian blur standard deviation in the X direction.

sigmaY
Single

The Gaussian blur standard deviation in the Y direction.

color
SKColor

The color of the shadow.

input
SKImageFilter

The input filter to use, or null to use the source bitmap.

cropRect
SKRect

The rectangle to which the output processing will be limited.

Returns

Returns the new SKImageFilter, or null on error.

Applies to