Rotating and / or flipping images is a simple task for Gdi+. To see the different results possible, change the constant value in the parameter "RotateFlip" in the code below.
*-- RotateFlipType Constants
#define RotateNoneFlipNone 0
#define Rotate90FlipNone 1
#define Rotate180FlipNone 2
#define Rotate270FlipNone 3
#define RotateNoneFlipX 4
#define Rotate90FlipX 5
#define Rotate180FlipX 6
#define Rotate270FlipX 7
LOCAL lcSource, lcDestination
lcSource = GETPICT("jpg;gif;bmp")
LOCAL loImage AS GpImage OF ffc/_gdiplus.vcx
loImage = NEWOBJECT("GpImage",HOME()+"ffc/_gdiplus.vcx")
loImage.CreateFromFile(lcSource)
loImage.RotateFlip(Rotate180FlipNone) && Try changing using the constants above
loImage.SaveToFile("flipped.png","image/png")