public void SetPixels(int pbx, int pby, PixelBuffer pb)
 {
     //Buffer [(Height - 1 - y)*Width + x] = color;
     for (var y = 0; y < pb.Height; y++)
     {
         for (var x = 0; x < pb.Width; x++)
         {
             Buffer [(Height - 1 - (y + pby)) * Width + x + pbx] = pb.Get(x, y);
         }
     }
 }
Example #2
0
 public void SetPixels(int pbx, int pby, PixelBuffer pb)
 {
     //Buffer [(Height - 1 - y)*Width + x] = color;
     for (var y = 0; y < pb.Height; y++) {
         for (var x = 0; x < pb.Width; x++) {
             Buffer [(Height - 1 - (y+pby))*Width + x + pbx] = pb.Get (x, y);
         }
     }
 }