Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Question About Background Image Options (Read 1959 times)
benm
YaBB Newbies
*
Offline


I <3 MindFusion

Posts: 32
Location: CA
Joined: Dec 10th, 2008
Question About Background Image Options
Nov 17th, 2009 at 8:22am
Print Post  
I have two quick questions about the background image property.

1)  Currently there are "fit" and "stretch" options and it looks like the first option force the image to fit to the diagram width.  Is there a way to make it fit to the height instead?

2)  Is there a way to adjust the background image opacity?

Thanks,
Ben
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Question About Background Image Options
Reply #1 - Nov 17th, 2009 at 11:14am
Print Post  
Hi Ben,

1) The Fit option fits either the width or height, depending on the width/height ratios of the diagram and the image.

2) There isn't. Instead, you might add an Image control as a node via a DiagramNodeAdapter, set the control's Opacity property, set its ZIndex = 0 and Locked = true.

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


I <3 MindFusion

Posts: 32
Location: CA
Joined: Dec 10th, 2008
Re: Question About Background Image Options
Reply #2 - Nov 17th, 2009 at 7:27pm
Print Post  
That's a clever solution! However, is there an easy way to make this background node not affected by the diagram.Arrange() command?

Edit: Ah, I just realized that there is an overload of that method to define only the items that you want to arrange.
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Question About Background Image Options
Reply #3 - Nov 18th, 2009 at 7:33am
Print Post  
It should be easier to set the background node's IgnoreLayout property, instead of specifying all other items ...

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


I <3 MindFusion

Posts: 32
Location: CA
Joined: Dec 10th, 2008
Re: Question About Background Image Options
Reply #4 - Nov 18th, 2009 at 7:53am
Print Post  
Perfect!  Thanks again for the solution.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint