diff options
author | scuri <scuri> | 2010-06-16 17:18:08 +0000 |
---|---|---|
committer | scuri <scuri> | 2010-06-16 17:18:08 +0000 |
commit | 72857b1207600b10bd73e9b1fee479438aae3ac9 (patch) | |
tree | 8f4172c1a0e376833e420978bd6c2ca24dc5dc6d /html/en/drv | |
parent | 127ec89889f5a6af402d1d4a42d298d0aa98b7d3 (diff) |
*** empty log message ***
Diffstat (limited to 'html/en/drv')
-rw-r--r-- | html/en/drv/cairo.html | 19 | ||||
-rw-r--r-- | html/en/drv/printer.html | 2 |
2 files changed, 14 insertions, 7 deletions
diff --git a/html/en/drv/cairo.html b/html/en/drv/cairo.html index adb65ac..9632ed8 100644 --- a/html/en/drv/cairo.html +++ b/html/en/drv/cairo.html @@ -27,8 +27,8 @@ <b>Image</b>, <b>Printer</b> and <b>Double Buffer</b> were implemented.</p> <p>The main motivation for the use of Cairo was transparency for all the primitives. Beyond that we got other features like anti-aliasing, gradient -filling, transformations and back-ends (support to rendering: PDF, PS, SVG and -PNG surfaces).</p> +filling, transformations and other back-ends (support to rendering: PDF, PS, SVG and +IMAGERGB surfaces).</p> <p>This driver still does not completely replace the X-Windows and GDI Windows base drivers, because Cairo does not have support for bitwise XOR operations and for complex clipping regions.</p> @@ -38,9 +38,12 @@ for complex clipping regions.</p> This function affects only the <font face="Courier"><strong>cdCreateCanvas</strong></font> function call, once created the canvas will be always a Cairo canvas. In fact the function affects primary the definitions <font face="Courier"><strong>CD_NATIVEWINDOW</strong></font>, - <strong><span style="font-family: Courier">CD_IMAGE</span></strong> and <strong> + <strong><span style="font-family: Courier">CD_IMAGE</span></strong>, + <strong><span style="font-family: Courier">CD_PRINTER</span></strong> and <strong> <span style="font-family: Courier">CD_DBUFFER</span></strong>, because they are - function calls and not static defines.</p> + function calls and not static defines. + <strong><span style="font-family: Courier">CD_PRINTER</span></strong> can only + be used along with GDK base driver in UNIX.</p> <p>Using Cairo it is allowed to create more that one canvas at the same time for the same Window. And they can co-exist with a standard GDK, Win32 or X-Windows canvas.</p> <p>To enable the use of Cairo based drivers you must call the initialization function <font face="Courier"><strong> @@ -60,7 +63,8 @@ used.</p> <p>Similar to <a href="ps.html">CD_PS</a>, uses the same creation parameters. But margins are not supported and Postscript level can be 2 (parameter -2) - or 3 (parameter -3).</p> + or 3 (parameter -3). The "CMD" attribute is not supported, and the new + attribute "DSCCOMMENT" accepts a string that is saved as a DSC comment.</p> <h4>CD_CAIRO_PDF - PDF Driver</h4> @@ -84,7 +88,10 @@ used.</p> returns the line size in bytes, when data is specified during creation then stride is always width*32. Even when there is not alpha channel, data is stored in 32 bits per pixel. Image data is also organized in top-bottom - orientation, it means the data pointer points to the top-left corner.</p> + orientation, it means the data pointer points to the top-left corner. And + the "WRITE2PNG" attribute that accepts a filename to save the image as a PNG + file (this does not depends of the + <a href="http://www.tecgraf.puc-rio.br/im">IM</a> library).</p> <h3>Behavior of Functions</h3> <h4>Control </h4> diff --git a/html/en/drv/printer.html b/html/en/drv/printer.html index 6b6ca19..f712821 100644 --- a/html/en/drv/printer.html +++ b/html/en/drv/printer.html @@ -55,7 +55,7 @@ before creating the canvas.</p> <p>This driver is greatly platform-dependent. For further detail, see the <b> Behavior of Functions</b> in each platform: <a href="win32.html">Microsoft Windows (GDI)</a>, <a href="gdiplus.html">Windows Using GDI+</a>, - <a href="xwin.html">X-Windows (XLIB)</a>. However, it should be noted that + and <a href="cairo.html">Cairo</a> (over GDK). However, it should be noted that some functions behave differently from the basic functions of each platform.</p> <p>A printer created in Win32s has the same limitations as the <a href="wmf.html">WMF driver</a>. In Windows 95 or NT, it has the same |