Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Scaling ShapeNode Images In ImageMap Mode (Read 4390 times)
Eric Johnson
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: May 9th, 2016
Scaling ShapeNode Images In ImageMap Mode
May 9th, 2016 at 12:04pm
Print Post  
We are using an older version of NetDiagram (3.1) and would simply like to switch from JavaApplet mode to ImageMap mode. For the most part, everything works fine in ImageMap mode for us except when there is an image attached to a ShapeNode - the image doesn't scale when you change the ZoomFactor. Is this just not possible with ImageMap mode? Or, is it because the version of NetDiagram we are using doesn't support it? I've attached images at 100% and 50% zoom to illustrate the issue.

Thanks
  

diagram_100_zoom.PNG ( 126 KB | 142 Downloads )
diagram_100_zoom.PNG
diagram_50_zoom.PNG ( 59 KB | 139 Downloads )
diagram_50_zoom.PNG
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: Scaling ShapeNode Images In ImageMap Mode
Reply #1 - May 9th, 2016 at 7:20pm
Print Post  
Try assigning instance of this class to DiagramView.Diagram as a work-around -

Code
Select All
// work-around for non-stretching ImageAlign values
class MyDiagram : Diagram
{
	public override void Draw(
		IGraphics graphics,
		RenderOptions options,
		RectangleF clipRect,
		bool noModifiedItems)
	{
		options.Scale = 100 * graphics.Transform.Elements[0];
		base.Draw(graphics, options, clipRect, noModifiedItems);
	}
} 



Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Eric Johnson
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: May 9th, 2016
Re: Scaling ShapeNode Images In ImageMap Mode
Reply #2 - May 10th, 2016 at 5:29pm
Print Post  
Slavcho,

Thanks for your help with this, but unless I'm missing something here the DiagramView.Diagram property is read-only. How can the override you've provided be applied in that case?

-Eric
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: Scaling ShapeNode Images In ImageMap Mode
Reply #3 - May 11th, 2016 at 8:31am
Print Post  
The oldest version I have is 5.0 (it's already 4-5 years old) and it lets me assign to the Diagram property. I'll try to find 3.1 in our archives to see if you can set the diagram in some way there.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: Scaling ShapeNode Images In ImageMap Mode
Reply #4 - May 12th, 2016 at 1:41pm
Print Post  
We've found 3.1 code and fixed this there, please find new build on the personal messages page. We've also made Diagram settable, just in case. This is a one-time service, if you expect you'll need more help for the switch please renew your maintenance. That will also get you latest version and you could switch to the newer HTML5 Canvas mode then.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Eric Johnson
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: May 9th, 2016
Re: Scaling ShapeNode Images In ImageMap Mode
Reply #5 - May 12th, 2016 at 6:15pm
Print Post  
Slavcho,

That did the trick - thank you. This goes well beyond any customer support I've seen before and I will remember it.

-Eric
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint