API Reference
Struct
OfficeJpegDecodeOptions
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
- Method OfficeJpegCodec.Decode
- Method OfficeJpegCodec.TryDecode
Examples
var options = new OfficeJpegDecodeOptions(highQualityChroma: true, allowTruncated: true);
OfficeRasterImage image = OfficeJpegCodec.Decode(data, options);
Constructors
OfficeJpegDecodeOptions 2 overloads
public OfficeJpegDecodeOptions(Boolean highQualityChroma = false, Boolean allowTruncated = false) #Creates JPEG decode options.
Parameters
- highQualityChroma System.Boolean = false
- allowTruncated System.Boolean = false
public OfficeJpegDecodeOptions(Boolean highQualityChroma, Boolean allowTruncated, Boolean ignoreExifOrientation) #Creates JPEG decode options with an explicit EXIF orientation policy.
Parameters
- highQualityChroma System.Boolean
- allowTruncated System.Boolean
- ignoreExifOrientation System.Boolean
Inherited Methods
public override Boolean Equals(Object? obj) #Returns:
BooleanInherited from ValueType
Parameters
- obj Object?
Properties
public Boolean HighQualityChroma { get; } #Enables higher-quality chroma upsampling when components are subsampled.
public Boolean AllowTruncated { get; } #Allows truncated DCT-based scan data (best-effort decode). Lossless scans require complete entropy data.
public Boolean IgnoreExifOrientation { get; } #Returns stored sample order without applying the JPEG's optional EXIF display orientation.