How to rotate 180FlipX of your image?

By James J

Rotate given image & save it to specific path...

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Try
            
Dim img1 As Image
            img1 = Image.FromFile("C:\2.gif")
            
img1.RotateFlip(RotateFlipType.Rotate180FlipX)
            
img1.Save("C:\2_Rotate180FlipX.Png", System.Drawing.Imaging.ImageFormat.Png)
        
Catch ex As Exception
             MessageBox.
Show(ex.ToString())
        
End Try
End Sub

How to rotate 180FlipX of your image?  (441 Views)