From 0a186150f085c34462b8c6cd5257849c73f80b65 Mon Sep 17 00:00:00 2001
From: scuri This driver represents a basic driver for all system-dependent drivers
+ implemented in the X-Windows system. The implementation uses the
+ GDK and
+ Cairo API
+ functions. This driver was designed for the GTK+ version 2, and can be
+ compiled and used in Microsoft Windows system. This driver allows the generation of a SVG file, a modularized language for
+ describing two-dimensional vector and mixed vector/raster graphics in XML. The
+ SVG specification is an open standard
+ that has been under development by the World Wide
+ Web Consortium (W3C) since 1999. The file is created by calling function
+ cdCreateCanvas(CD_SVG,
+ Data). The Data parameter is a string that must contain the filename and the canvas
+ dimensions, in the following format: Only the parameter filename is required. The filename must be inside double quotes (")
+ if it has spaces. Width and height are provided in millimeters
+ (note the lowercase "x" between them), and their default value in pixels is INT_MAX for
+ both dimensions. Resolution is the number of pixels per millimeter; its default value is
+ "3.78 pixels/mm" (96 DPI). Width, height and
+ resolution are real values. Any amount of such canvases may exist simultaneously. It is important to note that a call to function
+
+ cdKillCanvas is required to close the file properly. CD is a platform-independent graphics library. It is implemented in several
- platforms using native graphics libraries: Microsoft Windows (GDI and GDI+)
+ CD is a platform-independent graphics library. Its drivers are implemented in several
+ platforms, some use portable code, others use native graphics libraries, such
+ as Microsoft Windows (GDI and GDI+)
and X-Windows (XLIB). The library contains functions to support both vector and image
applications, and the visualization surface can be either a canvas or a more
abstract surface, such as Clipboard, Metafile, PS, and so on. To make the Application Programmers Interface (API) simple, all data are
- standard C types (int, double or char). Thus the application program does not
- have to maintain parallel data structures to deal with the graphic library.
- Furthermore, the list of parameters of the CD primitive functions contains
only the geometrical descriptions of the objects (line, circle, text, etc.).
Where these objects should appear and what is the their color, thickness, etc.
@@ -110,7 +107,8 @@ http://canvasdraw.cvs.sourceforge.net/canvasdraw/.GDK Base Driver
+
+ Behavior of Functions
+Control
+
+
+Coordinate System and Clipping
+
+
+Attributes
+
+
+Colors
+
+
+
+ When CD_FORCE is used, the driver forces color allocation.
+ This may imply changing colors in other applications when a cursor moves in
+ and out of the canvas. However, if the number of requested colors is smaller
+ than the maximum number of possible colors in the palette, then the first
+ colors in the default system palette will be preserved, minimizing this
+ problem.
+ When CD_POLITE is used, all colors allocated by the driver are liberated, and
+ the requested colors are allocated. This is useful for the application to
+ prioritize the colors that will be allocated, causing other colors to be
+ mapped to their closest colors.
+ Note that canvases in the same application interfere with one another, but
+ when a canvas is terminated it liberates all allocated colors.Exclusive Attributes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/html/en/drv/svg.html b/html/en/drv/svg.html
new file mode 100644
index 0000000..e75451e
--- /dev/null
+++ b/html/en/drv/svg.html
@@ -0,0 +1,93 @@
+
+
+
+
+
+
+CD_SVG - CD Scalable Vector Graphics Driver (cdsvg.h)
+
+ Use
+
+ "filename [widthxheight resolution]" or in C "%s %gx%g %g"
+
+ Behavior of Functions
+Control
+Coordinate System and Clipping
+Attributes
+Colors
+Primitives
+Client Images
+Server Images
+History of Changes
CVS (02/Dec/2009)
+
Overview
-
The CD distribution includes the FreeType library, this is a third party diff --git a/html/en/to_do.html b/html/en/to_do.html index 2fc0e11..7fbceaf 100644 --- a/html/en/to_do.html +++ b/html/en/to_do.html @@ -19,7 +19,6 @@