I've set up a function to return an potentially transformed (X flipped) image to a drawing class, but I am finding the image flipped every frame. The code i'm using is:
Public Function getImage() As Image Dim returnedImage As Image Select Case pictureCounter Case 1 returnedImage = pic1 Case 2 returnedImage = pic2 Case 3 returnedImage = pic3 Case 4 returnedImage = pic4 Case 5 returnedImage = pic5 Case 6 returnedImage = pic6 Case 7 returnedImage = pic7 Case 8 returnedImage = pic8 Case 9 returnedImage = pic9 Case Else returnedImage = pic1 End Select Call returnedImage.RotateFlip(transform) Return returnedImage returnedImage.Dispose() End Function
If transform = RotateFlipType.RotateNoneFlipX then it looks like the image is having a fit. I figure its flipping X, then back again each time its called, but I don't understand how - since the transform is not being applied to the source images. Can anyone explain why this would be happening?
Thanks in advance