CodeGlyphX logo
CodeGlyphX

API Reference

Struct

JpegDecodeOptions

Namespace CodeGlyphX.Rendering.Jpeg
Assembly CodeGlyphX
Base ValueType
Modifiers sealed

JPEG decoding options.

Inheritance

  • ValueType
  • JpegDecodeOptions

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

Examples


var options = new JpegDecodeOptions(highQualityChroma: true, allowTruncated: true);
var rgba = JpegReader.DecodeRgba32(data, out var width, out var height, options);
        

Constructors

public JpegDecodeOptions(Boolean highQualityChroma = false, Boolean allowTruncated = false) #

Creates JPEG decode options.

Parameters

highQualityChroma System.Boolean = false optionalposition: 0
allowTruncated System.Boolean = false optionalposition: 1

Properties

public Boolean HighQualityChroma { get; } #

Enables higher-quality chroma upsampling when components are subsampled.

public Boolean AllowTruncated { get; } #

Allows truncated scan data (best-effort decode).