home *** CD-ROM | disk | FTP | other *** search
-
- !TextDraw
- =====================
- 1.06 11-April-1992
-
- by Henrik Bjerregaard Pedersen
-
- This program is Public Domain, so do with it whatever you want, just
- don`t blame me if anything goes wrong.
-
- !TextDraw converts graphics in the form of TEXT-files, containing
- commands like DRAW, MOVE, CIRCLE etc., to Draw-files. For futher
- explanation of commands like ARC, SEGMENT and SECTOR, see your BASIC V
- manuals. Valid commands in this version are :
-
- MOVE <x>,<y> Move cursor
- DRAW <x>,<y> Draw line
- CIRCLE <x>,<y> Draw circle
- CIRCLEFILL <x>,<y> Draw filled circle
- RECTANGLEFILL <x>,<y> Draw filled rectangle
- TRIANGLEFILL <x>,<y> Draw filled triangle
- ARC <x>,<y> Draw arc
- SEGMENT <x>,<y> Draw filled segment
- SECTOR <x>,<y> Draw filled sector
- ARROW <x>,<y>,<width> Draw arrow
- BEZIER <x>,<y> Draw Bezier-curve
-
- PATHSTART Inform !TextDraw that a path (only
- move and draw) follows
- PMOVE <x>,<y> Move within path
- PDRAW <x>,<y> Draw within path
- PATHEND End path
-
- GCOL <col> Set fillcolour and outline colour
- to colour <col> from the Wimp-palette
- GCOL -1 sets fillcolour and outline-
- colour to `transparent`
- COLOUR <r>,<g>,<b> Set outline colour
- COLOUR -1 means `transparent`
- FILLCOL <r>,<g>,<b> Set fillcolour
- FILLCOL -1 means `transparent`
- LINEWIDTH <pts> Set linewidth. LINEWIDTH 0 means thin.
-
- ADDFONT <n>,<name> Add a font to file
- FONT <n> Select a font for textplotting
- FONTSIZE <width>,<height> Set fontsize in pts
- TEXT <string> Plot text, max 11 characters
- To use anti-aliasing on a white back-
- ground, set FILLCOL to 255,255,255
-
- Be sure to include the single space between the command and the
- parameters, otherwise the parser will fail.
-
- Start !TextDraw the usual way, by doubleclicking on its icon in a
- directoryviewer. The program then installs itself on the iconbar.
- Clicking MENU on the iconbar-icon will reveal a menu with four items.
- The meaning of these should be fairly obvious.
-
- Preview only shows that part of the drawing that lies within the usual
- screen, that is; 0<=x<=1279 and 0<=y<=1023, and doesn`t plot text in outline
- fonts, but uses the monospaced system font.
-
- Personally, I use this program alot for creating Draw-files of data from
- other programs. Often the desired result is a path consisting of a MOVE in
- the beginning, followed by several (hundreds) DRAWs. This will usually
- result in a very large Drawfile, each of the hundreds of DRAWs being an
- object. By using PMOVE and PDRAW, encapsulated in PATHSTART and PATHEND,
- the size of the file is reduced to typically one fifth, and futhermore, the
- rendering of the file is a bit faster, as all the DRAWs are gathered in one
- object as a path.
- Notice however, no other commands than PMOVE and PDRAW are allowed
- between PATHSTART and PATHEND, nor may PDRAW and PMOVE appear outside
- PATHSTART-PATHEND.
-
- --------------------------------------------
-
- My address is:
-
- Henrik Bjerregaard Pedersen
- Stengaards Alle 13 B
- DK-2800 Lyngby
- Denmark
-
- Phone (+45) 42 88 37 56
-