drawtool(1)
π NAME π
okay bestie, welcome to drawtool(1) β she's idraw, but with extensions β¨ and she ate π
π¦ SYNOPSIS π¦
drawtool -import n ['X-params'] [file]
π DESCRIPTION π
so like, drawtool is an extended version of idraw (originally from the InterViews 3.1). it's built on the ivtools OverlayUnidraw library, and it adds these features, no cap:
- double-buffered graphics drawing
- 3d Motif-like menus and buttons
- readable text save/restore
- polygon intersection and clipping tools
- graphical object attribute annotations
drawtool is derived from idraw, and she implements the same set of pulldown commands and the same palette of toolbuttons. for the deets on that whole part of the drawtool user interface, go read the idraw man page. this page right here only lists the extensions to idraw that are embodied in drawtool. periodt π
drawtool saves and restores documents in a readable text format. this means you can create drawtool files manually or programmatically, main character energy fr fr. idraw-format documents can still be imported with the "Import Graphic" command, and exported with the Print command (both of those live under the File menu π«Ά).
in addition to idraw format, the "Import Graphic" command supports importing encapsulated drawtool files, plus these image file formats: TIFF, X11 Bitmap, PBM, PGM, and PPM. compression via compress (.Z) and gzip (.gz) is recognized and handled for the script files themselves and for the PBM, PGM, and PPM image formats β¨
there's also support for opening (via command line or dialog box) and importing via the net (to the -import port) any arbitrary PostScript file using the pstoedit filter, and any GIF, TIFF, or JPEG image, using respectively the giftopnm, tifftopnm, or djpeg filters. iconic tbh π
the "Export Clipboard" command writes the contents of the clipboard out in idraw or drawtool format π
commands have been added to the Edit menu for selecting by attributes (on the graphic objects) and clipping one polygon against another. so slay for that π
the View menu has been expanded with zoom and pan commands, plus commands to hide/show graphics and fix graphic sizes and locations. in addition, the viewer's panning and zooming can be chained to other viewers, and the pointer device can be put into a continuous "scribble" mode useful when drawing multilines or polygons π¦
the tools have been extended with a possible six new tools: Annotate, Attribute, ClipRect, ClipPoly, ConvexHull, and GraphicLoc.
- Annotate brings up a text editor in which graphic-specific text can be entered and/or edited.
- Attribute brings up a dialog box to create/edit property lists for the selected graphic.
- ClipRect and ClipPoly clip polygons, rectangles, lines, and multilines if
drawtoolhas been built with theclippolylibrary (otherwise just lines and rectangles). - ConvexHull is a convex hull drawing tool available if
qhullcan be found in your path. - GraphicLoc displays the coordinates of a mouse-click relative to the graphic that has been clicked on. this is relative to the original screen coordinates of the graphic when created (or the origin of the raster if an image). subsequent rotations and transformations can give this a non-obvious value π
β¨ OPTIONS β¨
-import nβ specifies the port number to run the import service on. the import service accepts connections over the net and readsdrawtooloridrawdocuments and pbmplus image formats (PBM/PGM/PPM), plus JPEG, GIF, TIFF, and the non-raster portions of arbitrary PostScript if appropriate filters are available (djpeg,giftopnm,tifftopnm,pstoedit). and hey,-color5selects a colormap with 5 values per color or 125 entries (5 cubed) π-nocolor6β overrides the selection of a colormap with 6 values per color or 216 entries (6 cubed).-gray5β selects a colormap with 5 bits of gray-level intensity (32 gray-levels) arranged to maximize rubberband visibility.-gray6β selects a colormap with 6 bits of gray-level intensity (64 gray-levels) arranged to maximize rubberband visibility.-gray7β selects a colormap with 7 bits of gray-level intensity (128 gray-levels) arranged to maximize rubberband visibility.-dithermapβ causes imported JPEG rasters to be mapped to the standard colormap (the default without-nocolor6) and dithered to avoid color banding.-opaque_off(or-opoff) β disables the opaque (visible) interactive transformations of graphics.-pagecols(or-ncols) β sets the horizontal page extent in pixels.-pagerows(or-nrows) β sets the vertical page extent in pixels.-panner_align tl|tc|tr|cl|c|cr|cl|bl|br|l|r|t|b|hc|vc(or-pal ...) β selects the alignment of the panner display.-panner_off(or-poff) β disables the panner display.-slider_off(or-soff) β disables the slider display.-zoomer_off(or-zoff) β disables the zoomer display.-ptrlocβ enables display of the current pointer location.-scribble_pointer(or-scrpt) β enables continuous line drawing.-toolbarloc r|l(or-tbl ...) β selects the toolbar location.
also, go check out -help and the idraw man page for more options, bestie π«Ά
π SEE ALSO π
π WEB PAGE π
http://www.ivtools.org/ivtools/drawtool.html
and that's a wrap on the drawtool(1) page, manual name drawtool, section 1, straight out of the General Commands Manual π you're literally so welcome, go draw something iconic πΈπ
β¨
π¦ where this page comes from
- debian bookworm: ivtools-bin 2.0.11d.a1-1+b4
- debian trixie: ivtools-bin 2.0.11d.a1-3+b4
- ubuntu jammy: ivtools-bin 2.0.11d.a1-1build1
- ubuntu noble: ivtools-bin 2.0.11d.a1-3build1
- ubuntu questing: ivtools-bin 2.0.11d.a1-3build7
- ubuntu resolute: ivtools-bin 2.0.11d.a1-3build9
- ubuntu stonking: ivtools-bin 2.1.1+git.2025.07.26.a1-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms