Rank: Advanced Member
Groups: Guest
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?
|
|
|
|
Rank: Advanced Member
Groups: Guest
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.
|
|
|
|
Rank: Advanced Member
Groups: Guest
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):
|
|
|
|
Rank: Advanced Member
Groups: Guest
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 ....
|
|
|
|
Rank: Advanced Member
Groups: Guest
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? |
|
|
|
|
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.