Documentation / Marblecore Imaging / Methods / CaptchaCreate
CaptchaCreate method
Creates a captcha for the specified captcha phrase. The image canvas will be cleared and replaced by the captcha. You can call this function directly without opening or creating an image first.
Syntax
Boolean CaptchaCreate(strCaptcha As String)
Return value
Returns true if the function succeeded.
Parameters
Parameter | Type | Required | Description |
strCaptcha | String | Yes | Specifies the captcha phrase. |
Example
The example below shows how to use the method. If you take a look at the example code, assume there is a reference to the Marblecore Imaging object with the name 'MarblecoreImaging'. Transparent parts of the image are displayed using a checkerboard pattern.
1
2 MarblecoreImaging.Create(150, 150, true);
3
4
5 MarblecoreImaging.CaptchaCreate("Lw4Xz");
6
7
8 MarblecoreImaging.SaveToFile("example-captchacreate.jpg");
Category
Captcha
See also
CaptchaPhrase