对于窗口商店应用,在xaml中顺时针和逆时针旋转图像?

时间:2014-05-16 21:51:25

标签: c# xaml windows-store-apps

我想使用c#为我在xaml尝试的Windows 8.1 app旋转图像

<Image Width="200" Height="50" Fill="Yellow" Source="a.png"/>          
    <!-- Rectangle with 45 degrees rotation -->
    <Image Width="200" Height="50" Fill="Blue" Opacity="0.5">
        <Rectangle.RenderTransform>
            <RotateTransform CenterX="0" Source="a.png" CenterY="0" Angle="45" />
        </Rectangle.RenderTransform>
    </Image >

我正在动态创建一个图像。现在我想从同一时间点旋转那个时钟和反时钟我是怎么做的?

0 个答案:

没有答案