Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeJpegEncodeOptions

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers sealed

JPEG encoding options.

Inheritance

  • Object
  • OfficeJpegEncodeOptions

Usage

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

Returned or exposed by

Accepted by parameters

Constructors

Properties

public Int32 Quality { get; set; } #

JPEG quality (1..100).

public OfficeJpegSubsampling Subsampling { get; set; } #

Chroma subsampling mode.

public Boolean Progressive { get; set; } #

Enables progressive JPEG encoding.

public Boolean OptimizeHuffman { get; set; } #

Enables optimized Huffman tables.

public OfficeJpegMetadata Metadata { get; set; } #

Optional metadata segments (EXIF/XMP/ICC).

public Boolean 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.