You are here: Start » AVL.NET » Function Reference » Image » Image IO » AVL.SaveImageToBuffer

AVL.SaveImageToBuffer

Saves an image to a file stored in ByteBuffer.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void SaveImageToBuffer
(
	AvlNet.Image inImage,
	AvlNet.ImageFileFormat inImageFileFormat,
	AvlNet.ByteBuffer outBuffer
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageAn image to be saved.
inImageFileFormatAvlNet.ImageFileFormatImage file format.
outBufferAvlNet.ByteBufferBuffer containing image file data.

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 ImageConversions category.

See also