This project is read-only.

PartitionedAutoInputProtectionBitmapProvider class

The PartitionedAutoInputProtectionBitmapProvider class is an abstract base class that provides an overloaded method named, GenerateBitmap that generates an instance of the PartitionedAutoInputProtectionBitmap class, which renders the background of an AIP validation image before it renders the validation text in vertical partitions, with even spacing between characters.

A derived provider can use this base class to generate an instance of the PartitionedAutoInputProtectionBitmap class, which can be used as the return value for the GenerateAutoInputProtectionBitmap and GenerateRandomAutoInputProtectionBitmap method implementations.

This base class is meant to make it easier to use the PartitionedAutoInputProtectionBitmap class, but it's not required. A custom bitmap provider does not need to derive from PartitionedAutoInputProtectionBitmapProvider to use the PartitionedAutoInputProtectionBitmap class, although it's recommended so that the configuration attributes are inherited (see below).

For more information about bitmap providers, see AIP Providers, Bitmap Providers.

Inheritance Hierarchy

Configuration

The following table defines the xml attributes suppored by this class for the configuration of derived classes. The attributes are specified on the add element that registers a derived provider in the bitmapProviders collection element in your web.config file.

Attribute Name Default Value Type Description
margin 2 Int32 Specifies the top, left, right and bottom margins in which the validation text will be rendered, in pixels, from the edges of the bitmap.
minimumCharacterRotationDegrees -35 Int32 Specifies the minimum random rotation for each character, in degrees.
maximumCharacterRotationDegrees 35 Int32 Specifies the maximum random rotation for each character, in degrees.

Last edited Apr 23, 2007 at 8:59 PM by davedev, version 1

Comments

No comments yet.