API Reference
Class
OfficeRasterImageFallbackCodec
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 System.String? = null
Methods
public Boolean TryDecode(Byte[] encodedBytes, String? contentType, out OfficeRasterImage? image) #Returns:
BooleanAttempts to decode encoded image bytes into an RGBA raster.
Parameters
- encodedBytes System.Byte[]
- contentType System.String?
- image OfficeIMO.Drawing.OfficeRasterImage?
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?