旋转缩放的问题
<Rectangle Canvas.Top="50" Canvas.Left="240" Stroke="#505050" StrokeThickness="1" Width="80" Height="80"/>
<Rectangle Canvas.Top="50" Canvas.Left="240" Stroke="OrangeRed" StrokeThickness="3" Width="80" Height="80">
<Rectangle.RenderTransform>
<RotateTransform Angle="30" CenterX="40" CenterY="40"/>
</Rectangle.RenderTransform>
</Rectangle>
两个同样大小的正方形,下面一个旋转中的CenterX和CenterY是怎么来定义位置的?以什么为坐标物?
谢谢!
[解决办法]
以Rectangle的左上角为原点,偏移(CenterX, CenterY)的像素点