Lucee Function Reference
imagenew()
Creates a image.
Beispiel
imagenew([any source,[string width,[string height,[string imageType,[string canvasColor]]]]]):any
Kategorie
image
Argumente
Die Argumente für diese Funktion sind fest vorgegeben. Ausser den nachfolgenden Argumenten dürfen keine weiteren verwendet werden.
Name | Typ | Required | Beschreibung |
---|---|---|---|
source | any | No | The source image path, URL, a variable that is read into the new image, or a Java buffered image. |
width | string | No | The width of the new image. Valid when the height is specified and the source is not. |
height | string | No | The height of the new image. Valid when the width is specified and the source is not. |
imageType | string | No |
The type of the image to create (Valid only when width and height are specified): |
canvasColor | string | No |
Color of the image canvas (The default value is "black"): |