PictureEffects Xojo Plugin |

# BarrelDistortion.ApplyEffect Method

Use this function to apply the effect based of the settings of the properties of the class.

ApplyEffect(
src as Picture,
progress as IProgressHandler) as Picture

#### Parameters

src
  The source picture to work with. This picture has to be 32 bits per pixel.
progress
  Use this parameter to use a progress class to get progress feedback from this function. This class must be a class that Implements the IProgressHandler Interface which is defined in this plugin.
  Pass nil to this parameter if you don't need progress feedback.
  Progress feedback will slow the filter down.

#### Returns

Picture
  If the effect was successful: A reference to the modified picture.
  If the src picture was not 32 bits then a nil will be returned.
  This filter will allocate memory so a Nil is also returned if not enough memory could be allocated for it or if the mask parameter contained invalid mask picture.

#### Remarks

#### See Also

BarrelDistortion Class