Object Model Reference : Classes : S : Shape : Methods : Shape.CreateTwisterDistortion |
Function CreateTwisterDistortion(OriginX As Double, OriginY As Double, Angle As Double) As Effect
Member of Shape
The CreateTwisterDistortion method applies a Twister distortion to a shape, returning an Effect object that represents the distortion properties.
The following VBA example creates an ellipse and applies a Twister distortion to it before converting the shape to a curve.
Sub Test() |
Dim s As Shape |
ActiveDocument.ResetSettings |
Set s = ActiveLayer.CreateEllipse2(ActivePage.SizeWidth / 2, _ |
ActivePage.SizeHeight / 2, 2) |
s.CreateTwisterDistortion 0, 3, 80 |
s.ConvertToCurves |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.