Method SaveAsBmpBytes
SaveAsBmpBytes(bool)
Saves the image as BMP to a byte array without writing to disk.
public byte[] SaveAsBmpBytes(bool rle = false)
Parameters
rleboolIf 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.