Table of Contents

Method SaveAsPnmBytes

Namespace
LMKit.Media.Image
Assembly
LM-Kit.NET.dll

SaveAsPnmBytes()

Saves the image as PNM to a byte array without writing to disk. GRAY8 is saved as PGM (P5), RGB24 as PPM (P6), RGBA32 as PAM (P7).

public byte[] SaveAsPnmBytes()

Returns

byte[]

A byte array containing the PNM-encoded image data.

Exceptions

ObjectDisposedException

Thrown if this instance has been disposed.

InvalidOperationException

Thrown if encoding fails.

Share