Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to enlarge small shape and get enlarged shape elements? (Read 5183 times)
Todkar
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 20
Joined: Jun 24th, 2013
How to enlarge small shape and get enlarged shape elements?
Jun 24th, 2013 at 12:31pm
Print Post  
Hi,

I have shape with elements; but the shape is in small size. I wish to enlarge the same shape, how could I do this?.

I tried this with shape designer, but I didn’t found the way to create the shape by pasting elements. You have to draw the shape. [Please correct me if I am wrong.]

Is there any easy way to enlarge the shape?

Thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to enlarge small shape and get enlarged shape elements?
Reply #1 - Jun 24th, 2013 at 1:45pm
Print Post  
Hi,

Set ShapeNode.Bounds to a larger rectangle, that will scale the geometric shapes you are seeing in ShapeDesigner to fill the entire rectangle. Or do you need to enlarge only some elements of a shape?

Stoyan
  
Back to top
 
IP Logged
 
Todkar
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 20
Joined: Jun 24th, 2013
Re: How to enlarge small shape and get enlarged shape elements?
Reply #2 - Jun 25th, 2013 at 5:47am
Print Post  
Hi,

Thanks for your reply,

find the attached screen shot, I hope you will get clear idea about What I wanted to do.

I want enlarge the elements of shapes. expecting easy way to do this. other wise I have to create new shapes. I have many shapes to enlarge. that's why I am looking for easy way to do this, so I can save my time.
  

Untitled_-_Paint_2013-06-25_11-14-19.jpg (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to enlarge small shape and get enlarged shape elements?
Reply #3 - Jun 25th, 2013 at 7:25am
Print Post  
Hi,

The coordinates you pass to the Shape constructor designate percentages of the node's Bounds rectangle, and not size in pixels. Later on, the percentages are mapped to the node's actual size. In your case the biggest coordinate is 20, so that's a fifth of the node size. To make that shape fill the entire node, multiply your current coordinates by 5:

Code
Select All
var innerShapeTemplate = new Shape(
	null,
	new ElementTemplate[]
	{
		new LineTemplate(25, 90, 25, 60),
		new LineTemplate(25, 60, 35, 50),
		new LineTemplate(35, 50, 60, 50),
		new LineTemplate(60, 50, 50, 60),
		new LineTemplate(50, 60, 40, 60),
		new LineTemplate(40, 60, 90, 60),
		new LineTemplate(90, 60, 85, 70),
		new LineTemplate(85, 70, 50, 70),
		new LineTemplate(85, 70, 80, 80),
		new LineTemplate(80, 80, 50, 80),
		new LineTemplate(80, 80, 75, 90),
		new LineTemplate(75, 90, 50, 90),
		new LineTemplate(75, 90, 70, 100),
		new LineTemplate(70, 100, 35, 100),
		new LineTemplate(35, 100, 25, 90)
	},
	null, FillRule.Nonzero, "ManualTask"); 



You can also make the icons in the NodeListview larger by assigning larger rectangles to nodes' Bounds. However you still need to specify your shapes as percentage in 0..100 range, so that once the user drops nodes on the canvas and start resizing them, the shapes fill the node frames fully.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Todkar
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 20
Joined: Jun 24th, 2013
Re: How to enlarge small shape and get enlarged shape elements?
Reply #4 - Jun 25th, 2013 at 11:18am
Print Post  
Thanks a lot, it works straight a way. Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint