Enum ImageRedactionShape
The outline of an ImageRedactionArea: which pixels of its bounds are covered.
public enum ImageRedactionShape
Fields
Rectangle = 0The whole bounds, every pixel the rectangle touches. The default.
Ellipse = 1The ellipse inscribed in the bounds: the corners of the bounds stay untouched.
Examples
using LMKit.Media.Image;
using LMKit.Graphics.Geometry;
// Cover a face with the ellipse inscribed in its box, blurred.
var area = new ImageRedactionArea(
pageIndex: 0,
Rectangle.FromSize(left: 140, top: 60, width: 120, height: 160),
ImageRedactionShape.Ellipse,
ImageRedactionCover.Blur);
Remarks
A pixel belongs to the area when its centre lies inside the shape. The edge is hard (no anti-aliasing), because a partial blend with the cover would keep part of the original pixel.