# OfficeScanPerspectiveOptions

Four explicitly reviewed page corners for perspective correction, normalized to the source image edges.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeScanPerspectiveOptions.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/Scanning/OfficeScanPerspectiveOptions.cs#L6)

**Modifiers**

sealed

Four explicitly reviewed page corners for perspective correction, normalized to the source image edges.

## Inheritance

- object
- OfficeScanPerspectiveOptions

## 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.

### Returned or exposed by 1

- Method [OfficeScanPerspectiveOptions.Clone](/api/core/officeimo-drawing-officescanperspectiveoptions/#method-clone)

### Accepted by parameters 1

- Method [OfficeScanProcessor.CorrectPerspective](/api/core/officeimo-drawing-officescanprocessor/#method-correctperspective-officeimo-drawing-officerasterimage-officeimo-drawing-officescanperspectiveoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

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

[OfficeScanPerspectiveOptions.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/Scanning/OfficeScanPerspectiveOptions.cs#L6)

## Methods

`public OfficeScanPerspectiveOptions Clone()` [#](#method-clone)

[OfficeScanPerspectiveOptions.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/Scanning/OfficeScanPerspectiveOptions.cs#L18)

Creates an independent settings snapshot.

Returns

`OfficeScanPerspectiveOptions`

`public void Validate()` [#](#method-validate)

[OfficeScanPerspectiveOptions.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/Scanning/OfficeScanPerspectiveOptions.cs#L21)

Rejects crossed, concave, reversed, degenerate, or out-of-image corners and invalid budgets.

## 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 OfficePoint TopLeft { get; set; }` [#](#property-topleft)

[OfficeScanPerspectiveOptions.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/Scanning/OfficeScanPerspectiveOptions.cs#L6)

Top-left corner; both coordinates are from zero through one.

`public OfficePoint TopRight { get; set; }` [#](#property-topright)

[OfficeScanPerspectiveOptions.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/Scanning/OfficeScanPerspectiveOptions.cs#L8)

Top-right corner.

`public OfficePoint BottomRight { get; set; }` [#](#property-bottomright)

[OfficeScanPerspectiveOptions.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/Scanning/OfficeScanPerspectiveOptions.cs#L10)

Bottom-right corner.

`public OfficePoint BottomLeft { get; set; }` [#](#property-bottomleft)

[OfficeScanPerspectiveOptions.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/Scanning/OfficeScanPerspectiveOptions.cs#L12)

Bottom-left corner.

`public long MaximumPixels { get; set; }` [#](#property-maximumpixels)

[OfficeScanPerspectiveOptions.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/Scanning/OfficeScanPerspectiveOptions.cs#L14)

Maximum source and output pixels.

`public long MaximumWorkingBytes { get; set; }` [#](#property-maximumworkingbytes)

[OfficeScanPerspectiveOptions.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/Scanning/OfficeScanPerspectiveOptions.cs#L16)

Maximum accounted source and output pixel-buffer bytes.

<!-- PowerForge markdown artifact sha256:E44ED9491A5F9DF3B966ED8623494880A183067DB18A09789A07C84EA623197A -->
