SaveImageToBuffer


Saves an image to a file stored in ByteBuffer.

Applications:Use this filter if you want to send image file through I/O communication, e.g. through a TcpIp connection.

Syntax

C++
Python
 
def SaveImageToBuffer(
	inImage: Image,
	outBuffer: ByteBuffer,
	/,
	*,
	inImageFileFormat: ImageFileFormat = ImageFileFormat.BMP
)
-> None

Parameters

Name Type Default Description
Input value inImage Image An image to be saved
Input value inImageFileFormat ImageFileFormat ImageFileFormat.BMP Image file format
Output value outBuffer ByteBuffer Buffer containing image file data