Screenshots

All the screenshots here were generated with the same C source code. The same example is available in Lua source code. The code contains only the primitives and attributes, the canvas initialization is simply:

cdCanvas* canvas = cdCreateCanvas(ctx, data);

SimpleDraw(canvas);

/* Destroys the canvas and releases internal memory, 
   important for file based drivers to close the file. */
cdKillCanvas(canvas);

CD_NATIVEWINDOW or CD_IUP

Ihandle* cnv = IupCanvas(NULL);
cdInitContextPlus();
...
if (contextplus) cdUseContextPlus(1);
canvas = cdCreateCanvas(CD_IUP, cnv);
if (contextplus) cdUseContextPlus(0);
Win32 GDI+
X11 XRender
GDK Cairo

CD_IMAGERGB

canvas = cdCreateCanvas(CD_IMAGERGB, "1280x938");

CD_PDF

canvas = cdCreateCanvas(CD_PDF, "cd_pdf.pdf -w270.933 -h198.543 -s120");
cd_pdf.pdf

CD_PS

canvas = cdCreateCanvas(CD_PS, "cd_ps.ps -l0 -r0 -t0 -b0 -w270.933 -h198.543 -s120");
canvas = cdCreateCanvas(CD_PS, "cd_ps.eps -e -w270.933 -h198.543 -s120");
cd_ps.ps
cd_ps.eps

CD_SVG

canvas = cdCreateCanvas(CD_SVG, "cd_svg.svg 270.933x198.543 4.72441");
cd_svg.svg

CD_EMF

canvas = cdCreateCanvas(CD_EMF, "cd_emf.emf 1280x938");
Win32 GDI+
cd_emf_win32.emf cd_emf_gdiplus.emf

Other Metafiles

CD_METAFILE - cd_metafile.mf

canvas = cdCreateCanvas(CD_METAFILE, "cd_wmf.mf 270.933x198.543 4.72441");

CD_DEBUG - cd_debug.txt

canvas = cdCreateCanvas(CD_DEBUG, "cd_debug.txt 270.933x198.543 4.72441");

CD_WMF - cd_wmf.wmf

canvas = cdCreateCanvas(CD_WMF, "cd_wmf.wmf 1280x938");

CD_CGM - cd_cgm.cgm

canvas = cdCreateCanvas(CD_CGM, "cd_cgm.cgm 270.933x198.543 4.72441");

CD_CGM - cd_cgm_t.cgm  (text mode)

canvas = cdCreateCanvas(CD_CGM, "cd_cgm_t.cgm -t 270.933x198.543 4.72441");

CD_DGN - cd_dgn.dgn

canvas = cdCreateCanvas(CD_DGN, "cd_dgn.dgn 270.933x198.543 4.72441");

CD_DXF - cd_dxf.dxf

canvas = cdCreateCanvas(CD_DXF, "cd_dxf.dxf 270.933x198.543 4.72441");