gd_new - Creates a new image with GD.
gd_new (filename:"string", width:integer, height:integer, transparent:"string", format:"string", bgcolor:"string", truecolor:true|false);
This function is used to create a new image with library GD.
To initialize a new image, you must specify a width and a height or a filename to load.
To use this module, you must specify the following in /usr/local/website/site.conf:
Module gd { Library : "/usr/local/lib/libsngd.so" Init : "sngd_init" }
im=gd_new(width:1000,height:1000,bgcolor:"#0000f0",truecolor:true); im2=gd_new(filename:"/html/images/20130708-1944-londres.jpg",truecolor:true); im3=gd_new(width:1000,height:1000,bgcolor:"#0000f0",truecolor:true);
Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
1.0 2014-09-09 21:24:14 laplante@sednove.com