SKImageFilter.CreateDisplacementMapEffect(SKDisplacementMapEffectChannelSelectorType, SKDisplacementMapEffectChannelSelectorType, Single, SKImageFilter, SKImageFilter, SKImageFilter+CropRect) Method

Definition

Creates an image filter that applies a displacement map.

public static SkiaSharp.SKImageFilter CreateDisplacementMapEffect (SkiaSharp.SKDisplacementMapEffectChannelSelectorType xChannelSelector, SkiaSharp.SKDisplacementMapEffectChannelSelectorType yChannelSelector, float scale, SkiaSharp.SKImageFilter displacement, SkiaSharp.SKImageFilter input = null, SkiaSharp.SKImageFilter.CropRect cropRect = null);

Parameters

xChannelSelector
SKDisplacementMapEffectChannelSelectorType

The channel in the x-direction to select for displacement.

yChannelSelector
SKDisplacementMapEffectChannelSelectorType

The channel in the y-direction to select for displacement.

scale
Single

The amount to displace by.

displacement
SKImageFilter

The image filter to apply the displacement to.

input
SKImageFilter

The input filter to use.

cropRect
SKImageFilter.CropRect

The rectangle to which the output processing will be limited.

Returns

Returns the new SKImageFilter, or null on error.

Applies to