Table of Contents

Method SaveAsPnm

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

SaveAsPnm(string)

Saves the image in PNM format to the specified file path. GRAY8 is saved as PGM (P5), RGB24 as PPM (P6), RGBA32 as PAM (P7).

public bool SaveAsPnm(string filePath)

Parameters

filePath string

The file path to save the image to.

Returns

bool

True if the image was saved successfully; otherwise, false.

Exceptions

ObjectDisposedException

Thrown if this instance has been disposed.

Share