WPF 精修篇 旋转 RotateTransForm

原文: WPF 精修篇 旋转 RotateTransForm

旋转 RotateTransform

Angle 角度 

CenterY ,CenterX  中心点位置

和缩小一样 左侧 和右侧 做了对比


  
  
  1. <StackPanel Orientation= "Horizontal">
  2. <Image Source= "Image/Dog.jpg" Width= "200" Height= "200">
  3. <Image.RenderTransform>
  4. <RotateTransform Angle= "45"></RotateTransform>
  5. </Image.RenderTransform>
  6. </Image>
  7. <Grid>
  8. <Image Source= "Image/Dog.jpg" Width= "200" Height= "200" Opacity= "0.4">
  9. <Image.RenderTransform>
  10. <RotateTransform Angle= "45"></RotateTransform>
  11. </Image.RenderTransform>
  12. </Image>
  13. <Image Source= "Image/Dog.jpg" Width= "200" Height= "200">
  14. <Image.RenderTransform>
  15. <RotateTransform CenterX= "100" CenterY= "100" Angle= "45"></RotateTransform>
  16. </Image.RenderTransform>
  17. </Image>
  18. </Grid>
  19. </StackPanel>
  20. </Grid>

猜你喜欢

转载自www.cnblogs.com/lonelyxmas/p/12075521.html