stefano1403#9080
(1) I add a LineVobject with this code:
//Create a line object
Aurigma.GraphicsMill.WinControls.LineVObject line = new
Aurigma.GraphicsMill.WinControls.LineVObject(X1, Y1,X2, Y2 );
//Modify stroke and fill parameters
line.Pen = new System.Drawing.Pen(System.Drawing.Color.Black, 2);
line.Brush = new System.Drawing.SolidBrush(System.Drawing.Color.Transparent);
//Add the rectangle to a layer
//vobj is VObjectsRubberband associated with the bitmapviewer
vobj.Layers[0].VObjects.Add(line);
(2) I move the object with the mouse and then i need new (x1,y1) and (x2,y2) coordinate:
-obj.GetVObjectBounds(); give me the original rectangle that contains the line
-obj.GetControlPointsBounds(); give me the new rectangle that contains the line
The question is that there is no a property such as Points (like in the PolylineVObject). How can i get the new line coordinate?
thank in advance
//Create a line object
Aurigma.GraphicsMill.WinControls.LineVObject line = new
Aurigma.GraphicsMill.WinControls.LineVObject(X1, Y1,X2, Y2 );
//Modify stroke and fill parameters
line.Pen = new System.Drawing.Pen(System.Drawing.Color.Black, 2);
line.Brush = new System.Drawing.SolidBrush(System.Drawing.Color.Transparent);
//Add the rectangle to a layer
//vobj is VObjectsRubberband associated with the bitmapviewer
vobj.Layers[0].VObjects.Add(line);
(2) I move the object with the mouse and then i need new (x1,y1) and (x2,y2) coordinate:
-obj.GetVObjectBounds(); give me the original rectangle that contains the line
-obj.GetControlPointsBounds(); give me the new rectangle that contains the line
The question is that there is no a property such as Points (like in the PolylineVObject). How can i get the new line coordinate?
thank in advance