int Write_GevImage_ToTIFF

(char *filename, uint32_t width, uint32_t height, int pixel_format, void *imageData);

Description

Writes the input image to the specified TIFF file.

Parameters

*filename

Name of file to write

width

Width, in pixels, of image to write.

height

Height, in pixels, Pointer to memory to hold height of TIFF file image to read

pixel_format

Image data pixel format

*imageData

Pointer to memory to hold output TIFF image

Return Value

int

When successful, returns the number of bytes written to the file.

Possible error values include:

GEVLIB_ERROR_NULL_PTR: Data pointer is NULL.
GEVLIB_ERROR_INVALID_PIXEL_FORMAT: The specified pixel format is not supported.

Related Topics

Appendix B: Helper Functions