It is better to create the flip images as an image list before using them.
Otherwise a 64x64 bit flip takes 3 seconds.
sprite = ImageList.LoadImage(Program.Directory + "\football-64x64.png")
xsize = ImageList.GetWidthOfImage(sprite)
ysize = ImageList.GetHeightOfImage(sprite)
mirror = LDImage.Copy(sprite)
For loop = 1 To 3
Program.Delay(500)
GraphicsWindow.DrawImage(sprite, 100, 100)
LDImage.OpenWorkingImage(mirror)
For y = 1 To ysize - 1
For x = 1 To xsize - 1
pixel = LDImage.GetPixel(sprite, x , y)
LDImage.SetWorkingImagePixel(mirror, xsize - x , y , pixel)
EndFor
EndFor
LDImage.CloseWorkingImage(mirror)
GraphicsWindow.DrawImage(mirror, 100, 100)
EndFor
For loop = 1 to 20
GraphicsWindow.DrawImage(sprite, 100, 100)
Program.Delay(150)
GraphicsWindow.DrawImage(mirror, 100, 100)
Program.Delay(150)
EndFor