ss746724@longs.LANCE.ColoState.EDU (Steve) (11/14/90)
C users: I've just started using Borland's Turbo C on my PC and I am in need of some general help;I don't really know where to start, I hesitate to post this! What I need to do is to draw a simple object on screen from a set of data points either from another source or from key board input. Eventually I would like to be able to print the resulting graphic to a laser jet. Any suggestions on getting starting would be helpful. Dis: Sorry if this is TOO simple a question Thanks Steve Smith Colorado State University
gordon@osiris.cso.uiuc.edu (John Gordon) (11/14/90)
Well, for a start you could use the line*() functions (lineto(), etc.) to draw line figures. As for printing, I'm afraid I can't help there.
tjr@cbnewsc.att.com (thomas.j.roberts) (11/17/90)
From article <11203@ccncsu.ColoState.EDU>, by ss746724@longs.LANCE.ColoState.EDU (Steve): > C users: > > [...] Eventually I would like to be able to print the resulting > graphic to a laser jet. [...] This is a MAJOR failing of Turbo C graphics - there is ABSOLUTELY NO PRINTER SUPPORT. It works fine on a multitude of display hardware. In principle, BGI drivers could be written for printers, but the BGI interface DOES NOT provide all of the necessary hooks [e.g. drawing to printer, but putting menus on screen, using different fonts for printer and screen, etc.] Before Turbo C, I used my own graphics library, specific to by own devices. What I have done is modified it to use Turbo C graphics for the screen, but to use its internal routines for the printer. This is a cumbersome and un-general way to do it, but it works. Tom Roberts att!ihlpl!tjrob
rusbara2@sage.cc.purdue.edu (Bob Rusbasan) (11/17/90)
In article <1990Nov16.160420.22339@cbnewsc.att.com> tjr@cbnewsc.att.com (thomas.j.roberts) writes: >From article <11203@ccncsu.ColoState.EDU>, by ss746724@longs.LANCE.ColoState.EDU (Steve): >> [...] Eventually I would like to be able to print the resulting >> graphic to a laser jet. [...] > >In principle, BGI drivers could be written for printers, but the >BGI interface DOES NOT provide all of the necessary hooks [e.g. >drawing to printer, but putting menus on screen, using different >fonts for printer and screen, etc.] BGI drivers have been written for printers. I don't know who has them offhand, but their ad appears regularily in Dr. Dobb's every month. Followups to comp.os.msdos.programmer, where this thread belongs... ---------------------------------------------------------------------- | Bob Rusbasan | This space unintentionally left blank. | | bob@en.ecn.purdue.edu | | ----------------------------------------------------------------------