read_sunraster

[ XITE Reference Manual | XITE home ]

Name

read_sunraster - read sunraster file to BIFF image

Syntax

 #include <xite/sunraster.h>
 #include <xite/color.h>

 int read_sunraster( IMAGE* img, Color_tab tab,
    char* filename, int* depth );

Description

Read a sunraster-file into a BIFF-image (and colortab). filename is the name of a sunrasterfile, img will return a pointer to a new BIFF image and tab will return the colormap. tab may be NULL. depth will return the depth of the raster image.

Restriction

Accept only standard sun raster.

Return value

 0 - Ok
 1 - BIFF - error
 2 - Cannot open Sunrasterfile
 3 - Read error
 4 - Write error
 5 - Bad magic number (not a sunrasterfile)
 6 - Bad format (Not standard format)

Author

Otto Milvang