Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Struct

OfficeJpegDecodeOptions

OfficeIMO.Drawing

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

JPEG decoding options.

Inheritance

  • ValueType
  • OfficeJpegDecodeOptions

Usage

Explore 2 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.

Accepted by parameters 2

Examples

var options = new OfficeJpegDecodeOptions(highQualityChroma: true, allowTruncated: true);
OfficeRasterImage image = OfficeJpegCodec.Decode(data, options);

Constructors

OfficeJpegDecodeOptions 2 overloads
public OfficeJpegDecodeOptions(bool highQualityChroma = false, bool allowTruncated = false) #

Creates JPEG decode options.

Parameters

highQualityChroma bool = false optional
allowTruncated bool = false optional
public OfficeJpegDecodeOptions(bool highQualityChroma, bool allowTruncated, bool ignoreExifOrientation) #

Creates JPEG decode options with an explicit EXIF orientation policy.

Parameters

highQualityChroma bool required
allowTruncated bool required
ignoreExifOrientation bool required

Properties

public bool HighQualityChroma { get; } #

Enables higher-quality chroma upsampling when components are subsampled.

public bool AllowTruncated { get; } #

Allows truncated DCT-based scan data (best-effort decode). Lossless scans require complete entropy data.

public bool IgnoreExifOrientation { get; } #

Returns stored sample order without applying the JPEG's optional EXIF display orientation.