Monday 15 February 2010

geometry - IDML : How are shapes stored in IDML files? -


While reading IDML spread, I have encountered many figures. Each size has its own geometry that looks -

  - & lt; Pathgometry & gt; - & lt; GeometryPathType PathOpen = "false" & gt; - & lt; PathPointArray & gt; & Lt; Pathpoint typewrite = "- 611.51548.5" left direction = "- 611.5" 1548.5 "anchor =" - 611.5 "1548.5" /> & Lt; Pathpoint Type Right Drawing = "- 611.5 2339.5" Left Direction = "- 611.5 2339.5" Anchor = "- 611.5 2339.5" /> & Lt; Pathpoints type right drawing = "- 533.3 2339.5" left direction = "- 533.3 2339.5" anchor = "- 533.3 2339.5" /> & Lt; Pathpoints type right drawing = "- 533.3 1548.5" left direction = "- 533.3 1548.5" anchor = "- 533.3" 1548.5 "/> & Lt; / PathPointArray & gt; & Lt; / GeometryPathType & gt; & Lt; / PathGeometry & gt;   

This is trivial for rectangular (as shown above), where and lieutenant; Pathpoints & gt; Each attribute in the element indicates an endpoint in the rectangle. What happens to other shapes? In other words, what is the meaning of right-hand drawing, left-hand drawing and anchor properties? Is there a way to determine how he is looking at, pathpoints?

Thank you.

Each IDML pathpoint type is a node on a cubic with control and anchor points Define the end points and curvature of the combination line. All the rows of idml are defined as they decrease, but as you have seen, the control and anchor points for a straight line are the same. Straight line polygons (like a triangle like) are defined in the same way.

There is only a small collection of size shapes (see rectangular, oval, graphic lines, polygon - see 10.3.1 in the specification). You can draw any form from IDML by drawing a line at a time, but it is more efficient to make different routines for rectangular and oval shapes.

If you make the row, first if PathOpen == false.

No comments:

Post a Comment