From owner-freebsd-hackers Fri Sep 12 10:57:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA23550 for hackers-outgoing; Fri, 12 Sep 1997 10:57:32 -0700 (PDT) Received: from word.smith.net.au (word.smith.net.au [202.0.75.3]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA23540 for ; Fri, 12 Sep 1997 10:57:25 -0700 (PDT) Received: from word.smith.net.au (localhost.smith.net.au [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id DAA00551; Sat, 13 Sep 1997 03:25:37 +0930 (CST) Message-Id: <199709121755.DAA00551@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Nate Williams cc: hackers@freebsd.org Subject: Re: HPGL format In-reply-to: Your message of "Fri, 12 Sep 1997 11:51:21 CST." <199709121751.LAA10671@rocky.mt.sri.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 13 Sep 1997 03:25:37 +0930 From: Mike Smith Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > > Does anyone know how to convert this to something a bit more standard? > > > > Like what? > > Gif, or some other image. Ok, so you want to rasterise it. > > MS Word for Windows 2.0 had a reasonable HPGL import > > module; it wasn't shipped with 6.0 but worked OK there too. You ended > > up with a WMF embedded in your Word document, but couldn't do much more > > with it. > > Hmm, could I cut/paste from it into something like paint-brush, and end > up with a GIF/TIF from it? You could take a screen grab of it, but not, AFAIR, at any other resolution. ie. the rasteriser generated the image at screen resolution for display, and printer resolution for printing, but not at some arbitrary resolution for cut-n-paste. > > Short of that, write your own HPGL parser; it's pretty trivial(*). > > It'd be easier to print the darn thing and scan it, but we'd rather not > lose the resolution in the process. Understood. How big is the image? Various ugly thoughts come to mind (eg. write a parser in Tcl, render the image onto a canvas and then dump the canvas as Postscript), but many of them are a bit gutless. Someone else here may have written an HPGL rasteriser of course. mike