WPF finishing papers rotation RotateTransForm

Original: WPF finishing papers rotation RotateTransForm

Rotating RotateTransform

Angle angle 

CenterY, CenterX center point

And reduce the left and right as do a comparison

 


  
  
  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>

 

Guess you like

Origin www.cnblogs.com/lonelyxmas/p/12075521.html