Table of Contents

Class ImageRedactionOptions

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

Controls how ImageRedactor covers content. The defaults paint an opaque black box over each redacted area and strip every metadata block before re-encoding.

public sealed class ImageRedactionOptions
Inheritance
ImageRedactionOptions
Inherited Members

Examples

using LMKit.Media.Image;
using LMKit.Graphics.Primitives;

var options = new ImageRedactionOptions
{
    FillColor = Color32.FromRgb(0x333333),
    JpegQuality = 95
};

Properties

FillColor

Gets or sets the fill box color. The color is always painted fully opaque: any alpha carried by the value is replaced with 255 at paint time, because a translucent cover would leave the underlying pixels readable and is therefore not a redaction. Default: opaque black.

JpegQuality

Gets or sets the quality used when the redacted image is re-encoded as JPEG (0 to 100). Only applies to JPEG sources. Default: 90.

StripMetadata

Gets or sets whether every metadata block carried by the image (EXIF, XMP, textual entries) is cleared before the redacted pixels are encoded. Metadata routinely duplicates content being redacted, for example capture locations, author names, or embedded thumbnails of the unredacted picture. Default: true.

WebpQuality

Gets or sets the quality used when the redacted image is re-encoded as WebP (0 to 100). Only applies to WebP sources. Default: 80.

Share