This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Get path of ImageVObject in Multilayerviewer

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?

    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)

        'Get the currently selected object
        Dim vobject As Aurigma.GraphicsMill.WinControls.IControlPointsProvider = CType(vIndex, _
        Aurigma.GraphicsMill.WinControls.IControlPointsProvider)

        'Get path
        Dim vPath As Aurigma.GraphicsMill.WinControls.PathVObject = CType(vIndex, Aurigma.GraphicsMill.WinControls.PathVObject)

    End Sub


Thanks in advanced.
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.
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.
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?