Welcome Guest Search | Active Topics | Members

Get path of ImageVObject in Multilayerviewer Options
unrecognize
Posted: Tuesday, December 18, 2007 12:38:16 AM
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)

        '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.
Alex Kon
Posted: Tuesday, December 18, 2007 11:18:58 PM
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.
unrecognize
Posted: Tuesday, December 18, 2007 11:36:26 PM
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.
Alex Kon
Posted: Tuesday, December 25, 2007 2:21:02 AM
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.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.