GetCaptchaImage

Creates a CAPTCHA image with the specified text. CAPTCHA images are meant to use for validation of users on a Web site to protect from spamming.

The image is returned as a file and you can use any GDI+ compatible file type by specifying the appropriate extension (.gif, .jpg, .png etc.). The image is automatically sized based on your font and fontsize. You might have to experiment with the sizing.

Note: This is a static function not a method

GetCaptchaImage(lcText,lcOutputFile,lcFont,lnFontSize)

Parameters

lcText
Text to output

lcOutputFile
The output file into which the CAPTCHA image is created.

lcFont
The font of the text to display

lnFontSize
The font size of the text to display

Remarks

Uses GDI+.

Note this is a function not a method of the wwAPI class. This function is simply stored in the wwAPI.prg file.


See also:

Class wwAPI

© West Wind Technologies, 1996-2022 • Updated: 12/22/09
Comment or report problem with topic