Bearbeiten

Freigeben über


SKImageFilter.CreateDisplacementMapEffect Method

Definition

Overloads

CreateDisplacementMapEffect(SKColorChannel, SKColorChannel, Single, SKImageFilter, SKImageFilter, SKImageFilter+CropRect)
CreateDisplacementMapEffect(SKDisplacementMapEffectChannelSelectorType, SKDisplacementMapEffectChannelSelectorType, Single, SKImageFilter, SKImageFilter, SKImageFilter+CropRect)
Obsolete.

Creates an image filter that applies a displacement map.

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

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

Applies to