Welcome Guest Search | Active Topics | Members

TextVObject Rotate Options
ChingYen
Posted: Monday, June 09, 2008 7:17:33 AM
Rank: Advanced Member
Groups: Member

Joined: 3/3/2008
Posts: 47
Points: 141
Hi,

May I know how can I programmatically rotate the TextVobject by using the Center point? just like how we drag @ the corner.

This is the code I am using now. Seems like no luck.

Code:
4:              If TypeOf obj Is Aurigma.GraphicsMill.WinControls.TextVObject Then
5:                  Dim point As New PointF(obj.GetVObjectBounds.Width / 2, obj.GetVObjectBounds.Height / 2)
6:                  obj.Transform.RotateAt(90, point)
7:                  obj.Update()
8:              End If


Please advice.
Alex Kon
Posted: Tuesday, June 10, 2008 9:22:06 PM
Rank: Advanced Member
Groups: Administration , Member

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

I think that you should use this point as argument of the RotateAt(...) method:

Code:
Dim bounds As RectangleF = obj.GetTransformedVObjectBounds()
Dim point As New PointF( _
     bounds.X + bounds.Width / 2, _
     bounds.Y + bounds.Height / 2)



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.