From 1ad72d5276b1876bf218336a1ff47f086a0834c9 Mon Sep 17 00:00:00 2001
From: scuri
cdImage* cdCanvasCreateImage(cdCanvas* canvas, int w, int h); [in C] +cdImage* cdCanvasCreateImage(cdCanvas* canvas, int w, int h); [in C] canvas:CreateImage(w, h: number) -> (image: cdImage) [in Lua]
@@ -36,14 +36,14 @@ canvas:CreateImage(w, h: number) -> (image: cdImage) [in Lua] the same type as the canvas that was active when the image was created. The default background is the same as the canvas, CD_WHITE. -void cdKillImage(cdImage* image); [in C] +
void cdKillImage(cdImage* image); [in C] image:KillImage() [in Lua]
Liberates memory allocated for the image. If this function is not called in Lua, the garbage collector will call it.
-void cdCanvasGetImage(cdCanvas* canvas, cdImage* image, int x, int y); [in C] +
void cdCanvasGetImage(cdCanvas* canvas, cdImage* image, int x, int y); [in C] canvas:GetImage(image: cdImage; x, y: number) [in Lua]
@@ -53,7 +53,7 @@ canvas:GetImage(image: cdImage; x, y: number) [in Lua] width and length of the rectangular region are defined in the image structure (when the image is created). -void cdCanvasPutImageRect(cdCanvas* canvas, cdImage* image, int x, int y, int xmin, int xmax, int ymin, int ymax); [in C] +
void cdCanvasPutImageRect(cdCanvas* canvas, cdImage* image, int x, int y, int xmin, int xmax, int ymin, int ymax); [in C] void wdCanvasPutImageRect(cdCanvas* canvas, cdImage* image, double x, double y, int xmin, int xmax, int ymin, int ymax); (WC) [in C] canvas:PutImageRect(image: cdImage; x, y, xmin, xmax, ymin, ymax: number) [in Lua] @@ -66,7 +66,7 @@ canvas:wPutImageRect(image: cdImage; x, y, xmin, xmax, ymin, ymax: number) (WC) and ymax are 0, then the whole image is assumed. -void cdCanvasScrollArea(cdCanvas* canvas, int xmin, int xmax, int ymin, int ymax, int dx, int dy); [in C] +
void cdCanvasScrollArea(cdCanvas* canvas, int xmin, int xmax, int ymin, int ymax, int dx, int dy); [in C] canvas:ScrollArea(xmin, xmax, ymin, ymax, dx, dy: number) [in Lua]
@@ -79,7 +79,7 @@ canvas:ScrollArea(xmin, xmax, ymin, ymax, dx, dy: number) [in Lua] to the second, remains unchanged (the function does not clean this region). - +