martes, 12 de mayo de 2009

GRAFICOS EN DELPHI

begin
canvas.Pen.Color:=clgreen;
canvas.MoveTo(100,100);
canvas.LineTo(200,200);

canvas.Pen.Color:=clyellow;
Canvas.Brush.Color := clblue;
Canvas.Brush.Style := bsDiagCross;
Canvas.Ellipse(0, 0, Image1.Width, Image1.Height);
end;


begin
canvas.Pen.Color:=clyellow;
canvas.MoveTo(300,300);
canvas.LineTo(200,200);

end;
begin
Canvas.pen.Style:=pssolid;
canvas.Pen.Color:=clred;
Canvas.Brush.Color := clblue;
Canvas.Brush.style:=bsHorizontal ;

canvas.Polygon([point(400,400),point(400,500),point(500,500),point(500,500)]);
end;

begin
canvas.Pen.Color:=cllime;
Canvas.pen.Style:=psDashDotDot;
canvas.Arc(100,300,300,600,0,0,0,0);

end;
end;
end.

No hay comentarios:

Publicar un comentario