在图像含有大量文字的图片(文本属性已丢失)的情况下,通常使用图像大小的重定图像像素时,应选择()。
A.两次立方
B.两次线性
C.邻近
D.其他选项都不对
参考答案:C
下面是一个Applet程序,其功能是接收用户输入的两个整数,比较它们的大小,并在用户按下“比较大小”按钮后,将Applet中显示的“请先输入两个待比较的整数”,改为“两个整数中最大值是:x”,x是两个数中的最大值。请改正程序中的错误(有下划线的语句),使程序能输出正确的结果。 注意:不改动程序的结构,不得增行或删行。 import java. applet. *; import java. awt. * import java. awt. event. *; /* <applet code= LookForMax width= 800 height= 400> </applet> */ public class LookForMax extends Applet implements ActionListener Label result; TextField in1,in2 Button btn; int a=0,b=0,max=0; public void init() result=new Label( "请先输入两个待比较的整数");in1 = new TextField(5);in2 = new TextField (5)btn = new Button("比较大小");add(in1);add(in2)add(btn)add(result)btn. addActionListener(super)public void actionPerformed(ActionEvent e)a=Integer. parseInt(in1);b=Integer. parselnt(in2);if (a>b) max=a;else max=b;result . setText("两个数中最大值是: "+max); LookFormax. html;<html><head><title>A Simple Program</title></head><body> <applet code="LookForMax, class" width 800 height=400> </applet> </body> </html>
()可以让婴幼儿学习与人合作,学习听从指令,服从规则。
A.逛街
B.亲子游戏
C.体育运动
D.散步