Rank: Member
Groups: Guest
Joined: 1/7/2008(UTC) Posts: 28
|
Hi, Is that possible to flip the text and image in horizontal and vertical in VObject? Please advice. Thanks.
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 1/31/2005(UTC) Posts: 458
Was thanked: 5 time(s) in 5 post(s)
|
Hello, Do you mean something like that? Code:vObject.Transform.Scale(-1, 1, MatrixOrder.Append); //horizontal flip
vObject.Transform.Scale(1, -1, MatrixOrder.Append); //vertical flip
|
|
|
|
|
Rank: Member
Groups: Guest
Joined: 1/7/2008(UTC) Posts: 28
|
Alex Kon wrote:Hello, Do you mean something like that? Code:vObject.Transform.Scale(-1, 1, MatrixOrder.Append); //horizontal flip
vObject.Transform.Scale(1, -1, MatrixOrder.Append); //vertical flip
Hi, I think this will only flip the image and not the text?
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 1/31/2005(UTC) Posts: 458
Was thanked: 5 time(s) in 5 post(s)
|
Hello, No, this will flip any object across vertical or horizontal axis - it is math which is common for all VObjects. Here is more detailed code for vertical flip: Code:
IVObject obj = _mlv.CurrentDesigner.VObjects[0];
RectangleF bounds = obj.GetTransformedVObjectBounds();
obj.Transform.Translate(-bounds.X, -bounds.Y, MatrixOrder.Append);
obj.Transform.Scale(-1, 1, MatrixOrder.Append);
obj.Transform.Translate(bounds.X + bounds.Width, bounds.Y, MatrixOrder.Append);
obj.Update();
|
|
|
|
|
Rank: Member
Groups: Guest
Joined: 1/7/2008(UTC) Posts: 28
|
|
|
|
|
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.