Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Insert Image (Read 2725 times)
jgreen
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 27
Joined: Aug 12th, 2010
Insert Image
Aug 16th, 2010 at 8:01pm
Print Post  
Is there a way to allow users to insert images into the diagram they create?  (ie: their logo or employee picture)

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Insert Image
Reply #1 - Aug 17th, 2010 at 7:53am
Print Post  
Only if the images are on the server. E.g. you can call System.Drawing.Image.FromFile() in the code-behind, or DiagramApplet.loadImage(url) on the client side, and then assign the image to nodes or set it as the diagram's background.

If you need to load images from the user's local file system, you might compile the code from the following sample and add it to the jar archive. You will also have to sign the jar file using jarsigner as shown there.

http://www.captain.at/programming/java/

You might also use a file-upload control to copy users' images to the server and load them from there.

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


I love YaBB 1G - SP1!

Posts: 27
Joined: Aug 12th, 2010
Re: Insert Image
Reply #2 - Aug 17th, 2010 at 1:58pm
Print Post  
Thanks!  I'll give that a shot.

You've heard it before but I'll say it again.  This is one of the best support forums I've ever used.  Quick responses that actually answer the questions.   Keep up the great work!.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Insert Image
Reply #3 - Aug 17th, 2010 at 2:44pm
Print Post  
8)
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint