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

AVL.SaveImageToTiff Method

Saves an image to a TIFF file.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

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, or null.
inJpegQualityint?<0, 100>Quality - used only for JPEG compression scheme. Default value: atl::NIL, or null.
inIgnoreErrorsboolSwitches to re-trying and canceling in case of errors (e.g. when the disk is full).

Errors

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

See also