PictureEffects Xojo Plugin |

# BarrelDistortion Class

A class to do Barrel Distortion on pictures.
Barrel distortion comes from a lens effect which causes images to be spherised or inflated. Barrel distortion is often associated with wide angle lenses and typically occurs at the wide end of a zoom lens. The use of converters often amplifies the effect. Barrel distortion is most visible in images with perfectly straight lines, especially when they are close to the edge of the image frame.
This class is meant to fix images that suffer from Barrel Distortion, though it can also be used to create extreme barrel distortion for stylish design purposes.
Special thanks to Nick Loveday for all the ground work on this effect.

Object
BarrelDistortion

class BarrelDistortion

#### Constructors

BarrelDistortion | The default constructor of the BarrelDistortion class.

#### Properties

BackColor | The backcolor to fill empty areas of the image with.
Distortion | Defines how much the image should be distorted.
HorizontalKeystone | Sets or gets the value of the Horizontal Keystone.
Interpolate | Enables or disables interpolation.
VerticalKeystone | Sets or gets the value of the Vertical Keystone.

#### Methods

ApplyEffect | Use this function to apply the effect based of the settings of the properties of the class.
Reset | Resets all values on the BarrelDistortion class to its default values.

#### Supported Platforms:

- MacOS X Carbon
- MacOS X Cocoa 32 bit
- MacOS X Cocoa 64 bit
- Windows 32 bit
- Windows 64 bit
- Linux 32 bit
- Linux 64 bit
- Linux ARM