Function
Writes an image to a file in RGB format.
Syntax
#include <dx/dx.h>
Field DXOutputRGB(Field i, int fd)
Functional Details The routine writes image Field i to file descriptor fd as three bytes (red, green, and blue) per pixel.
The values of the floating-point "colors" component (ranging from 0.0 to 1.0) are converted into byte values from 0 to 255. Values below 0 and above 1 are changed to 0 and 255 respectively.
The image is written at the current byte offset in the file. lseek() should be called first to reposition the current read/write pointer to the desired location.
Return Value Returns i or returns NULL and sets an error code.
See Also
[Data Explorer Home Page | Contact Data Explorer | Same document on Data Explorer Home Page ]