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 +++++++++++++------ html/en/drv/printer.html | 2 +- html/en/func/polygon.html | 2 +- html/en/history.html | 14 ++++++++++---- 4 files changed, 25 insertions(+), 12 deletions(-) (limited to '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 

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.

This driver is greatly platform-dependent. For further detail, see the Behavior of Functions in each platform: Microsoft Windows (GDI), Windows Using GDI+, - X-Windows (XLIB). However, it should be noted that + and Cairo (over GDK). However, it should be noted that some functions behave differently from the basic functions of each platform.

A printer created in Win32s has the same limitations as the WMF driver. In Windows 95 or NT, it has the same diff --git a/html/en/func/polygon.html b/html/en/func/polygon.html index c2acb9a..90890d4 100644 --- a/html/en/func/polygon.html +++ b/html/en/func/polygon.html @@ -86,7 +86,7 @@ canvas:End() [in Lua]

Ends the polygon's definition and draws it.

-
void cdCanvasPathSet(cdCanvas* canvas, int action); [in C]
+
void cdCanvasPathSet(cdCanvas* canvas, int action); [in C]
 
 canvas:PathSet(action: number) [in Lua]
diff --git a/html/en/history.html b/html/en/history.html index 11532df..293eb3b 100644 --- a/html/en/history.html +++ b/html/en/history.html @@ -17,6 +17,9 @@ .hist_fixed { color: #FF0000; font-weight: bold; +} + .style1 { + color: #FF0000; } @@ -26,17 +29,20 @@

History of Changes

Version 5.4 (XX/June/2010)

    -
  • New: context plus driver Cairo.
  • +
  • New: context plus driver + Cairo.
  • New: "CMD", "OPACITY" and "HATCHBOXSIZE" attributes in the SVG driver.
  • -
  • New: CD_PATH cdCanvasBegin +
  • New: CD_PATH cdCanvasBegin mode to create a path composed of several primitives that can be line draw, - filled or used as clipping. New function cdCanvasPathSet to + filled or used as clipping. New function + cdCanvasPathSet to configure the action between sequences of cdCanvasVertex.
  • Changed: CD_DXF now supports solid filled primitives for polygons and rectangles.
  • Changed: - GDI+ base driver now supports floating point primitives. ATTENTION: check + GDI+ base driver now supports floating point primitives. + ATTENTION: check for alignment and size problems in the application. Please report if anything changed.
  • -- cgit v1.2.3