Lanap.BotDetect.ImageFormatEnum Reference

Lanap.BotDetect.ImageFormatEnum contains all valid values of the Lanap.BotDetect.Captcha control's ImageFormat property. It represents the CAPTCHA image target binary format and MIME type.

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.

letter
about