Esempio n. 1
0
 private static void flipVertical(ref Color32[] data, int width, int height)
 {
     for (int i = 0; i < width; i++)
     {
         for (int lo = 0, hi = height - 1; lo < hi; lo++, hi--)
         {
             PixelTraceryTexture2DExtension.Swap(ref data[lo * width + i], ref data[hi * width + i]);
         }
     }
 }
Esempio n. 2
0
 private static void flipHorizontal(ref Color32[] data, int width, int height)
 {
     for (int i = 0; i < height; i++)
     {
         for (int lo = 0, hi = width - 1; lo < hi; lo++, hi--)
         {
             PixelTraceryTexture2DExtension.Swap(ref data[i * width + lo], ref data[i * width + hi]);
         }
     }
 }