Welcome Guest Search | Active Topics | Members

Rotate Vobject while rotating image? Options
cpav
Posted: Tuesday, August 26, 2008 2:04:38 AM
Rank: Advanced Member
Groups: Member

Joined: 12/18/2007
Posts: 49
Points: 50
Hi, i have an image loaded in a bitmalViewerControl. After loading i add some Vbjects(default or inheritable Vobjects). After a while i rotate the image 90 degrees, but the Vobjects are not rotating at all.

How to make also the Vobjects(or maybe the current layer????) to rotate the way that image rotates?
tcrosbie
Posted: Tuesday, August 26, 2008 5:27:18 PM
Rank: Advanced Member
Groups: Member

Joined: 6/22/2008
Posts: 11
Points: 33
Are you doing this programatically? Or via the UI?

If programatically, call the .Update() function of the vObject after the rotate, this should force the object to display correctly.
cpav
Posted: Tuesday, August 26, 2008 11:30:38 PM
Rank: Advanced Member
Groups: Member

Joined: 12/18/2007
Posts: 49
Points: 50
Yes i want to rotate it programatically. But, this is not working with update. I have this code after rotating the image:

Code:
If VObjectsRubberband1.Layers(0).VObjects.Count > 0 Then
                        For i = 0 To VObjectsRubberband1.Layers(0).VObjects.Count - 1
                            VObjectsRubberband1.Layers(0).VObjects.Item(i).Update()
                        Next
                    End If

Anyway to give you a better example, i attach 2 images(before-after rotation)


cpav attached the following image(s):
beforeRotation.jpg
afterRotation.jpg

cpav
Posted: Tuesday, August 26, 2008 11:54:12 PM
Rank: Advanced Member
Groups: Member

Joined: 12/18/2007
Posts: 49
Points: 50
Well, i also used this:

Code:
VObjectsRubberband1.Layers(0).VObjects.Item(i).Transform.Rotate(90)
                        VObjectsRubberband1.Layers(0).VObjects.Item(i).Update()


But still no result ....
Alex Kon
Posted: Monday, September 01, 2008 3:13:03 AM
Rank: Advanced Member
Groups: Administration , Member

Joined: 1/31/2005
Posts: 388
Points: 409
Hi,

Its strange, because I just tried the same code:
Code:
foreach (VObject obj in _mlv.CurrentLayer.VObjects)
{
      obj.Transform.Rotate(90);
      obj.Update();
}

And it works. Could you please create an support case and attach small demo project which illustrates the issue?



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.