Class
OfficeRasterImageFallbackCodec
OfficeIMO.Drawing
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
- diagnostics System.Collections.Generic.ICollection<OfficeIMO.Drawing.OfficeImageExportDiagnostic>? = null
- source string? = null
Methods
public bool TryDecode(byte[] encodedBytes, string? contentType, out OfficeRasterImage? image) #Attempts to decode encoded image bytes into an RGBA raster.
Parameters
- encodedBytes byte[]
- contentType string?
- image OfficeIMO.Drawing.OfficeRasterImage?
Returns
bool