Previous Document Next Document
EffectBlend.RotateShapes

Property RotateShapes As Boolean

Member of EffectBlend

The RotateShapes property returns or sets whether a blend rotates the blend shapes to follow the direction of the path.

The following code example creates a blend, attaches it to a path, and stretches it so that it follows the complete length of the path:

Sub Test() 
 Dim sPath As Shape, s1 As Shape, s2 As Shape 
 Set sPath = ActiveLayer.CreateCurveSegment(0.6, 4.5, 7.8, 8.5, 5.2, 
62, 5.3, -96) 
 Set s1 = ActiveLayer.CreateRectangle2(0, 0, 1, 1) 
 Set s2 = s1.Duplicate(5, 5) 
 s1.Fill.UniformColor.RGBAssign 255, 0, 0 
 s2.Fill.UniformColor.RGBAssign 255, 255, 0 
 With s1.CreateBlend(s2).Blend 
  .Path = sPath 
  .FullPath = True 
  .RotateShapes = True 
 End With 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.