[alt.graphics.pixutils] Sun rasterfile to CGM

gerry@seq1.keele.ac.uk (G.D.Pratt) (03/13/91)

Does anyone know:

 - how to turn a color Sun Rasterfile to a Computer Graphics Metafile?
 - how to convert any format supported by PBMPLUS to a CGM file?
 - what the CGM spec for raster data is so a rast2cgm could be writen

The reason for this is so that Sun Rasterfiles can be printed on
a device we have here, a Calcomp Colorview Thermal Wax printer, which 
is supported from CGM.

many thanks
gerry
-- 
gerry pratt  --  workstation support  --  university of keele
email:  gerry@seq1.keele.ac.uk   *   tel:  0782 621111 x 3290
"these opinions are mine, mine, mine....ALL MINE I TELL YOU!"

jdonsbac@cvbnet.Prime.COM (Jeff Donsbach, Display & Devices, x4365, 5-2 2415) (03/15/91)

From article <946@keele.keele.ac.uk>, by gerry@seq1.keele.ac.uk (G.D.Pratt):
> Does anyone know:
> 
>  - how to turn a color Sun Rasterfile to a Computer Graphics Metafile?
>  - how to convert any format supported by PBMPLUS to a CGM file?
>  - what the CGM spec for raster data is so a rast2cgm could be writen
> 

CGM was intended, at least originally, to be a device independant vector
data format. CGM has no real raster image support per se. The closest thing to
it would be to use the CELL ARRAY primitive. If your rasterfile is real big,
you might want to divide it up into a bunch of smaller CELL ARRAY primitives.

The proposed Addendum 3 for CGM has extensions for including raster images
in a CGM file in either CCITT Group II and IV formats. But, it's only
a draft proposal right now as far as I know.

When converting other vector data formats, like HPGL or C906/7, there is
a much closer correspondence of primitives than with raster data formats.

-Jeff

==========================
Jeff Donsbach, Computervision,  A Prime Computer Company, Bedford, MA 
UUCP: {decvax|linus|sun}!cvbnet!jdonsbac | Internet: jdonsbac@cvbnet.prime.com
"You can't have everything because where would you put it?" -  Steven Wright