Previous Document Next Document
EffectBlend.StartPoint

Property StartPoint As SnapPoint

Member of EffectBlend

The StartPoint property returns or sets the starting mapped node for a blend. The starting and ending mapped nodes determine how the intermediate objects are transformed from the start shape to become the end shape.

The following code example creates a blend between a circle and a polygon and specifies the key nodes on the two shapes that the blend uses as starting points of the shapes.

Sub Test() 
 Dim s1 As Shape, s2 As Shape, eff As Effect 
 Set s1 = ActiveLayer.CreateEllipse2(2, 9, 1) 
 Set s2 = ActiveLayer.CreatePolygon(4, 3, 6, 5, 5) 
 s1.Fill.UniformColor.RGBAssign 255, 0, 0 
 s2.Fill.UniformColor.RGBAssign 255, 255, 0 
 Set eff = s1.CreateBlend(s2) 
 With eff.Blend 
  .MapNodes = True 
  .StartPoint = s1.SnapPoints(2) 
  .EndPoint = s2.SnapPoints(4) 
 End With 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.