PictureEffects Xojo and Real Studio 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

BarrelDistortionThe default constructor of the BarrelDistortion class.

Properties

BackColorThe backcolor to fill empty areas of the image with.
DistortionDefines how much the image should be distorted.
HorizontalKeystoneSets or gets the value of the Horizontal Keystone.
InterpolateEnables or disables interpolation.
VerticalKeystoneSets or gets the value of the Vertical Keystone.

Methods

ApplyEffectUse this function to apply the effect based of the settings of the properties of the class.
ResetResets all values on the BarrelDistortion class to its default values.

Supported Platforms:

  • MacOS X Carbon
  • MacOS X Cocoa
  • Win32 - Windows
  • Linux x86

    Unsupported Platforms: