设置pen的width好像不行,我把代码贴出来帮我看下啊
procedure ternary_phase_diagram(form:Tform;image:Timage;L,T,W:integer;
a,b,c:array of real;n:integer);
var
i:integer;
begin
image.Parent:=form;
image.Left:=L;
image.Top:=T;
image.Height:=W;
image.Width:=W;
image.Canvas.Polyline([point(0,W-10),point(W-10,W-10)]);
image.Canvas.Polyline([point(0,W-10),point(round((W-10)/2),round((W-10)-(W-10)*sin(pi/3)))]);
image.Canvas.Polyline([point(round((W-10)/2),round((W-10)-(W-10)*sin(pi/3))),point((W-10),(W-10))]);
[red]image.Canvas.pen.width:=3;[/red]//我要在这里加,但下面一句没有粗点出现
for i:=0 to n-1 do
image.Canvas.Pixels[round((W-10)*(b+c*sin(pi/6))),round((W-10)*(1-c*sin(pi/3)))]:=clred;
end;