title: How to resize and rotate an image
body: <p>i want to rotate an image and in next level i want to resize it plese
  help me.
  i create a  class that extended from JPanel and override  paintComponent() method
  for drawing image.</p>
  
  <pre><code>public class NewJPanel extends javax.swing.JPanel {
  
  /** Creates new form NewJPanel */
  public NewJPanel() {
      initComponents();
  }
  
  @Override
  protected void paintComponent(Graphics g) {
      super.paintComponent(g);
      g.drawImage(image, 20, 20, this);
  }
  </code></pre>