Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Load arrow from wml file (Read 1650 times)
alesdario
Junior Member
**
Offline



Posts: 71
Joined: Mar 7th, 2007
Load arrow from wml file
Jun 14th, 2007 at 6:36am
Print Post  
Hi stoyo.
I save control points of a bezier' arrow in a xml file. The arrow look like straight line.

When i reload arrow from xml file

Arrow.ControlPoints.SetAt(index, Point);

where Point is the point i read in xml file.

But arrow's control point are not at the same position, but some is shifted on the left, some is shifted on the right?

Why?

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Load arrow from wml file
Reply #1 - Jun 14th, 2007 at 6:48am
Print Post  
They might be saved incorrectly. Check if the point coordinates from the XML file form a straight line. E.g. create a straight Bezier arrow starting from 0, 0, save it with your code, open the resulting XML file, and verify whether the x/y ratio of all point is the same.

In addition, make sure the point coordinates aren't converted to integer values when saving or parsed as integers when loading. That might add some offset, depending on the MeasureUnit that you use.

Stoyan
  
Back to top
 
IP Logged
 
alesdario
Junior Member
**
Offline



Posts: 71
Joined: Mar 7th, 2007
Re: Load arrow from wml file
Reply #2 - Jun 14th, 2007 at 7:26am
Print Post  
Tanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint