Class
OfficePngReader
OfficeIMO.Drawing
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[]
- image OfficeIMO.Drawing.OfficeRasterImage?
Returns
boolpublic 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[]?
- frameCount int
Returns
bool