NAME
IUP::Canvas::FileVector - [special] 2D drawing canvas storing the result into vector image file (SVG, EMF, ...)
SYNOPSIS
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;
# this saves the file to disk
DESCRIPTION
IUP::Canvas::FileVector is derived from IUP::Canvas and offers all 2D drawing related methods:
SUPPORTED FORMATS
XXX-TODO more description
format
'PS'
# "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'
# "filename [widthxheight] [resolution]"
# "%s %gx%g %g"
format
'CGM'
# "filename [widthxheight] [resolution] [-t] -p[precision]"
# "%s %gx%g %g %s"
format
'DEBUG'
# "filename [widthxheight] [resolution]"
# "%s %gx%g %g"
format
'DGN'
# "filename [widthxheight] [resolution] [-f] [-sseedfile]"
# "%s %gx%g %g %s"
format
'DXF'
# "filename [widthxheight] [resolution]"
# "%s %gx%g %g"
format
'EMF'
# "filename widthxheight"
# "%s %dx%d"
format
'METAFILE'
# "filename [widthxheight] [resolution]"
# "%s %gx%g %g"
format
'WMF'
# "filename widthxheight [resolution]"
# "%s %dx%d %g"