SKImage.ApplyImageFilter(SKImageFilter, SKRectI, SKRectI, SKRectI, SKPoint) Method

Definition

Applies a given image filter to this image, and return the filtered result.

public SkiaSharp.SKImage ApplyImageFilter (SkiaSharp.SKImageFilter filter, SkiaSharp.SKRectI subset, SkiaSharp.SKRectI clipBounds, out SkiaSharp.SKRectI outSubset, out SkiaSharp.SKPoint outOffset);

Parameters

filter
SKImageFilter

The filter to apply to the current image.

subset
SKRectI

The active portion of this image.

clipBounds
SKRectI

Constrains the device-space extent of the image to the given rectangle.

outSubset
SKRectI

The active portion of the resulting image

outOffset
SKPoint

The amount to translate the resulting image relative to the source when it is drawn.

Returns

Returns the resulting image after the filter is applied, or null if the image could not be created or would be transparent black (#00000000).

Applies to