|
|
Rank: Member Groups: Member
Joined: 11/6/2007 Posts: 10 Points: 15
|
Hi, Currently I want to get the path of ImageVObject from Multilayerviewer. Below is the code that I try to do for get the path when i click on multilayerviewer's object. I am using PathVObject to get the path, but when I click on a ImageVObject, the PathVObject cannot be used, any Idea on that? Code:
Private Sub MultiLayerViewer1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MultiLayerViewer1.Click
If MultiLayerViewer1.CurrentDesigner Is MultiLayerViewer1.DefaultDesigner Then Exit Sub
Dim vIndex As Aurigma.GraphicsMill.WinControls.VObject
vIndex = MultiLayerViewer1.CurrentDesigner.VObjects(0)
Dim vobject As Aurigma.GraphicsMill.WinControls.IControlPointsProvider = CType(vIndex, _
Aurigma.GraphicsMill.WinControls.IControlPointsProvider)
Dim vPath As Aurigma.GraphicsMill.WinControls.PathVObject = CType(vIndex, Aurigma.GraphicsMill.WinControls.PathVObject)
End Sub
Thanks in advanced.
|
|
Rank: Advanced Member Groups: Administration
, Member
Joined: 1/31/2005 Posts: 388 Points: 409
|
Hello,
Could you describe for what purposes do you intend to use PathVObject instance? Current implementation of the PathVObject doesn't provide access to the internal System.Drawing.Drawing2D.GraphicsPath variable. You should inherit your custom object from PathVObject class to get access to this protected property.
Could you describe your task in more detail? We will try to advice you appropriate way to implement it.
Best wishes, Alex.
|
|
Rank: Member Groups: Member
Joined: 11/6/2007 Posts: 10 Points: 15
|
Hi Alex, What I mean here is: when i click on ImageVObject in Multilayerviewer, it will show me the path / location of the image. I though the PathVObject has this kind of ability. Thanks.
|
|
Rank: Advanced Member Groups: Administration
, Member
Joined: 1/31/2005 Posts: 388 Points: 409
|
Hello,
Unfortunately it is not clear for me how you want path / location to be shown? Some highlight feature or something else? Or maybe could you send a screenshot image with demonstration of the desired effect?
Best wishes, Alex.
|
|
|
Guest |