A captcha
component can generate a special distortion image, also called a CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) image. Developers could set height
and width
for dimension of captcha. By default, captcha render the image with a randomly generated text, and developers can set value
to assign a purposive text.
<vbox> <captcha id="cpa" length="5" width="200px" height="50px"/> </vbox>
Name |
Event Type |
---|---|
|
|
Property |
Description |
Data Type |
Default Value |
---|---|---|---|
|
Sets the background color of the chart. It must be |
|
|
|
Sets exclude characters that will not be generated. Note that only digit and character is used in generating text value. If you leave exclude |
|
|
|
Sets font color. It must in |
|
|
|
Sets height of captcha, it colud be a px, pt or em value and it will transfer to px. |
|
|
|
Sets length of the autogenerated text value |
|
|
|
Sets the flag of noise generation |
|
|
|
Sets the text value to be shown as the distortion captcha |
|
Random Value |
|
Set width of captcha, it colud be a px, pt or em value and it will transfer to px. |
|
|
Name |
Description |
Return Data Type |
---|---|---|
|
Adds fonts into fonts list. |
|
|
Gets the background color in int |
|
|
Gets the captcha engine. |
|
|
Gets the default font list. |
|
|
Gets n-th Font |
|
|
Gets the font color in int. |
|
|
Gets fonts list, default provide two fonts. |
|
|
Gets the captcha int height in pixel; to be used by the derived subclass. |
|
|
Get the captcha int width in pixel; to be used by the derived subclass. |
|
|
Instantiates the default captcha engine. |
|
|
Regenerates new captcha text value and redraw |
|
|
Set the captcha engine instance or by a class name string. |
|
|
Marks a draw flag to inform that this Chart needs update. |
|