Lucee Function Reference

imagesetbackgroundcolor()

Sets the background color for the image. The background color is used for clearing a region. Setting the background color only affects the subsequent ImageClearRect calls

Beispiel

imagesetbackgroundcolor(any image,string color):void

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
image any  Yes The image on which this operation is performed.  
color string  Yes Background color (The default value is "black"):
  • Hexadecimal value of RGB color. For example, specify the color white as ##FFFFFF or FFFFFF.
  • String value of color (for example, "black", "red", "green").
  • List of three numbers for (R,G,B) values. Each value must be in the range 0-255.