> 반경(R)과 원호의 시작점(SP)과 끝점(EP)을 알고 있는데요. 물론 중심(X,Y)도 알고 있고요.
> 아시는분 꼭 답변부탁드립니다. 지금은 이상한 방법으로 적용하고 있는데 한번씩 그림이 이상하게 나와 가지고....
>
> 그럼 부탁드립니다. 다음에 또
>
>
TCanvas.Ellipse를 함 써보세요.
Draws the ellipse defined by a bounding rectangle on the canvas.
procedure Ellipse(X1, Y1, X2, Y2: Integer);
Description
Call Ellipse to draw a circle or ellipse on the canvas. The top left point of the bounding rectangle is at pixel coordinates (X1, Y1) and the bottom right point is at (X2, Y2). If the points of the rectangle form a square, a circle is drawn.
The ellipse is outlined using the value of Pen, and filled using the value of Brush.
Note: On Windows 95, the sums X1 + X2 and Y1 + Y2 cannot exceed 32768. Also, the sum X1 + X2 + Y1 + Y2 cannot exceed 32768.
반경과 시작점, 끝점을 알고 있다면 이 방식이 젤 변할 것 같은디...쩝... 도움이 되었기를...
> 안녕하세요.
>
> 델파이에서 원을 그리고 싶은데 어떻게 해야하지요.
>
> 반경(R)과 원호의 시작점(SP)과 끝점(EP)을 알고 있는데요. 물론 중심(X,Y)도 알고 있고요.
> 아시는분 꼭 답변부탁드립니다. 지금은 이상한 방법으로 적용하고 있는데 한번씩 그림이 이상하게 나와 가지고....
>
> 그럼 부탁드립니다. 다음에 또
>
>
TCanvas.Ellipse를 함 써보세요.
Draws the ellipse defined by a bounding rectangle on the canvas.
procedure Ellipse(X1, Y1, X2, Y2: Integer);
Description
Call Ellipse to draw a circle or ellipse on the canvas. The top left point of the bounding rectangle is at pixel coordinates (X1, Y1) and the bottom right point is at (X2, Y2). If the points of the rectangle form a square, a circle is drawn.
The ellipse is outlined using the value of Pen, and filled using the value of Brush.
Note: On Windows 95, the sums X1 + X2 and Y1 + Y2 cannot exceed 32768. Also, the sum X1 + X2 + Y1 + Y2 cannot exceed 32768.
반경과 시작점, 끝점을 알고 있다면 이 방식이 젤 변할 것 같은디...쩝... 도움이 되었기를...