title: Dynamically Generate Transparent Tracking Pixel
body: <p>I'm trying to generate a clear tracking pixel dynamically in Java, but running into some issues. I have no problem returning this to the user, but I can't seem to get the pixel right. What am I doing wrong?</p>
  
  <p>This is what I have, which gives me a 1x1 white pixel. How do I make this as small as possible (file size) and make it transparent?</p>
  
  <pre><code>BufferedImage singlePixelImage = new BufferedImage(1, 1, BufferedImage.TYPE_BYTE_GRAY_TYPE);
  singlePixelImage.setRGB(0, 0, 0xFFFFFF);
  </code></pre>