728x90
반응형
SMALL
원호그리기
-
Applet : 그래픽 사용 - 원호 그리기혼자서 공부하기/자바 2007. 3. 25. 17:55
애플릿에서 원이나 호를 그리기 위해서는 drawArc()와 fillArc()의 메소드를 사용하면 된다. 메소드 정의 drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) fillArct(int x, int y, int width, int height, int startAngle, int arcAngle) 매개변수 x, y : 사각형의 시작점의 x,y 좌표 width : 사각형의 가로 길이 height : 사각형의 세로 길이 startAngle : 시작 각도 arcAngle : 시작 각도를 기준으로 끝 각도