Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeRasterImageFallbackCodec

OfficeIMO.Drawing

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

Reusable final codec in a raster pipeline: it delegates formats not handled by Drawing to an optional codec, then emits a visible placeholder and diagnostic instead of silently dropping content.

Inheritance

  • object
  • OfficeRasterImageFallbackCodec

Constructors

public OfficeRasterImageFallbackCodec(IOfficeRasterImageCodec? innerCodec = null, ICollection<OfficeImageExportDiagnostic>? diagnostics = null, string? source = null) #

Creates a fallback around an optional application-supplied decoder.

Parameters

innerCodec OfficeIMO.Drawing.IOfficeRasterImageCodec? = null optional
diagnostics System.Collections.Generic.ICollection<OfficeIMO.Drawing.OfficeImageExportDiagnostic>? = null optional
source string? = null optional

Methods

public bool TryDecode(byte[] encodedBytes, string? contentType, out OfficeRasterImage? image) #

Attempts to decode encoded image bytes into an RGBA raster.

Parameters

encodedBytes byte[] required
contentType string? required
image OfficeIMO.Drawing.OfficeRasterImage? required

Returns

bool