API Reference
OfficeRasterImageDecoder
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
public static Boolean TryDecode(Byte[] bytes, out OfficeRasterImage image) #BooleanAttempts to decode image bytes into an RGBA raster buffer supported by dependency-free export.
Parameters
- bytes System.Byte[]
- image OfficeIMO.Drawing.OfficeRasterImage@
public static Boolean TryDecode(Stream stream, out OfficeRasterImage image) #BooleanAttempts to decode a bounded raster stream and leaves a seekable stream at its original position.
Parameters
- stream System.IO.Stream
- image OfficeIMO.Drawing.OfficeRasterImage@
public static Boolean TryDecode(Stream stream, OfficeRasterDecodeOptions options, out OfficeRasterImage image, out OfficeRasterDecodeInfo info) #BooleanAttempts to decode a bounded raster stream using explicit selection, loss, resource, and cancellation policy.
Parameters
- stream System.IO.Stream
- options OfficeIMO.Drawing.OfficeRasterDecodeOptions
- image OfficeIMO.Drawing.OfficeRasterImage@
- info OfficeIMO.Drawing.OfficeRasterDecodeInfo@
public static Boolean TryDecode(Byte[] bytes, OfficeRasterDecodeOptions options, out OfficeRasterImage image, out OfficeRasterDecodeInfo info) #BooleanAttempts to decode image bytes using explicit frame and animation-loss policy.
Parameters
- bytes System.Byte[]
- options OfficeIMO.Drawing.OfficeRasterDecodeOptions
- image OfficeIMO.Drawing.OfficeRasterImage@
- info OfficeIMO.Drawing.OfficeRasterDecodeInfo@
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Fields
public const String SupportedFormatDescription #Human-readable summary of raster formats currently decoded by the managed renderer.
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