这个函数可以得啊
drawImage(Image img,
 int dx1,int dy1, int dx2,   int dy2,int x1,  int sy1,  int sx2,
  int sy2,
 ImageObserver observer)

解决方案 »

  1.   

    to masterz
    书上没这样的函数呀!只有:
    drawImage(Image img,
    int dx1,int dy1, int width,int height,
    ImageObserver observer) 
      

  2.   

    drawImage(Image, int, int, int, int, int, int, int, int, ImageObserver) - Method in class java.awt.Graphics 
    Draws as much of the specified area of the specified image as is currently available, scaling it on the fly to fit inside the specified area of the destination drawable surface. 
    你用那个版本的jdk.
    以上是jdk1.3的api