Rank: Member
Groups: Guest
Joined: 11/5/2007(UTC) Posts: 10
|
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. Edited by user Tuesday, December 18, 2007 2:05:09 AM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 1/31/2005(UTC) Posts: 458
Was thanked: 5 time(s) in 5 post(s)
|
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. |
|
|
|
|
Rank: Member
Groups: Guest
Joined: 11/5/2007(UTC) Posts: 10
|
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: Guest
Joined: 1/31/2005(UTC) Posts: 458
Was thanked: 5 time(s) in 5 post(s)
|
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? |
|
|
|
|
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.