Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeJpegEncodeOptions

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Modifiers
sealed

JPEG encoding options.

Inheritance

  • object
  • OfficeJpegEncodeOptions

Usage

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

Accepted by parameters 2

Constructors

public OfficeJpegEncodeOptions() #

Properties

public int Quality { get; set; } #

JPEG quality (1..100).

public OfficeJpegSubsampling Subsampling { get; set; } #

Chroma subsampling mode.

public bool Progressive { get; set; } #

Enables progressive JPEG encoding.

public bool OptimizeHuffman { get; set; } #

Enables lossless statistical Huffman optimization. Disable to use the standard tables and lower coefficient memory.

public OfficeJpegMetadata Metadata { get; set; } #

Optional metadata segments (EXIF/XMP/ICC).

public bool WriteJfifHeader { get; set; } #

Writes a JFIF APP0 header when true.

public OfficeColor Background { get; set; } #

Background used when flattening transparent RGBA pixels into JPEG.

public double DpiX { get; set; } #

Horizontal resolution written to the JFIF header.

public double DpiY { get; set; } #

Vertical resolution written to the JFIF header.