From 7b52cc13af4e85f1ca2deb6b6c77de9c95ea0dcf Mon Sep 17 00:00:00 2001 From: scuri Date: Fri, 17 Oct 2008 06:10:33 +0000 Subject: First commit - moving from LuaForge to SourceForge --- html/en/drv/picture.html | 81 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 html/en/drv/picture.html (limited to 'html/en/drv/picture.html') diff --git a/html/en/drv/picture.html b/html/en/drv/picture.html new file mode 100644 index 0000000..d702555 --- /dev/null +++ b/html/en/drv/picture.html @@ -0,0 +1,81 @@ + + + + + + +CD_METAFILE + + + + + +

CD_PICTURE - CD Picture (cdpicture.h)

+ +

This driver allows the creation of a CD Picture. It store primitives and + attributes in memory that can be played and resized in any other driver. It + does not includes clipping and WriteMode.

+ +

Use

+ +

The file is created by calling function + cdCreateCanvas(CD_PICTURE, + Data). The Data parameter is a string that + can contain the resolution in the following format:

+ +
"[resolution]" or in C use "%lg"
+ +

Resolution is the number of pixels per millimeter; its default value is + "3.78 pixels/mm" (96 DPI).

+

The canvas size is automatically calculated to be the bounding box of all the +primitives inside the picture.

+

Any amount of such canvases may exist simultaneously. It is important to note that a call to function + + cdKillCanvas is required to release the picture memory.

+ +

Behavior of Functions

+

Coordinate System and Clipping

+ +

Attributes

+ +
  • + + WriteMode: does nothing.
  • +
  • FontDim: + uses a size estimator, returning approximate values.
  • +
  • + TextSize: uses a size estimator, returning approximate values.
  • +
    +

    Colors

    + +

    Primitives

    + +

    Client Images

    + +

    Server Images

    + + + + + -- cgit v1.2.3