Previous Document Next Document

Object Model Reference : Classes : E : EffectDistortion : Properties : EffectDistortion.OriginX


EffectDistortion.OriginX

Property OriginX As Double

Description

Member of EffectDistortion

The OriginX property returns or specifies the x-coordinate of the point of origin of a distortion effect. The coordinate is relative to the center of the shape.

This property is measured in document units.

VBA example

The following VBA example applies a Zipper distortion to an ellipse and then moves the shape’s center by 1" to the right.

Sub Test()
 Dim s As Shape
 Set s = ActiveLayer.CreateEllipse2(1, 1, 1)
 With s.CreateZipperDistortion(0, 0, 10, 6).Distortion
  .OriginX = 1
  .OriginY = 0
 End With
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.