Transform and draw the butterfly

Listing 9 applies the composite transform to the butterfly image

Listing 9. Transform and draw the butterfly image.
    Graphics2D g2 = (Graphics2D)display.getGraphics();
    g2.drawImage(butterfly.getImage(),
                 translateTransform,
                 null);

  }//end rotatePicture

}//end class Prob10Runner
File: bq.htm [Next] [Prev]