Marblecore Imaging Library Documentation

Documentation Introduction
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

ParameterTypeRequiredDescription
strCaptchaStringYesSpecifies 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 // Creates a new transparent image
2 MarblecoreImaging.Create(150, 150, true);
3 
4 // Execute the operation
5 MarblecoreImaging.CaptchaCreate("Lw4Xz");
6 
7 // Save the modified image to the specified file
8 MarblecoreImaging.SaveToFile("example-captchacreate.jpg");

Category

Captcha

See also

CaptchaPhrase