自己画个圆试试
如:
var
I,R,x,y:integer;
begin
for I:=0 to 2*31416 do
begin
x:=Round(30+R*cos(I/10000));
Y:=Round(30-R*sin(I/10000));
Image1.canvas.Pixels[x,y]:=clred;
end;
end;
如:
var
I,R,x,y:integer;
begin
for I:=0 to 2*31416 do
begin
x:=Round(30+R*cos(I/10000));
Y:=Round(30-R*sin(I/10000));
Image1.canvas.Pixels[x,y]:=clred;
end;
end;
解决方案 »
- 请教,如果将一个exe嵌入到我的程序里?
- 怎样用tidhttp获取http://m.iask.com/g?k=%B0%A2%B6%C5的页面信息
- 急:如何通过查询,将数据表中的记录为数字的列转化为相应的文字,于DBGrid中显示
- 紧急求助,关于构件的制作
- 请问DELPHI怎么做文字特效???像FLASH里面那些特效,比如:旋转、走马灯等等……?????????
- ¥¥¥¥¥¥ 200分 请大家讨论! ¥¥¥¥¥
- 请问如何获得一个MSSQL的所有数据库名???
- socket问题!(在线等待,马上给分!)
- 如何读取数据库的字段名???急,在线等待
- 如何解决WPTools v6.29安装时出现的错误
- 如何得到一个文件目录的大小?
- 各位高手帮帮忙吧
canvas.rectangle(): 画矩形 pen.color: 定义画笔颜色
roundrect(): 画圆角矩形 pen.width: 定义画笔宽度
arc(): 画弧线( 不填充) brush.color: 定义填充颜色
chord(): 画弧线( 填充) textout(): 在固定位置输出字符串
pie: 画扇形 textwidth: 取字符串高度
polygon(): 画多边形填充 textheight: 取字符串宽度
polyline(): 多点连线( 不填充) font.color: 指定字体颜色
Pixels(): 指定固定象素点颜色值font.size: 指定字体大小
moveto(): 指明画线起点 Ellipse(): 画圆或椭圆
lineto(): 指明画线终点
(表达能力有限。见凉!:-))
image1.Transparent:=true;
image1.Canvas.MoveTo(0,0);
image1.Canvas.lineTo(100,100);
begin
brush.Style:=bsClear;
pen.color:=clred;
Ellipse(0,0,100,100)
end;
刚试过,没问题,拿分来!!!!