Image.toBlob

Creates a Binary Large OBject, a direct-to-memory version of the image.

if an image format is selected which is capable of supporting fewer colors than the original image or quantization has been requested, the original image will be quantized to fewer colors. Use a copy of the original if this is a problem.

class Image
void[]
toBlob
(
string magick = null
,
size_t depth = 0
)

Parameters

magick string

specifies the image format to write.

depth size_t

specifies the image depth.

Meta