title: Java : BufferedImage to Bitmap format
body: <p>I have a program in which i capture the screen using the code :</p>
  
  <pre><code>robot = new Robot();
  BufferedImage img = robot.createScreenCapture(new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()));
  </code></pre>
  
  <p>Now i want to convert this BufferedImage into Bitmap format and return it through a function for some other need, Not save it in a file. Any help please??</p>