# OfficeImageResolution

Immutable native image resolution values and their physical unit or aspect-ratio unit.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`15caddadea70` with working tree changes

**Source**

[OfficeImageResolution.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeImageResolution.cs#L6)

**Modifiers**

sealed

Immutable native image resolution values and their physical unit or aspect-ratio unit.

## Inheritance

- object
- OfficeImageResolution

## Usage

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

- Property [OfficeImageMetadata.Resolution](/api/core/officeimo-drawing-officeimagemetadata/#property-resolution)
- Property [OfficeImageResolutionEvidence.Resolution](/api/core/officeimo-drawing-officeimageresolutionevidence/#property-resolution)
- Property [OfficeRasterEncodingOptions.Resolution](/api/core/officeimo-drawing-officerasterencodingoptions/#property-resolution)
- Property [OfficeTiffEncodeOptions.Resolution](/api/core/officeimo-drawing-officetiffencodeoptions/#property-resolution)

Filter members 

Show inherited

## Constructors

`public OfficeImageResolution(double horizontal, double vertical, OfficeImageResolutionUnit unit = PixelsPerInch)` [#](#constructor-ctor-double-double-officeimo-drawing-officeimageresolutionunit)

[OfficeImageResolution.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeImageResolution.cs#L6)

Creates a resolution using finite, positive values and a defined unit.

Parameters

**horizontal double required**

**vertical double required**

**unit OfficeIMO.Drawing.OfficeImageResolutionUnit = PixelsPerInch optional**

## 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 double Horizontal { get; }` [#](#property-horizontal)

[OfficeImageResolution.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeImageResolution.cs#L15)

Horizontal resolution in [OfficeImageResolution.Unit](/api/core/officeimo-drawing-officeimageresolution/).

`public double Vertical { get; }` [#](#property-vertical)

[OfficeImageResolution.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeImageResolution.cs#L17)

Vertical resolution in [OfficeImageResolution.Unit](/api/core/officeimo-drawing-officeimageresolution/).

`public OfficeImageResolutionUnit Unit { get; }` [#](#property-unit)

[OfficeImageResolution.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeImageResolution.cs#L19)

The native physical unit, or unitless aspect ratio.

`public double? PhysicalDpiX { get; }` [#](#property-physicaldpix)

[OfficeImageResolution.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeImageResolution.cs#L21)

Horizontal physical DPI, or null for a unitless aspect ratio.

`public double? PhysicalDpiY { get; }` [#](#property-physicaldpiy)

[OfficeImageResolution.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Raster/OfficeImageResolution.cs#L23)

Vertical physical DPI, or null for a unitless aspect ratio.

<!-- PowerForge markdown artifact sha256:3C4CB54602DD9444895321357A31AB0EC9EC1FC08B6BE19BB1B259F0769390FD -->
