js 로 그림 그리 기

classid="CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6" style="positiion:absolute;top:0;left:0;width:320;height:200">...그래 픽 명령 분류:(1)흔 한 모양 1.직사각형 류//rotation 은 도 단위 의 회전 각도 Rect(x,y,width,height,rotation)//직사각형 Oval(x,y,width,height,rotation)//타원 RoundRect(x,y,width,height,height,arcWidth,arcHeight,rotation)2.원호 형 아크(x,y,width,height,startAngle,arcAngle,rotation)//원호 형 파이(x,y,width,height,startAngle,arcAngle,rotation)//떡 그림 3.다각형 다각형 다각형 다각형 다각형(n Points,x1,y1,x2,y2,[x3,y3,...],회전)//폐 합 폴리 라인(n Points,x1,y1,x2,y2,[xn,yn,...],rotation)//닫 히 지 않 음(2)효과 함수 1.라인 효과 SetLine Color(r,g,b)//밑줄 색상 설정 SetLine Style(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)(3)문자 출력 함수 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()///제거,제거 후 복구 할 수 없습니다!

좋은 웹페이지 즐겨찾기