ijj@inf.rl.ac.uk (Ian Johnson) (03/06/90)
I have a requirement to convert Sun colour rasterfiles to HPGL
format (don't ask why). Does anyone know of a utility to do this?
--
--
"You can't get the wood!"
Ian Johnson JANET: ijj@uk.ac.rl.inf
Rutherford Appleton Laboratory, UUCP: ..!mcsun!ukc!rlinf!ijj
Chilton, Didcot, Oxon OX11 0QX.dclaar@hpcupt1.HP.COM (Doug Claar) (03/08/90)
I have a requirement to convert Sun colour rasterfiles to HPGL
format (don't ask why). Does anyone know of a utility to do this?
--
Well, sun is raster, and HPGL is vector. Converting to a true vector
image is a "hard problem." Autocad's CADcamera is often mentioned as
a program that does a good job, using copyrighted/patented techniques.
(This is from memory, it might be in the weekly posting...)
If you are NOT going to a REAL vector device, it would be fairly easy
to use rasttopbm (from the pbm toolset) and an awk script to create
a massive file of pen-up pen-downs. PBM is a very simple ascii format.
If you were to send your resulting HPGL file to a plotter, it would
KILL the pen! You probably also need to consider pen width, and
possibly some unit conversion...
Doug "Funny, I was asked this question just yesterday" ClaarSusan.King@f270.n106.z1.fidonet.org (Susan King) (03/12/90)
DC: DC: From: dclaar@hpcupt1.HP.COM (Doug Claar) DC: Date: 7 Mar 90 18:01:32 GMT DC: Organization: Hewlett Packard, Cupertino DC: Message-ID: <6350009@hpcupt1.HP.COM> DC: Newsgroups: comp.graphics DC: DC: DC: I have a requirement to convert Sun colour rasterfiles DC: to HPGL DC: format (don't ask why). Does anyone know of a utility to DC: do this? DC: DC: -- DC: Well, sun is raster, and HPGL is vector. Converting to a true DC: vector DC: image is a "hard problem." Autocad's CADcamera is often mentioned DC: as DC: a program that does a good job, using copyrighted/patented techniques. DC: (This is from memory, it might be in the weekly posting...) DC: DC: If you are NOT going to a REAL vector device, it would be fairly DC: easy DC: to use rasttopbm (from the pbm toolset) and an awk script to DC: create DC: a massive file of pen-up pen-downs. PBM is a very simple ascii DC: format. DC: If you were to send your resulting HPGL file to a plotter, it DC: would DC: KILL the pen! You probably also need to consider pen width, and DC: DC: possibly some unit conversion... DC: DC: Doug "Funny, I was asked this question just yesterday" Claar Doug, if you have a .GIF file captured from your SUN Workstation you can try a Program like HIJAAK to convert to HPGL. Now that I think about it.. I know we do HPGL to GIF using that program.. but haven't gone the other way... I will check at the office today!