Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
cpav  
#1 Posted : Monday, August 25, 2008 6:04:38 PM(UTC)
cpav

Rank: Advanced Member

Groups: Member
Joined: 12/17/2007(UTC)
Posts: 49

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  
#2 Posted : Tuesday, August 26, 2008 9:27:18 AM(UTC)
tcrosbie

Rank: Advanced Member

Groups: Member
Joined: 6/22/2008(UTC)
Posts: 27

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  
#3 Posted : Tuesday, August 26, 2008 3:30:38 PM(UTC)
cpav

Rank: Advanced Member

Groups: Member
Joined: 12/17/2007(UTC)
Posts: 49

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  
#4 Posted : Tuesday, August 26, 2008 3:54:12 PM(UTC)
cpav

Rank: Advanced Member

Groups: Member
Joined: 12/17/2007(UTC)
Posts: 49

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  
#5 Posted : Sunday, August 31, 2008 7:13:03 PM(UTC)
Alex Kon

Rank: Advanced Member

Groups: Member
Joined: 1/31/2005(UTC)
Posts: 458

Was thanked: 5 time(s) in 5 post(s)
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?

Users browsing this topic
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.