- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is the best method for getting vector graphics printed from a visual fortran program. The documentation only discusses bitmaps which are not good enough for our applications. Our old mainframe system used a program that converted the stream to a postscript format and sent it to the printer. Is there something like that for the AC that will work with visual fort ran. I am new to the AC programming environment. Any help will be appreciated. TX
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't know about postscript, but have you considered HPGL formatted output?
If you can draw to a window, then you can easily translate the draw commands to
HPGL format. These consist of PU X,Y (move to x,y with pen up, i.e. do not draw line from present position) and PD X,Y (move to x,y with pen down, i.e. draw line from present position). ALong with SP (select pen), PT (pen thickness) and a suitable header/preamble (stolen from a good HPGL-formatted file, see below), you can
easily create a text file of commands which is importable into any document with a half-decent HPGL filter or HPGL viewer and then print from there. You have to do your own scaling, but this is straightforward - the example below
shows the size of the numbers - the first few PU and PD's draw a rectangular box
around the plotting area.
Just sign off with the commands
In my experience, some import filters like/demand only one PU or PD command per record. Decent ones will take several commands per record, each seperated by semi-colons.
HTH
If you can draw to a window, then you can easily translate the draw commands to
HPGL format. These consist of PU X,Y (move to x,y with pen up, i.e. do not draw line from present position) and PD X,Y (move to x,y with pen down, i.e. draw line from present position). ALong with SP (select pen), PT (pen thickness) and a suitable header/preamble (stolen from a good HPGL-formatted file, see below), you can
easily create a text file of commands which is importable into any document with a half-decent HPGL filter or HPGL viewer and then print from there. You have to do your own scaling, but this is straightforward - the example below
shows the size of the numbers - the first few PU and PD's draw a rectangular box
around the plotting area.
IN;IP;IW;PS4;PU0,0;PT0.1;SP1;DT; PU1100,1100;PD1100,7475 PD9600,7475;PD9600,1100 PD1100,1100;PD SP1;LT2; SP1;LT4; PU4961,4875;PD5001,4840 SP1;LT2; PU5001,4840;PD5044,4808 PU5044,4808;PD5091,4781 PU5091,4781;PD5140,4758 PU5140,4758;PD5191,4741 PU5191,4741;PD5244,4728
Just sign off with the commands
PU0,0;SP0
In my experience, some import filters like/demand only one PU or PD command per record. Decent ones will take several commands per record, each seperated by semi-colons.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I spent a great deal of time getting vector graphics working under
WINDOWS. I would be happy to zip it all up and send it to you if I had
an email address. You would strip out all the things you don't need. The interface routines handle output to the screen, hpgl, calcomp and a few
other odd packages by setting a device string.
Bill
I spent a great deal of time getting vector graphics working under
WINDOWS. I would be happy to zip it all up and send it to you if I had
an email address. You would strip out all the things you don't need. The interface routines handle output to the screen, hpgl, calcomp and a few
other odd packages by setting a device string.
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the replies. I would like to get your zipped files. You can e-mail them to me at rob.sewell@lmco.com or at rsewell@home.com.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Bill, If possible I too would like to look at your graphics routines. My email is Robert.Magliola@parsons.com.
If one is working with source code which has CalComp calls I recommend they look at the page given below at Southhampton Fortran Support. The public domain routines listed here work well in producing HPGL, and PostScript files.
http://www.soton.ac.uk/~fortran/libraries/calcomp/convert.html
Bob
If one is working with source code which has CalComp calls I recommend they look at the page given below at Southhampton Fortran Support. The public domain routines listed here work well in producing HPGL, and PostScript files.
http://www.soton.ac.uk/~fortran/libraries/calcomp/convert.html
Bob
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page