Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Image IO » SaveImageToBuffer

SaveImageToBuffer


Saves an image to a file stored in ByteBuffer.

Name Type Description
inImage Image An image to be saved
inImageFileFormat ImageFileFormat Image file format
outBuffer ByteBuffer Buffer containing image file data

Applications

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

Description

This function saves an Image to a common format file similarly to SaveImage, but instead of accessing the file system it stores the file in the memory by writing its content to ByteBuffer.

The operation saves an image to file encoded in one of the standard image file formats. Currently the filter supports the following formats:

  • BMP (*.bmp)
  • JPEG (*.jpg, *jpeg)
  • PNG (*.png),
  • TIFF (*.tif, *.tiff).

Because of the limitations of the standard image formats, the filter is capable of saving three-channel images of UInt8 pixel type for all formats, and UInt16 for supported formats only (PNG, TIFF). To alter the format of an image one can use the filters contained in the Image Conversions category.

Complexity Level

This filter is available on Advanced Complexity Level.

See Also