Previous Document Next Document

Object Model Reference : Classes : C : CorelScript : Methods : CorelScript.ApplyDistortion


CorelScript.ApplyDistortion

Function ApplyDistortion(New As Boolean, DistortionType As Long, Amplitude As Long, Frequency As Long, Seed As Long, Angle As Long, CenterX As Long, CenterY As Long, Flag As Long) As Long

Description

Member of CorelScript

The ApplyDistortion method applies a distortion to the selected object.

Parameter
Description
New
Specifies how to apply the distortion to an existing distortion. True adds to the existing distortion, while False clears it.
DistortionType
Specifies the type of distortion:
 
1 = Push & Pull
 
2 = Zipper
 
3 = Twister
Amplitude
Specifies the amplitude of the distortion:
 
1 = -200 to 200
 
2 = 0 to 100
 
3 = N/A
Frequency
Specifies the frequency of the distortion:
 
1 = N/A
 
2 = Peaks/Curve
 
3 = N/A
Seed
Specifies the number of seeds for a random-aplitude Zipper distortion, if specified for the Flag parameter
Angle
Specifies the angle of the distortion:
 
1 = N/A
 
2 = N/A
 
3 = the maximum twist angle
CenterX
Specifies the horizontal offset from the center of the distortion
CenterY
Specifies the vertical offset from the center of the distortion
Flag
Specifies the flag for a Zipper distortion:
 
1 = the smoothness of the zipper
 
2 = the random amplitude of the zipper
 
4 = the acceleration of the distortion towards the center of the zipper

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.