IUP::Canvas::FileVector - [special] 2D drawing canvas storing the result into vector image file (SVG, EMF, ...)
use IUP::Constants ':cd'; use IUP::Canvas::FileVector; my $cnv = IUP::Canvas::FileVector->new(format=>"SVG", filename=>"tmp_test.svg", width=>400, height=>400); $cnv->cdForeground(CD_RED); $cnv->cdBox(0, 200, 0, 400); $cnv->cdForeground(CD_BLACK); $cnv->cdLineStyle(CD_DOTTED); $cnv->cdArc(200,200,180,380,0,360); $cnv->cdKillCanvas;
IUP::Canvas::FileVector is derived from IUP::Canvas and offers all 2D drawing related methods:
Canvas Related Constants
Methods - Basic Canvas Control
Methods - Color Coding
Methods - Coordinate System
Methods - World Coordinates
Methods - Primitives / Marks
Methods - Primitives / Lines
Methods - Primitives / Polygons
Methods - Primitives / Filled Areas
Methods - Primitives / Text
Methods - Primitives / Vector Text
Methods - Primitives / Client Images
Methods - Primitives / Server Images
Methods - Canvas Clipping
Methods - Complex Clipping Regions
Methods - Others
XXX-TODO more description
format 'PS' # http://www.tecgraf.puc-rio.br/cd/en/drv/ps.html # "filename -p[paper] -w[width] -h[height] -l[left] -r[right] -b[bottom] -t[top] -s[resolution] [-e] [-g] [-o] [-1] -d[margin]" # "%s -p%d -w%g -h%g -l%g -r%g -b%g -t%g -s%d -e -o -1 -g -d%g" format 'SVG' # http://www.tecgraf.puc-rio.br/cd/en/drv/svg.html # "filename [widthxheight] [resolution]" # "%s %gx%g %g" format 'CGM' # http://www.tecgraf.puc-rio.br/cd/en/drv/cgm.html # "filename [widthxheight] [resolution] [-t] -p[precision]" # "%s %gx%g %g %s" format 'DEBUG' # http://www.tecgraf.puc-rio.br/cd/en/drv/debug.html # "filename [widthxheight] [resolution]" # "%s %gx%g %g" format 'DGN' # http://www.tecgraf.puc-rio.br/cd/en/drv/dgn.html # "filename [widthxheight] [resolution] [-f] [-sseedfile]" # "%s %gx%g %g %s" format 'DXF' # http://www.tecgraf.puc-rio.br/cd/en/drv/dxf.html # "filename [widthxheight] [resolution]" # "%s %gx%g %g" format 'EMF' # http://www.tecgraf.puc-rio.br/cd/en/drv/emf.html # "filename widthxheight" # "%s %dx%d" format 'METAFILE' # http://www.tecgraf.puc-rio.br/cd/en/drv/mf.html # "filename [widthxheight] [resolution]" # "%s %gx%g %g" format 'WMF' # http://www.tecgraf.puc-rio.br/cd/en/drv/wmf.html # "filename widthxheight [resolution]" # "%s %dx%d %g"
IUP::Canvas, IUP::Canvas::FileBitmap
8 POD Errors
The following errors were encountered while parsing the POD:
alternative text 'Methods - Primitives / Marks' contains non-escaped | or /
alternative text 'Methods - Primitives / Lines' contains non-escaped | or /
alternative text 'Methods - Primitives / Polygons' contains non-escaped | or /
alternative text 'Methods - Primitives / Filled Areas' contains non-escaped | or /
alternative text 'Methods - Primitives / Text' contains non-escaped | or /
alternative text 'Methods - Primitives / Vector Text' contains non-escaped | or /
alternative text 'Methods - Primitives / Client Images' contains non-escaped | or /
alternative text 'Methods - Primitives / Server Images' contains non-escaped | or /
To install IUP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IUP
CPAN shell
perl -MCPAN -e shell install IUP
For more information on module installation, please visit the detailed CPAN module installation guide.