Tuesday 15 April 2014

openxml - In PowerPoint 2007, how can I position a Callout's Tail programatically? -


I am looking at DrawingML of a PowerPoint 2007 file and it is for coordinates and geometry of callout object:

  & lt; P: spPr & gt; & Lt; A: xfrm & gt; & Lt; A: off x = "2819400" y = "5181600" /> // X, Y callout box status & lt; A: ext cx = "609600" cy = "457200" /> // width, height of callout box & lt; / A: xfrm & gt; & Lt; A: PriestGame Prix = "wedgeRectCallout" & gt; & Lt; A: avLst & gt; & Lt; A: gd name = "adj1" fmla = "val 257853" /> // Position of Tale & Lt; A: GD name = "Exx" "FMLA =" Vel-532360 "/> YY Tail of the lieutenant; A: avylast & gt; & lt; / a: prstGeom & gt; & lt; a: solidFill & Lt; a: schemeClr val = "accent1" & gt; & lt; a: alpha val = "50000" /> & lt; / a: schemeClr & gt; & lt; / a: solidFill & Gt; & lt; / p: spPr & gt;  

I have a problem, it is a formula to say that the tail should be placed in a particular coordinate on the slide. , But it does not work correctly.

  // This is the coordinate and I DistanceX = Coordinate.X - (Callout.X + Callout.X_Ext) / 2 Remote Y = coordinates. Y - (Callout. Y + Callout.Y_Ext) / 2  

But, the geometrical value is not the distance between two points.

Does anyone know what the formula is for calculating?

< Div class = "post-text" itemprop = "text">

I think I have detected the formula:

  DistanceX = Coordinate.X - (callout.x + ( Callout.x_ext / 2)) DistanceY = Coordinate.Y - (callout.i + (callout.Y_Ext / 2)) TailX = (distanceX / CO Lite.x_ext) * 100000 Deliveries = (Remote / Callout. Y_ext) * 100000  

No comments:

Post a Comment