单项选择题

Import java.applet.Applet; Import java.awt*; 
Public class ImageDemo extends Applet{ 
Image img; 
Public void init(){ 
Img=getImage(getCodeBase(),”11.gif”);//1 } 
Public void paint(Graphics g){ Int w=img.getHeight(this);
 Int h=img.getHeight(this); 
g.drawImage(img,120,60,w/2,h/2,this);//2 
g. drawImage(img,150,0,w*2,h*2,this);//3 } 
}以上代码第()行将图像放大。 

A.1
B.2
C.3
D.代码并没有将图像放大