public boolean drawImage(Image img,AffineTransform xform,ImageObserver obs){
  if (img == null) {
    return true;
  }
  boolean result;
  int srcWidth=img.getWidth(null);
  int srcHeight=img.getHeight(null);
  if (srcWidth < 0 || srcHeight < 0) {
    result=false;
  }
 else {
    result=drawImageToPlatform(img,xform,null,0,0,srcWidth,srcHeight,false);
  }
  return result;
}

public boolean drawImage ( Image img , AffineTransform xform , ImageObserver obs ) { if ( img == null ) { return true ; } boolean result ; int srcWidth = img . getWidth ( null ) ; int srcHeight = img . getHeight ( null ) ; if ( srcWidth < 0 || srcHeight < 0 ) { result = false ; } else { result = drawImageToPlatform ( img , xform , null , 0 , 0 , srcWidth , srcHeight , false ) ; } return result ; }
draws an image , applying a transform from image space into user space before drawing . the transformation from user space into device space is done with the current transform in the graphics2d . the given transformation is applied to the image before the transform attribute in the graphics2d state is applied . the rendering attributes applied include the clip , transform , and composite attributes . note that the result is undefined , if the given transform is noninvertible .
