Method SaveAsBmp
SaveAsBmp(string, bool)
Saves the image to a BMP file at the specified path.
public bool SaveAsBmp(string filePath, bool rle = false)
Parameters
filePathstringThe file path where to save the BMP image.
rleboolIf 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.