Horus Doc ||
Global Function Guide ||
General documentation |
Function documentation
HxWriteFile
Synopsis
bool HxWriteFile (HxImageRep img, HxString fileName)
Input
HxImageRep img
- The image you want to save.
Return value
bool
- The function HxWriteFile returns true if the image was succesfully written to file, otherwise it returns false.
Description
The function HxWriteFile writes an image to file. The file extension you use in the filename determines the image format of the file. The supported file formats are: tif, jpg, ppm . The format of the filename itself, accepts slashes as well as backslashes.
Remarks
- Valid file formats
- Allthough the different standards for image file formats allow for instance doubles as pixel types, a number of paint programs only accept integer or byte types for the pixel values. When a program fails to load the image you wrote to file with the Horus library, try converting it to byte values first.
See also
HxMakeFromFile, anchor_HxImagesToFile,
Keywords
File I/O, Export,
Generated on Tue Feb 3 14:20:28 2004 for GlobalFunctionGuide by
1.2.12 written by Dimitri van Heesch,
© 1997-2001