how to twist a image in the code behind csharp

Code Example - how to twist a image in the code behind csharp

                
                        RotateTransform rt = new RotateTransform();
rt.Angle = 30;
myImage.RenderTransform = rt;