网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
对于drawImage(image,x,y,width,height,this)方法解释正确的是()。

A.image是要绘制的图像

B.x,y是表示图像的中心的位置

C.width是源图像的宽度

D.this是容器


参考答案

更多 “ 对于drawImage(image,x,y,width,height,this)方法解释正确的是()。 A.image是要绘制的图像B.x,y是表示图像的中心的位置C.width是源图像的宽度D.this是容器 ” 相关考题
考题 以下程序段,图形框运行后的效果为( )PrivateSubImage1_Click()Image1.Move(Form1.ScaleWidth-Image1.Width)\2,(Form1.ScaleHeight-Image1.Height)\2,Image1.Width\2,Image1.Height\2EndSubA.单击图形框,移动图形框起始点到窗体中心位置,图形大小不改变B.单击图形框,移动图形框起始点到窗体中心位置,图形宽度改变为原来1/4C.单击图形框,移动图形框起始点到窗体中心位置,图形宽度改变为原来1/2D.以上说法都不正确

考题 下面是一个Applet程序,程序的功能输出一个彩色窗体。请改正程序中的错误(有下划线的语句),使程序能输出正确结果。注意:不改动程序的结构,不得增行或删行。程序的输出结果为:import java.awt.*;import java.awt.image.*;import java.applet.Applet;public class MemoryImage extends Applet{Image IMG nClick=over(this) title=放大;public void init(){Dimension d=getSize();int w=d.width,h=d.height;int pix[ ]=new int[w*h];int index=0;for(int y=0;y<h;y++)for(int x=0;x<w;x++){int red=(x|y)0xff;int green=(x*2|y*2)0xff;int blue=(x*4|y*4)0xff;pix[index++]=(255<<24)|(red<<16)|(green<<8)|blue;}IMG nClick=over(this) title=放大=createImage(new FilteredImageSource(w,h,pix, 0,w));}public void paint(Graphics g){g.drawImage(IMG nClick=over(this) title=放大, 0,0,super);}}ex36_3.html:<html><head><title>A Simple Program</title></head><body><applet code=" MemoryImage.class" width=800 height=400></applet></body></html>

考题 在CSS语言中下列哪一项是"列表样式图象"的语法()。A.width:B.height:C.white-space:D.list-style-image:

考题 下面是一个Apple(程序,其功能是播放动画。要求根据给出的3幅图片设计1个动画。请改正程序中的错误(有下划线的语句),使程序能输出正确的结果。注意:不改动程序的结构,不得增行或删行。程序运行结果如下:import java.awt.*;import java.applet.*;import java.awt.image.*;/*<applet code="ex24_3.class" width=800 height=400 ></applet>*/public class ex24_3 extends Applet implements Runnable {Image[] images=new Image[4];Image image;int IMG nClick=over(this) title=放大Number=3;int currentImage=0;Thread thisThread;public void init(){for (int x=0;x<IMG nClick=over(this) title=放大Number;x++){images[x]= getImage(getCodeBase(),"IMG nClick=over(this) title=放大"+x+".gif");}image=images[0];}public void paint(Graphics g){g.drawImage(image[0],0,0,null);}public void update(Graphics g){paint(g);}public void start(){thisThread = new Thread(this);thisThread.start();}public void stop(){thisThread.stop();thisThread=null;}public void run(){while(true){currentImage++;currentImage=IMG nClick=over(this) title=放大Number;image=images[IMG nClick=over(this) title=放大Number];repaint();try{thisThread.sleep(100);}catch (Exception e){}}}}ex24_3, html<HTML><HEAD><TITLE>ex24_3</TITLE></HEAD><BODY><applet code="ex24_3.class" width=800 height=400 ></applet></BODY></HTML>

考题 getImage()方法与drawImage()方法都是Image对象的方法。() 此题为判断题(对,错)。

考题 下列选项的程序段中()实现的功能是:绘制多个圆,且当x轴坐标在180到220之间的范围内,不进行圆的绘制。A.for (y=20; y<=height; y+=a) { for (x=20; x<=width; x+=a) { if (x>=180x<220) { continue; } circle(x, y, d); } }#B.for (y=20; y<=height; y+=a) { for (x=20; x<=width; x+=a) { if (x>=180x<220) { break; } circle(x, y, d); } }#C.for (x=20; x<=width; x+=a) { for (y=20; y<=height; y+=a) { if (x>=180x<220) { continue; } circle(x, y, d); } }#D.for (x=20; x<=width

考题 使用embed元素在网页中嵌入一flash文件,flash控件的宽度和高度分别为窗口视图区域宽度和高度的一半,下面正确的选项为()。A.<embed src="mediawbxswsj.swf" width=50% height=50% type="application/x-shockwave-flash" />B.<embed href="mediawbxswsj.swf" width=50% height=50% type="application/x-shockwave-flash" />C.<embed src="mediawbxswsj.swf" width=50% height=50% />D.<embed href="mediawbxswsj.swf" width=50% height=50% />

考题 3、使用embed元素在网页中嵌入一flash文件,flash控件的宽度和高度分别为窗口视图区域宽度和高度的一半,下面正确的选项为()。A.embed src="media\wbxswsj.swf" width=50% height=50% type="application/x-shockwave-flash" /B.embed href="media\wbxswsj.swf" width=50% height=50% type="application/x-shockwave-flash" /C.embed src="media\wbxswsj.swf" width=50% height=50% /D.embed href="media\wbxswsj.swf" width=50% height=50% /

考题 补全toString方法,使其内容为“width=***,height=***”。 public class Rectangle{ private double width; private double height; public Rectangle(){} public Rectangle(double a, double b) { width=a;height=b; } public String toString(){ 代码 } }