Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficePngReader

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers static

Dependency-free PNG decoder for supported PNG images.

Inheritance

  • Object
  • OfficePngReader

Methods

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

Attempts to decode a PNG image into an RGBA raster buffer.

Parameters

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

Inspects a PNG container without decoding pixels and reports its declared APNG frame count. Static PNG files report one frame.

Parameters

bytes System.Byte[] requiredposition: 0
frameCount System.Int32@ requiredposition: 1