Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeGifReader

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers static

Dependency-free GIF decoder with explicit composited-frame selection.

Inheritance

  • Object
  • OfficeGifReader

Methods

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

Attempts to decode the first GIF image frame into an RGBA raster buffer.

Parameters

bytes System.Byte[] requiredposition: 0
image OfficeIMO.Drawing.OfficeRasterImage@ requiredposition: 1
public static Boolean TryDecodeFrame(Byte[] bytes, Int32 frameIndex, out OfficeRasterImage image, out Int32 frameCount) #
Returns: Boolean

Attempts to decode one zero-based composited GIF frame and reports the total frame count.

Parameters

bytes System.Byte[] requiredposition: 0
frameIndex System.Int32 requiredposition: 1
image OfficeIMO.Drawing.OfficeRasterImage@ requiredposition: 2
frameCount System.Int32@ requiredposition: 3