how to calculate the rotation value for the MS Office Powerpoint Shapes from the xml data given

空扰寡人 提交于 2019-12-06 08:09:48

问题


I want to get the proper rotation value to draw the shape of the MS office Powerpoint 2007 file from the given OOXML data as below :

<p:sp>
            <p:nvSpPr>
                <p:cNvPr id="3" name="Rectangle 66" />
                <p:cNvSpPr>
                    <a:spLocks noChangeArrowheads="1" />
                </p:cNvSpPr>
                <p:nvPr />
            </p:nvSpPr>
            <p:spPr bwMode="auto">
                ***<a:xfrm rot="5400000">***
                    <a:off x="2443049" y="-1042472" />
                    <a:ext cx="304800" cy="4419600" />
                </a:xfrm>
                <a:prstGeom prst="rect">
                    <a:avLst />
                </a:prstGeom>
                <a:ln>
                    <a:headEnd />
                    <a:tailEnd />
                </a:ln>
            </p:spPr>

The value of rotation is given as "xfrm rot = 5400000". Considering this, its proper value has to be calculated and accordingly the height and width of the shape has to handled to draw the shape.


回答1:


Divide it by 60000 to get the rotation angle. In this case, 5400000/60000=90 degrees. It is an in-place rotation, meaning it rotates on Center X and Center Y.



来源:https://stackoverflow.com/questions/12085076/how-to-calculate-the-rotation-value-for-the-ms-office-powerpoint-shapes-from-the

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!