InpaintingOptions Class
Immutable options of ImageProcessingExtensions.Inpaint.
public sealed class InpaintingOptionsConstructors
| Name | Description |
|---|---|
| InpaintingOptions() |
InpaintingOptions()
InpaintingOptions.cspublic InpaintingOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Default | Gets the default options: a radius of 5 pixels. |
| Radius | 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. |
Default
InpaintingOptions.csGets the default options: a radius of 5 pixels.
public static InpaintingOptions Default { get; }Property value
Radius
InpaintingOptions.csGets 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
Exceptions
ArgumentOutOfRangeException- The value is not from 1 to
InpaintingOptions.MaxRadius.
Constants
| Name | Description |
|---|---|
| MaxRadius | The largest radius. |
MaxRadius
The largest radius.
public const int MaxRadius = 64