Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficePngReader

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Modifiers
static

Dependency-free PNG decoder for supported PNG images.

Inheritance

  • object
  • OfficePngReader

Methods

public static bool TryDecode(byte[] bytes, out OfficeRasterImage? image) #

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

Parameters

bytes byte[] required
image OfficeIMO.Drawing.OfficeRasterImage? required

Returns

bool
public static bool TryGetFrameCount(byte[]? bytes, out int frameCount) #

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

Parameters

bytes byte[]? required
frameCount int required

Returns

bool