Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeImageResolution

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers sealed

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

Inheritance

  • Object
  • OfficeImageResolution

Usage

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 System.Double requiredposition: 0
vertical System.Double requiredposition: 1
unit OfficeIMO.Drawing.OfficeImageResolutionUnit = PixelsPerInch optionalposition: 2

Properties

public Double Horizontal { get; } #

Horizontal resolution in Unit.

public Double Vertical { get; } #

Vertical resolution in Unit.

public OfficeImageResolutionUnit Unit { get; } #

The native physical unit, or unitless aspect ratio.

public Nullable<Double> PhysicalDpiX { get; } #

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

public Nullable<Double> PhysicalDpiY { get; } #

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