[comp.lang.c] Turbo C 2.0 to plotter

g8707855@wolfen.cc.uow.oz (H Shi) (09/03/90)

I am using Turbo C 2.0 at IBM PC. 
I want to know how to plot my graphics which created by Turbo C 2.0
in Graphics MODE onto HP 7475 plotter.
Thank you for your help.
               (Mrs.) Hao Shi
               University of Wollongong
               Australia

ffritze@hpwad.HP.COM (#Fromut Fritze) (09/04/90)

> I want to know how to plot my graphics which created by Turbo C 2.0
> in Graphics MODE onto HP 7475 plotter.

This is probably a nontrivial task, at least once you have filled areas,
shadows, many colors etc, due to the sreen beeing a raster device versus
the plotter being a vector oriented device. It's much easier once you used
only the handfull colors available on the plotter (thus avoiding the problem
to automatically map colors and/or generating seperation lines between two
different original colors mapping into the same plotter color) and retained
from using odd shapes, that couldn't easily be represented by arc's or poly-
gons available at HPGL. Take a closer look to the Reference Manual of your
printer and start replacing moves by PU and draws by PD instructions.
Alternatively you could try to find / write a BGI-driver for that plotter,
that sends appropriate instructions to the plotter.

------------------------------------------------------------------------------
internet: ffritze@hpwadrd.hp.com
hpdesk:   Fromut FRITZE / HPB400 / R1
phone:    Germany 7243 602296
address:  Fromut FRITZE, Waldbronn Analytic Division R&D,
	  Hewlett Packard Str, D 7517 Waldbronn 2, Germany
------------------------------------------------------------------------------