Table of Contents

Method SaveAsBmpBytes

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

SaveAsBmpBytes(bool)

Saves the image as BMP to a byte array without writing to disk.

public byte[] SaveAsBmpBytes(bool rle = false)

Parameters

rle bool

If true, uses RLE compression; otherwise writes uncompressed.

Returns

byte[]

A byte array containing the BMP-encoded image data.

Exceptions

ObjectDisposedException

Thrown if this instance has been disposed.

InvalidOperationException

Thrown if encoding fails.

Share