Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeImageResolution

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
1f76172c94d1 with working tree changes
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.

Constructors

public OfficeImageResolution(double horizontal, double vertical, OfficeImageResolutionUnit unit = PixelsPerInch) #

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

Parameters

horizontal double required
vertical double required
unit OfficeIMO.Drawing.OfficeImageResolutionUnit = PixelsPerInch optional

Properties

public double Horizontal { get; } #

Horizontal resolution in OfficeImageResolution.Unit.

public double Vertical { get; } #

Vertical resolution in OfficeImageResolution.Unit.

public OfficeImageResolutionUnit Unit { get; } #

The native physical unit, or unitless aspect ratio.

public double? PhysicalDpiX { get; } #

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

public double? PhysicalDpiY { get; } #

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