• 2022-05-31
    rect(x,y,width,height)中,参数x、y是矩形中心的x、y坐标
  • 举一反三

    内容

    • 0

      context.drawImage(________,x,y,width,height),横线处应为:______。

    • 1

      在HTML5中可以使用strokeRect()方法绘制带边框的矩形,语法结构为strokeRect(x, y, width, height),其中x和y规定了矩形( )的坐标位置。 A: 左上角 B: 右上角 C: 右下角 D: 左下角

    • 2

      下列选项中,关于“context.strokeRect(x,y,width,height);/” 语法参数的描述,正确的是()

    • 3

      在用设定工件坐标系加工不垂直角度孔系箱体时,要利用坐标系旋转公式进行计算,设点M在原坐标系中坐标为(x,y),在以坐标原点为中心旋转后的新坐标系中的坐标为(x′,y′),那么正确的坐标旋转公式是()。 A: X=x′cosα+y′SinαY=x′Sinα-y′cosα B: X=x′cosα-y′SinαY=x′Sinα+y′cosα C: X=x′cosα+y′SinαY=x′Sinα+y′cosα D: X=x′cosα+y′SinαY=x′Sinα+y′cos&alpha

    • 4

      Rectangle类中的成员变量有( )和( ) public class Rectangle{ int width; int height; public void setWidth(int x){ width = x; } public void setHeight(int y){ height = y; } public void show(){ System.out.println("宽:"+width",高:"+height); } }