Lucee Function Reference

imagecaptcha()

Creates a captcha image

Beispiel

imagecaptcha(string text,numeric height,numeric width,[string difficulty,[any fonts,[numeric fontsize,[string fontcolor]]]]):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 Default Value Beschreibung
text string  Yes   Text in the captcha.  
height numeric  Yes   Height of the captcha.  
width numeric  Yes   Width of the captcha.  
difficulty string  No low Level of complexity of the CAPTCHA text. Specify one of the following levels of text distortion: low, medium, high  
fonts any  No arial One or more valid fonts to use for the CAPTCHA text, as an array or as string list (separate multiple fonts with commas).
Lucee supports only the system fonts that the JDK can recognize. For example, TTF fonts in the Windows directory are supported on Windows.  
fontsize numeric  No 24 font size of the text in the CAPTCHA image.  
fontcolor string  No black font color of the text in the CAPTCHA image.