Edit

SKImageFilter.CreateCrop Method

Definition

Overloads

Name Description
CreateCrop(SKRect, SKShaderTileMode, SKImageFilter)

Creates an image filter that restricts the output of input to the specified rectangle, using the supplied tile mode for pixels that fall outside it.

CreateCrop(SKRect, SKShaderTileMode)

Creates an image filter that restricts the source to the specified rectangle, using the supplied tile mode for pixels that fall outside it.

CreateCrop(SKRect)

Creates an image filter that restricts the source to the specified rectangle, treating pixels outside the rectangle as transparent.

CreateCrop(SKRect, SKShaderTileMode, SKImageFilter)

Creates an image filter that restricts the output of input to the specified rectangle, using the supplied tile mode for pixels that fall outside it.

public static SkiaSharp.SKImageFilter CreateCrop(SkiaSharp.SKRect rect, SkiaSharp.SKShaderTileMode tileMode, SkiaSharp.SKImageFilter? input);

Parameters

rect
SKRect

The crop rectangle, in the local coordinate space of the filter.

tileMode
SKShaderTileMode

The tile mode that determines how pixels outside rect are produced.

input
SKImageFilter

The input filter whose output is cropped, or null to crop the source bitmap.

Returns

Returns the new SKImageFilter, or null on error.

Applies to

CreateCrop(SKRect, SKShaderTileMode)

Creates an image filter that restricts the source to the specified rectangle, using the supplied tile mode for pixels that fall outside it.

public static SkiaSharp.SKImageFilter CreateCrop(SkiaSharp.SKRect rect, SkiaSharp.SKShaderTileMode tileMode);

Parameters

rect
SKRect

The crop rectangle, in the local coordinate space of the filter.

tileMode
SKShaderTileMode

The tile mode that determines how pixels outside rect are produced.

Returns

Returns the new SKImageFilter, or null on error.

Applies to

CreateCrop(SKRect)

Creates an image filter that restricts the source to the specified rectangle, treating pixels outside the rectangle as transparent.

public static SkiaSharp.SKImageFilter CreateCrop(SkiaSharp.SKRect rect);

Parameters

rect
SKRect

The crop rectangle, in the local coordinate space of the filter.

Returns

Returns the new SKImageFilter, or null on error.

Remarks

This overload is equivalent to calling CreateCrop(SKRect, SKShaderTileMode) with Decal.

Applies to