write_sunraster
[ XITE Reference Manual | XITE home ]
Name
write_sunraster - write BIFF-image to sun_rasterfile
Syntax
#include <xite/sunraster.h>
#include <xite/color.h>
int write_sunraster( IMAGE img, Color_tab tab,
int len, char* filename, int depth,
int threshold );
Description
Write a BIFF-image (and a colortable) to a sun_rasterfile.
filename is the name of a sunrasterfile, img is
a BIFF image and tab the colortable.
If tab == NULL, no colormap is written.
depth is the depth of the raster image.
Restriction
Accepts only one-band unsigned byte images.
Depth must be 1 (binary image) or 8 (pseudocolor).
Return value
0 - Ok
1 - Error in handling BIFF-file
2 - Cannot open Sunrasterfile
3 - Write error on Sunrasterfile
4 - BIFF file must have 1 band
5 - Illegal BIFF pixeltype
6 - Memory allocation error
Author
Otto Milvang
Id
$Id: biff2sunraster.c,v 1.35 1997/01/09 16:46:17 svein Exp $