|
|
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?
|
|
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.
|
|
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):


|
|
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 ....
|
|
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.
|
|
|
Guest |