🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #21

Drawing vectors on HP IIP

#21
From: Andries Dippenaar
Date: Mon, 03 Aug 1992 09:21
32 lines
2037 bytes
Hi Netters(tm),

I've got this problem of having to draw simple vectors on an HP IIP laser 
printer.  The scenario is this:  The page consists of a lot of text with one 
area containing a simple graph (just a few connected lines).  If I position 
the `cursor' at the last printing position, can I simply enter graphics mode 
and start `plotting'?  I've figure that lines may be drawn with relative (or 
absolute if that's required) cursor motions (+/-x dots, etc) and points 
plotted by drawing 1x1 dot rectangles (yes, utterly yech).  The only problem 
is this:  it does not work!

Note: I do *not* want to generate a full bitmap and download that!

Question(s):  Do I have to be in graphic mode to draw the 
rectangles?  I've only got a User's Manual, no Programmer's Manual, so it 
only lists the command codes.  Will the `define rectangle height, define 
rectangle with, fill rectangle (Esc*c#a#b2P) sequence do the `plot'?  Will 
the move cursor with relative coordinates (ie. # prefixed with +/-) work for 
move the plot position?

Alternatively:  Has somebody perhaps got sample code to show how the vectors 
can be done?

Any pointers will be highly appreciated.

Andries
***********************************************************************
*       /|~~\ * APJ Dippenaar        * "If you wanna make the world a *
*     /__|__/ * apj@sunvax.sun.ac.za *  better place, take a look at  *
*   /    |    * Univ of Stellenbosch *  yourself and make a change."  *
* /   \__|    * South Africa         *             -- Michael Jackson *
***********************************************************************
Technical Details
Message-ID: <apj.66.712833718@cs.sun.ac.za>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!psgrain!hippo!cs.sun.ac.za!apj

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!psgrain!hippo!cs.sun.ac.za!apj
From: apj@cs.sun.ac.za (Andries Dippenaar)
Newsgroups: comp.sys.ibm.pc.programmer,comp.periphs.printers
Subject: Drawing vectors on HP IIP
Message-ID: <apj.66.712833718@cs.sun.ac.za>
Date: 3 Aug 92 09:21:58 GMT
Article-I.D.: cs.apj.66.712833718
Sender: news@hippo.ru.ac.za
Organization: University of Stellenbosch
Lines: 32