SKImageFilter.CreateDisplacementMapEffect Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateDisplacementMapEffect(SKColorChannel, SKColorChannel, Single, SKImageFilter, SKImageFilter, SKImageFilter+CropRect)
public static SkiaSharp.SKImageFilter CreateDisplacementMapEffect (SkiaSharp.SKColorChannel xChannelSelector, SkiaSharp.SKColorChannel yChannelSelector, float scale, SkiaSharp.SKImageFilter displacement, SkiaSharp.SKImageFilter input = default, SkiaSharp.SKImageFilter.CropRect cropRect = default);
Parameters
- xChannelSelector
- SKColorChannel
- yChannelSelector
- SKColorChannel
- scale
- Single
- displacement
- SKImageFilter
- input
- SKImageFilter
- cropRect
- SKImageFilter.CropRect
Returns
Applies to
CreateDisplacementMapEffect(SKDisplacementMapEffectChannelSelectorType, SKDisplacementMapEffectChannelSelectorType, Single, SKImageFilter, SKImageFilter, SKImageFilter+CropRect)
Caution
Use CreateDisplacementMapEffect(SKColorChannel, SKColorChannel, float, SKImageFilter, SKImageFilter, SKImageFilter.CropRect) instead.
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 = default, SkiaSharp.SKImageFilter.CropRect cropRect = default);
[System.Obsolete("Use CreateDisplacementMapEffect(SKColorChannel, SKColorChannel, float, SKImageFilter, SKImageFilter, SKImageFilter.CropRect) instead.")]
public static SkiaSharp.SKImageFilter CreateDisplacementMapEffect (SkiaSharp.SKDisplacementMapEffectChannelSelectorType xChannelSelector, SkiaSharp.SKDisplacementMapEffectChannelSelectorType yChannelSelector, float scale, SkiaSharp.SKImageFilter displacement, SkiaSharp.SKImageFilter input = default, SkiaSharp.SKImageFilter.CropRect cropRect = default);
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.
- Attributes