Table of Contents

Constructor ImageRedactionArea

Namespace
LMKit.Media.Image
Assembly
LM-Kit.NET.dll

ImageRedactionArea(int, IBounds)

Initializes a redaction area from a page index and a bounding box.

public ImageRedactionArea(int pageIndex, IBounds bounds)

Parameters

pageIndex int

Zero-based page index.

bounds IBounds

The region to redact, in top-left origin image pixels. Any IBounds is accepted, including a Rectangle, a layout TextElement, or a search match's bounds. The edges are normalized, so reversed edges are handled.

Exceptions

ArgumentOutOfRangeException

Thrown when pageIndex is negative.

ArgumentNullException

Thrown when bounds is null.

ArgumentException

Thrown when bounds has a non-positive width or height.

Share