Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Enum

OfficeImageOptimizationMode

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Base Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers sealed

Selects whether image optimization reduces pixels, JPEG encoding quality, or both.

Inheritance

  • Enum
  • OfficeImageOptimizationMode

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Values

public const OfficeImageOptimizationMode Downsample #

Only re-encodes an image when dimensions or another explicit output policy change.

Value: 0
public const OfficeImageOptimizationMode Recompress #

Retains pixel dimensions and permits JPEG re-encoding at the requested quality.

Value: 1
public const OfficeImageOptimizationMode DownsampleAndRecompress #

Reduces excessive pixel dimensions and permits JPEG re-encoding even without resizing.

Value: 2