InpaintingOptions Class

Immutable options of ImageProcessingExtensions.Inpaint.

public sealed class InpaintingOptions

Constructors

NameDescription
InpaintingOptions()

InpaintingOptions()

InpaintingOptions.cs
public InpaintingOptions()

No documentation is available.

Properties

NameDescription
DefaultGets the default options: a radius of 5 pixels.
RadiusGets the radius, in pixels, of the neighborhood a pixel of the mask is filled from, from 1 to InpaintingOptions.MaxRadius. Defaults to 5. A larger radius gives smoother fills and costs time proportional to its square; a radius of about the half width of the strokes of the mask is usually enough.

Gets the default options: a radius of 5 pixels.

public static InpaintingOptions Default { get; }

Property value

InpaintingOptions

Gets the radius, in pixels, of the neighborhood a pixel of the mask is filled from, from 1 to InpaintingOptions.MaxRadius. Defaults to 5. A larger radius gives smoother fills and costs time proportional to its square; a radius of about the half width of the strokes of the mask is usually enough.

public int Radius { get; init; }

Property value

int

Exceptions

ArgumentOutOfRangeException
The value is not from 1 to InpaintingOptions.MaxRadius.

Constants

NameDescription
MaxRadiusThe largest radius.

MaxRadius

The largest radius.

public const int MaxRadius = 64