# OfficeRasterContentSafetyOptions

Bounds OCR-backed concealment inspection and optional raster-region redaction.

Class 

`OfficeIMO.Workflows`

**Namespace**

`OfficeIMO.Workflows`

**Assembly**

`OfficeIMO.Workflows`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeRasterContentSafetyOptions.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeRasterContentSafetyOptions.cs#L11)

**Modifiers**

sealed

Bounds OCR-backed concealment inspection and optional raster-region redaction.

## Inheritance

- object
- OfficeRasterContentSafetyOptions

## Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Accepted by parameters 2

- Method [OfficeRasterContentSafety.InspectAsync](/api/workflows/officeimo-workflows-officerastercontentsafety/#method-inspectasync-byte-officeimo-ocr-iocrengine-officeimo-workflows-officerastercontentsafetyoptions-threading-cancellationtoken) parameter `options`
- Method [OfficeRasterContentSafety.RedactSelectedContentAsync](/api/workflows/officeimo-workflows-officerastercontentsafety/#method-redactselectedcontentasync-byte-officeimo-ocr-iocrengine-officeimo-contentsafety-officecontentcleanupselection-officeimo-workflows-officerastercontentsafetyoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

`public OfficeRasterContentSafetyOptions()` [#](#constructor-ctor)

[OfficeRasterContentSafetyOptions.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeRasterContentSafetyOptions.cs#L11)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public OfficeContentSafetyOptions Inspection { get; set; }` [#](#property-inspection)

[OfficeRasterContentSafetyOptions.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeRasterContentSafetyOptions.cs#L11)

Shared content-safety thresholds and finding limits.

`public long MaximumDecodedPixels { get; set; }` [#](#property-maximumdecodedpixels)

[OfficeRasterContentSafetyOptions.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeRasterContentSafetyOptions.cs#L14)

Maximum decoded pixels retained for one static image. Defaults to 16 million.

`public int MaximumOcrSpans { get; set; }` [#](#property-maximumocrspans)

[OfficeRasterContentSafetyOptions.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeRasterContentSafetyOptions.cs#L17)

Maximum OCR spans accepted from the provider. Defaults to 4,096.

`public long MaximumPixelAnalysisWork { get; set; }` [#](#property-maximumpixelanalysiswork)

[OfficeRasterContentSafetyOptions.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeRasterContentSafetyOptions.cs#L23)

Maximum cumulative region-pixel work accepted during inspection or selected-region redaction. Defaults to 64 million.

`public long MaximumRegionComparisons { get; set; }` [#](#property-maximumregioncomparisons)

[OfficeRasterContentSafetyOptions.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeRasterContentSafetyOptions.cs#L29)

Maximum cumulative OCR-region intersection comparisons during selected-region redaction. Defaults to one million.

`public int MaximumTinyTextHeightPixels { get; set; }` [#](#property-maximumtinytextheightpixels)

[OfficeRasterContentSafetyOptions.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeRasterContentSafetyOptions.cs#L32)

Pixel height at or below which a recognized span is treated as tiny. Defaults to three pixels.

`public byte MaximumConcealedAlpha { get; set; }` [#](#property-maximumconcealedalpha)

[OfficeRasterContentSafetyOptions.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeRasterContentSafetyOptions.cs#L38)

Maximum alpha channel value that proves an entire OCR region is nearly transparent. Defaults to 16 out of 255.

`public TimeSpan OcrTimeout { get; set; }` [#](#property-ocrtimeout)

[OfficeRasterContentSafetyOptions.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeRasterContentSafetyOptions.cs#L41)

Total timeout for one OCR provider call. Defaults to 30 seconds.

`public bool EnableOpaqueRectangleRedaction { get; set; }` [#](#property-enableopaquerectangleredaction)

[OfficeRasterContentSafetyOptions.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeRasterContentSafetyOptions.cs#L47)

Enables explicit opaque-rectangle redaction for findings with bounded geometry and sufficient confidence. Disabled by default; disabled findings remain report-only.

`public double MinimumOcrConfidenceForRedaction { get; set; }` [#](#property-minimumocrconfidenceforredaction)

[OfficeRasterContentSafetyOptions.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeRasterContentSafetyOptions.cs#L50)

Minimum provider confidence required before a region can be redacted. Defaults to 0.8.

`public int RedactionPaddingPixels { get; set; }` [#](#property-redactionpaddingpixels)

[OfficeRasterContentSafetyOptions.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeRasterContentSafetyOptions.cs#L53)

Pixels added around each selected OCR region during redaction. Defaults to one.

`public OfficeColor RedactionColor { get; set; }` [#](#property-redactioncolor)

[OfficeRasterContentSafetyOptions.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeRasterContentSafetyOptions.cs#L56)

Opaque color written over selected OCR regions. Defaults to black.

`public long MaximumOutputBytes { get; set; }` [#](#property-maximumoutputbytes)

[OfficeRasterContentSafetyOptions.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeRasterContentSafetyOptions.cs#L59)

Maximum normalized PNG bytes produced for OCR or redaction output. Defaults to 128 MiB.

<!-- PowerForge markdown artifact sha256:573A1912ED2475F013A177F047F346CE31B2C17479D965377D6E3305ACEED3DE -->
