怎样用delphi画弧线
解决方案 »
- ICS 中WSocket.connect的问题
- an embedded OLE object 与a linked OLE object的区别
- 有没有这样的grid 控件,可以容纳TEDIT等控件?
- 关于使用多个DBLookupCombox控件变慢的问题?!
- DBGrid选择多行问题求助!散100分~~~~~
- 大哥们~~求助~~
- 怎样知道两个日期之间差的天数
- DELPHI中怎么实现数据的批量打印(不使用报表)
- 关于ado的
- 怎样将Internet上的一个text.xml文件取到本地?
- 在百万条记录的表中,如何在0.5内定位到一条记录。(Access)
- 哪位能讲一下vcl的消息机制,专贴这方面得好文章、介绍好书也行!
procedure Arc(X, Y, W, H, Angle, AngleLength: Integer); overload;DescriptionUse Arc to draw an elliptically curved line with the current Pen. The arc traverses the perimeter of an ellipse that is bounded by the points (X1,Y1) and (X2,Y2). The arc is drawn following the perimeter of the ellipse, counterclockwise, from the starting point to the ending point. The starting point is defined by the intersection of the ellipse and a line defined by the center of the ellipse and (X3,Y3). The ending point is defined by the intersection of the ellipse and a line defined by the center of the ellipse and (X4, Y4).Use the second syntax to draw an arc defined by the rectangle (X,Y,W,H), the start angle Angle and the arc length AngleLength. The angles Angle and AngleLength are 1/16th of a degree. For example, a full circle equals 5760 (16*360). Positive values of Angle and AngleLength mean counter-clockwise while negative values mean clockwise direction. Zero degrees is at the 3'o clock position. Note: If you are developing a cross platform application and also targeting Windows 95, the sums X1 + X2 and Y1 + Y2 cannot exceed 32768. Also, the sum X1 + X2 + Y1 + Y2 cannot exceed 32768.
var
R: TRect;
begin
R := GetClientRect; {Gets the boundaries of the current window}
Canvas.Arc(R.Left, R.Top, R.Right, R.Bottom, R.Right, R.Top, R.Left, R.Top);
end;
y:=f(x);
可以画出y的函数图像
Canvas.Arc要用直线连接弧线首尾!
Canvas.Chord