From 72857b1207600b10bd73e9b1fee479438aae3ac9 Mon Sep 17 00:00:00 2001 From: scuri Date: Wed, 16 Jun 2010 17:18:08 +0000 Subject: *** empty log message *** --- html/en/drv/cairo.html | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'html/en/drv/cairo.html') 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 @@ Image, Printer and Double Buffer were implemented.

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).

+filling, transformations and other back-ends (support to rendering: PDF, PS, SVG and +IMAGERGB surfaces).

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.

@@ -38,9 +38,12 @@ for complex clipping regions.

This function affects only the cdCreateCanvas function call, once created the canvas will be always a Cairo canvas. In fact the function affects primary the definitions CD_NATIVEWINDOW, - CD_IMAGE and + CD_IMAGE, + CD_PRINTER and CD_DBUFFER, because they are - function calls and not static defines.

+ function calls and not static defines. + CD_PRINTER can only + be used along with GDK base driver in UNIX.

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.

To enable the use of Cairo based drivers you must call the initialization function @@ -60,7 +63,8 @@ used.

Similar to CD_PS, uses the same creation parameters. But margins are not supported and Postscript level can be 2 (parameter -2) - or 3 (parameter -3).

+ 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.

CD_CAIRO_PDF - PDF Driver

@@ -84,7 +88,10 @@ used.

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.

+ 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 + IM library).

Behavior of Functions

Control 

-- cgit v1.2.3