GraphicsFormats package for Buoy

RawBmpExporter.SaveToBytes Method

Saves a bitmap to BMP formatted Bytes buffer.

SaveToBytes(
   image as RawBitmap) as Bytes

Parameters

image
The bitmap to be saved into BMP bytes buffer. This must be RGB or gray color space.

Returns

Bytes
BMP formatted Bytes buffer or nilf there was error.

Remarks

This method can throw GraphicsFormatsException.

See Also

RawBmpExporter Class