You are here: Start » AVL.NET » AVL.SaveImageToTiff

AVL.SaveImageToTiff

Saves an image to a TIFF file.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void SaveImageToTiff
(
	AvlNet.Image inImage,
	string inFile,
	AvlNet.TiffImageCompressionScheme? inCompressionScheme,
	int? inJpegQuality,
	bool inIgnoreErrors
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageAn image to be saved.
inFilestringPath to a file.
inCompressionSchemeAvlNet.TiffImageCompressionScheme?Compression scheme. Default value: atl::NIL.
inJpegQualityint?<0, 100>Quality - used only for JPEG compression scheme. Default value: atl::NIL.
inIgnoreErrorsboolSwitches to re-trying and canceling in case of errors (e.g. when the disk is full).

Errors

List of possible exceptions:

Error type Description
DomainError Compression is not supported for 32-bit pixel type.
DomainError inJpegQuality set in SaveImageToTiff is valid only with inCompressionScheme set as JPEG.
DomainError Path name cannot be empty in SaveImageToTiff.

Function Overrides

See also