Table of Contents

Method SaveAsBmp

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

SaveAsBmp(string, bool)

Saves the image to a BMP file at the specified path.

public bool SaveAsBmp(string filePath, bool rle = false)

Parameters

filePath string

The file path where to save the BMP image.

rle bool

If true, uses RLE8 compression for 8-bit grayscale images. Has no effect for RGB24 or RGBA32 images (BMP RLE only supports 8-bpp). Default is false (uncompressed).

Returns

bool

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

Exceptions

ObjectDisposedException

Thrown if this instance has been disposed.

Share