# OfficeScanPerspectiveMap

Reversible projective mapping between original and corrected image pixel-edge coordinates.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeScanPerspectiveMap.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/Scanning/OfficeScanPerspectiveMap.cs#L36)

**Modifiers**

sealed

Reversible projective mapping between original and corrected image pixel-edge coordinates.

## Inheritance

- object
- OfficeScanPerspectiveMap

## Usage

Explore 1 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

- Property [OfficeScanPerspectiveResult.Mapping](/api/core/officeimo-drawing-officescanperspectiveresult/#property-mapping)

Filter members 

Show inherited

## Methods

`public OfficePoint MapProcessedToSource(OfficePoint point)` [#](#method-mapprocessedtosource-officeimo-drawing-officepoint)

[OfficeScanPerspectiveMap.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/Scanning/OfficeScanPerspectiveMap.cs#L36)

Maps corrected pixel-edge coordinates back to the original image.

Parameters

**point OfficeIMO.Drawing.OfficePoint required**

Returns

`OfficePoint`

`public OfficePoint MapSourceToProcessed(OfficePoint point)` [#](#method-mapsourcetoprocessed-officeimo-drawing-officepoint)

[OfficeScanPerspectiveMap.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/Scanning/OfficeScanPerspectiveMap.cs#L38)

Maps original pixel-edge coordinates into the corrected image. Points on a projective pole are rejected.

Parameters

**point OfficeIMO.Drawing.OfficePoint required**

Returns

`OfficePoint`

## 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 int SourceWidth { get; }` [#](#property-sourcewidth)

[OfficeScanPerspectiveMap.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/Scanning/OfficeScanPerspectiveMap.cs#L28)

Original image width in pixels.

`public int SourceHeight { get; }` [#](#property-sourceheight)

[OfficeScanPerspectiveMap.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/Scanning/OfficeScanPerspectiveMap.cs#L30)

Original image height in pixels.

`public int Width { get; }` [#](#property-width)

[OfficeScanPerspectiveMap.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/Scanning/OfficeScanPerspectiveMap.cs#L32)

Corrected image width in pixels.

`public int Height { get; }` [#](#property-height)

[OfficeScanPerspectiveMap.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/Scanning/OfficeScanPerspectiveMap.cs#L34)

Corrected image height in pixels.

<!-- PowerForge markdown artifact sha256:8E9EAC54FC3C34A94A0CF8EF20711F8D84D67E8656AC38444AF08B6723CAC39B -->
