[Gtk-sharp-list] CanvasLine
Glenn Pierce
glennpierce@connectfree.co.uk
14 Apr 2003 22:19:34 +0100
--=-hsgRfoVRY4kO9+XKQN6X
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Sorry if this has been answered already, I have search the archives but
found little.
Are there any examples of how to get draw lines onto a canvas the code I
have does not display the line.
Canvas canvas = new Canvas();
CanvasLine item1 = new CanvasLine(canvas.Root());
double[] coords = {100,100,300,500};
item1.Points = CanvasPoints.New(coords);
item1.FillColor = "black";
item1.WidthPixels= 1;
item1.WidthUnits = 1.0;
item1.ArrowShapeA = 3.0;
Thanks for the help.
--
Glenn Pierce <glennpierce@connectfree.co.uk>
--=-hsgRfoVRY4kO9+XKQN6X
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/1.1.10">
</HEAD>
<BODY>
<BR>
Sorry if this has been answered already, I have search the archives but found little.<BR>
<BR>
Are there any examples of how to get draw lines onto a canvas the code I have does not display the line.<BR>
<BR>
<BR>
Canvas canvas = new Canvas();<BR>
CanvasLine item1 = new CanvasLine(canvas.Root());<BR>
double[] coords = {100,100,300,500};<BR>
<BR>
item1.Points = CanvasPoints.New(coords);<BR>
item1.FillColor = "black";<BR>
item1.WidthPixels= 1;<BR>
item1.WidthUnits = 1.0;<BR>
item1.ArrowShapeA = 3.0;<BR>
<BR>
<BR>
Thanks for the help.<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
Glenn Pierce <<A HREF="mailto:glennpierce@connectfree.co.uk">glennpierce@connectfree.co.uk</A>>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
--=-hsgRfoVRY4kO9+XKQN6X--