Lanap.BotDetect.ImageFormatEnum Reference (BotDetect v2.0; deprecated)
Please Note
The information on this page is out of date and applies to a deprecated version of BotDetect™ CAPTCHA (v2.0).
An up-to-date equivalent page for the latest BotDetect Captcha release (v3) is BotDetect v3 ASP.NET Captcha API reference.
General information about the major improvements in the current BotDetect release can be found at the What's New in BotDetect v3.0 page.
Lanap.BotDetect.ImageFormatEnum is a member of the BotDetect ASP.NET CAPTCHA interface that contains all valid values of the Lanap.BotDetect.Captcha control's ImageFormat property. It represents the CAPTCHA image target binary format and MIME type.
Table of Contents
Members
[VB.NET] Public Enum ImageFormatEnum Jpeg Bmp Gif Png End Enum
[C#]
public enum ImageFormatEnum
{
Jpeg,
Bmp,
Gif,
Png
}
Default value
If the ImageFormat property is not set, ImageFormatEnum.Jpeg is used by default.
Usage
[VB.NET] ' Example 1: simple assignment SampleCaptcha.ImageFormat = ImageFormatEnum.Png
[C#] // Example 1: simple assignment SampleCaptcha.ImageFormat = ImageFormatEnum.Png;
Notes
All of the 50 TextStyle values give good results with the default ImageFormatEnum.Jpeg image format. However, some algorithms give low-quality results when using the ImageFormatEnum.Gif image format, so you should take care not to change the image format without checking the resulting impact on CAPTCHA readability.
Please Note
The information on this page is out of date and applies to a deprecated version of BotDetect™ CAPTCHA (v2.0).
An up-to-date equivalent page for the latest BotDetect Captcha release (v3) is BotDetect v3 ASP.NET Captcha API reference.
General information about the major improvements in the current BotDetect release can be found at the What's New in BotDetect v3.0 page.
Current BotDetect Versions
- BotDetect PHP CAPTCHA v3.0.Alpha12012–02–06
- BotDetect ASP.NET CAPTCHA v3.0.92011–11–21
- BotDetect ASP Classic CAPTCHA v3.0.92011–11–21






