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:
Amplitude
Specifies the amplitude of the distortion:
Frequency
Specifies the frequency of the distortion:
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:
•
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
Copyright 2013 Corel Corporation. All rights reserved.