Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to set Image for the loaded diagram saved by Windows Forms application? (Read 3070 times)
Homam
Junior Member
**
Offline


I Love MindFusion!

Posts: 67
Joined: Feb 7th, 2012
How to set Image for the loaded diagram saved by Windows Forms application?
Jul 5th, 2014 at 8:00am
Print Post  
When I rendered a diagram saved in a Windows Forms application. Everything seems OK so far but the images on the nodes are not showing.

How to solve this?
Please check the attached snapshot .
  

0001.png (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to set Image for the loaded diagram saved by Windows Forms application?
Reply #1 - Jul 7th, 2014 at 5:10am
Print Post  
At this time you can use only the ImageUrl property of nodes in ASP.NET MVC version of the control. E.g. when setting Image in WinForms, also set ImageUrl to the image location as it would be accessible from your web site:

Code
Select All
node.Image = Image.FromFile("start.png");
node.ImageUrl = "images/start.png"; 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to set Image for the loaded diagram saved by Windows Forms application?
Reply #2 - Jul 8th, 2014 at 12:44pm
Print Post  
We have implemented support for ShapeNode.Image transfer from server to client, you can find a pre-release build on PM page. Now you should be able to load the images from WinForms files without modification. It's still better to use ImageUrl if possible - the base64 encoding necessary to transfer image data requires more processing time and larger data transfers.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint