Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeRasterImageDecoder

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers static

Shared dependency-free decoder for raster image bytes that can be painted by OfficeRasterCanvas.

Inheritance

  • Object
  • OfficeRasterImageDecoder

Remarks

Decoding produces channel values, not a color-managed sRGB conversion. Embedded ICC profiles and PNG gamma/chromaticity metadata are validated as container metadata but are not applied to pixels. Normalize color-managed source images before decoding when matching a managed display or print pipeline is required.

Methods

TryDecode 4 overloads
public static Boolean TryDecode(Byte[] bytes, out OfficeRasterImage image) #
Returns: Boolean

Attempts to decode image bytes into an RGBA raster buffer supported by dependency-free export.

Parameters

bytes System.Byte[] requiredposition: 0
image OfficeIMO.Drawing.OfficeRasterImage@ requiredposition: 1
public static Boolean TryDecode(Stream stream, out OfficeRasterImage image) #
Returns: Boolean

Attempts to decode a bounded raster stream and leaves a seekable stream at its original position.

Parameters

stream System.IO.Stream requiredposition: 0
image OfficeIMO.Drawing.OfficeRasterImage@ requiredposition: 1
public static Boolean TryDecode(Stream stream, OfficeRasterDecodeOptions options, out OfficeRasterImage image, out OfficeRasterDecodeInfo info) #
Returns: Boolean

Attempts to decode a bounded raster stream using explicit selection, loss, resource, and cancellation policy.

Parameters

stream System.IO.Stream requiredposition: 0
options OfficeIMO.Drawing.OfficeRasterDecodeOptions requiredposition: 1
image OfficeIMO.Drawing.OfficeRasterImage@ requiredposition: 2
info OfficeIMO.Drawing.OfficeRasterDecodeInfo@ requiredposition: 3
public static Boolean TryDecode(Byte[] bytes, OfficeRasterDecodeOptions options, out OfficeRasterImage image, out OfficeRasterDecodeInfo info) #
Returns: Boolean

Attempts to decode image bytes using explicit frame and animation-loss policy.

Parameters

bytes System.Byte[] requiredposition: 0
options OfficeIMO.Drawing.OfficeRasterDecodeOptions requiredposition: 1
image OfficeIMO.Drawing.OfficeRasterImage@ requiredposition: 2
info OfficeIMO.Drawing.OfficeRasterDecodeInfo@ requiredposition: 3

Fields

public const String SupportedFormatDescription #

Human-readable summary of raster formats currently decoded by the managed renderer.

Value: PNG and APNG frames, JPEG, bounded classic TIFF pages, uncompressed BMP, explicitly selected GIF frames, lossless VP8L WebP, and lossy VP8 WebP image bytes with optional raw or compressed alpha