ImageIO.writeRaw#

ImageIO.writeRaw(file=None, header=None, data=None, shape=None, dataType=None, byteOrder=None, arrayOrder=None, casting='unsafe')#

Writes raw data.

Parameters:
filestr or file-like, optional

File path or file handle.

headerstr or bytes, optional

File header.

dataarray-like, optional

Data to be written.

shapetuple, optional

Shape of the data.

dataTypedtype, optional

Data type.

byteOrderstr, optional

Byte order.

arrayOrderstr, optional

Array order.

castingstr, optional

Casting method. Default is “unsafe”.

Raises:
TypeError

If data type is incompatible.