Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to get a flipped contaienr with correct bounds? (Read 1394 times)
Homam
Junior Member
**
Offline


I Love MindFusion!

Posts: 67
Joined: Feb 7th, 2012
How to get a flipped contaienr with correct bounds?
Oct 8th, 2013 at 7:49am
Print Post  
I needed to build a horizontal container as the attached image. I found an easy way is to flip the built-in container that you provided using the following code:

Code (C++)
Select All
// On creating the container,
container.RotationAngle = -90;
container.Resize(200, 400);
container.Move(location.X + 100, location.Y - 100);
 



The problem is that when I get the bounds of this container, the diagram is giving the original bound not the flipped ones.

Any suggestion?
  

Capture_034.PNG (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to get a flipped contaienr with correct bounds?
Reply #1 - Oct 8th, 2013 at 9:17am
Print Post  
Instead of Bounds, call container.GetRotatedBounds().

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint