旋转 RotateTransform
Angle 角度
CenterY ,CenterX 中心点位置
和缩小一样 左侧 和右侧 做了对比
-
<StackPanel Orientation="Horizontal">
-
<Image Source="Image/Dog.jpg" Width="200" Height="200">
-
<Image.RenderTransform>
-
<RotateTransform Angle="45"></RotateTransform>
-
</Image.RenderTransform>
-
</Image>
-
<Grid>
-
<Image Source="Image/Dog.jpg" Width="200" Height="200" Opacity="0.4">
-
<Image.RenderTransform>
-
<RotateTransform Angle="45"></RotateTransform>
-
</Image.RenderTransform>
-
</Image>
-
<Image Source="Image/Dog.jpg" Width="200" Height="200">
-
<Image.RenderTransform>
-
<RotateTransform CenterX="100" CenterY="100" Angle="45"></RotateTransform>
-
</Image.RenderTransform>
-
</Image>
-
</Grid>
-
</StackPanel>
-
</Grid>