0

I have a ppm file and I figured out how to mirror the image from the middle but I can't figure out how to horizontally flip it. this is the code for the mirror function:

{R[x][y]=R[WIDTH-x][y]; G[x][y]=G[WIDTH-x][y]; B[x][y]=B[WIDTH-x][y];}}

the horizontal flip function should look almost the same as above. but achieve a flipped image.

1 Answers1

0

Use System.Drawing.Bitmap

  • GetPixel()
  • SetPixel()

The MSDN Documentation for System.Drawing.Bitmap

Maz
  • 3,375
  • 1
  • 22
  • 27