classid="CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6"
style="positiion:absolute;top:0;left:0;width:320;height:200"
>
<param name="line0001" value="繪圖指令1">
<param name=&q " /> 国产成人精品亚洲线观看,青青青伊人色综合久久,欧美刺激性大交免费视频

色尼玛亚洲综合影院,亚洲3atv精品一区二区三区,麻豆freexxxx性91精品,欧美在线91

用js繪圖

<object id=DirectDraw
classid="CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6"
style="positiion:absolute;top:0;left:0;width:320;height:200"
>
<param name="line0001" value="繪圖指令1">
<param name="line0002" value="繪圖指令2">
...
</object>
繪圖指令分類:
(一)常見形狀
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) //輸出文字


控制函數 //定義<object>后在<script></script>里使用。
引用格式: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() //清除,清除后無法恢復!

jsp技術用js繪圖,轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 海伦市| 吉安市| 贞丰县| 南华县| 鹤岗市| 资中县| 奎屯市| 锦州市| 石家庄市| 孝义市| 长治县| 彭山县| 丹寨县| 闻喜县| 惠州市| 思南县| 克拉玛依市| 大足县| 白水县| 阿城市| 疏附县| 九龙城区| 铜川市| 城固县| 长汀县| 阿荣旗| 阿勒泰市| 绵阳市| 冀州市| 阿克苏市| 余庆县| 大城县| 界首市| 靖西县| 合作市| 定州市| 循化| 林州市| 娄底市| 县级市| 名山县|