超长白色过膝长靴学生:JSP绘图

来源:百度文库 编辑:九乡新闻网 时间:2024/10/02 17:54:50
...绘图指令分类:(一)常见形状1.矩形类 //rotation是以度为单位的旋转角度Rect(x ,y, width, height, rotation) //矩形Oval(x ,y, width, height, rotation) //椭圆RoundRect(x ,y, width, height, arcWidth, arcHeight, rotation)2.弧形类Arc(x ,y, width, height, startAngle, arcAngle, rotation) //弧形Pie(x ,y, width, height, startAngle, arcAngle, rotation) //饼图3.多边形类Polygon(nPoints, x1, y1, x2, y2, [x3, y3, ....], rotation) //闭合Polyline(nPoints, x1, y1, x2, y2, [xn, yn, ....], rotation) //不闭合(二)效果函数1.线条效果SetLineColor(r, g, b) //设置画线颜色SetLineStyle(style) //style=(1:实线;2:虚线;0:隐藏)2.填充效果SetFillColor(r, g, b, backr, backg, backb)SetFillStyle(style) //style=(1:实心;2:透明;3:-;4:|;5:\;6:/;7:+;8:x)(三)文字输出函数SetFont('字体',width,height,r,g,b) //设置字体Text('要输出的文字内容', x,y,z) //输出文字控制函数 //定义后在里使用。引用格式:DirectDraw.FunctionName()rotate(x-rotation, y-rotation, z-rotation) //旋转scale(x-scale,y-scale,z-scale) //缩放translate(x-coordinate,y-coordinate,z-coordinate) //平移setIdentity() //复原clear() //清除,清除后无法恢复!