title: Processing mirror image over x axis?
body: <p>I was able to copy the image to the location but not able to mirror it. what am i missing? </p>
  
  <pre><code>PImage img; 
  float srcY;
  float srcX;
  int destX;
  int destY;
  
  img = loadImage("http://oldpalmgolfclub.com/wp-content/uploads/2012/02/Palm- Beach-State-College2-e1329949470871.jpg");
  
  size(img.width, img.height * 2);
  
  image(img, 0, 0);
  image(img, 0, 330);
  
  int num_pixels = img.width * img.height;
  
  int copiedWidth = 319 - 254;
  int copiedHeight = 85 - 22;
  int startX = (width / 2) - (copiedWidth / 2);
  int startY = (height / 2) - (copiedHeight / 2);
  </code></pre>