Creates a line passing through two points.
Syntax: |
---|
FWiz2DImage.DrawLine(p1, p2) |
Parameters
Return Value
If an error occurs it returns false otherwise it returns true.
Example
Copy code | |
---|---|
function OnBuild2DImage()
{
var ctx = FWiz.Get2DImageCtx();
var style = FWiz.GetPenStyle(0);
style.SetStyle("Marker pen blue");
ctx.SetPenStyle(0);
ctx.DrawLine(new DlxPoint(-20, -20), new DlxPoint(20, 20));
}
|