From d96819756a30e82b52798487343a4fcbdec11a88 Mon Sep 17 00:00:00 2001
From: scuri It must include the canvas' dimensions. Width and height
are provided in pixels (note the lowercase "x" between them). As an option, you can specify the buffers to be used by
- the driver, so that you can draw over an existing image. The resolution can be defined with parameter
+ the driver, so that you can draw over an existing image, [r g b] or [r g b a]
+ are pointers to the component buffer, just like PutImageRectRGB/A. The resolution can be defined with parameter
-r; its default value is "3.78 pixels/mm" (96 DPI). When the parameter -a is specified an alpha channel will be added to the
canvas underlying image. All primitives will be composed using an over operator
@@ -45,11 +46,11 @@ They are not initialized when allocated by the application.
In Lua, the canvas can be created in two ways: with an already defined image or without it. With an image, an RGB - image must be passed as parameter, created by functions + image must be passed as parameter instead of the string, created by functions cd.CreateImageRGB, cd.CreateImageRGBA or cd.CreateBitmap - in Lua. The resolution must be passed in an extra parameter after the image.
+ in Lua. The resolution must be passed in a second parameter after the image.