Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Exporting flowchart to different graphic formats (Read 6469 times)
Jessem
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Nov 18th, 2005
Exporting flowchart to different graphic formats
Nov 18th, 2005 at 3:19pm
Print Post  
Do you have any plans for allowing the diagrams to be exported to any standard graphic formats like .bmp, .jpg, or .gif?

Also, allowing them to be exported to .dxf format would be really great, too.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Exporting flowchart to different graphic forma
Reply #1 - Nov 18th, 2005 at 4:12pm
Print Post  
Now you can create an image file by calling the flowchart's CreateBmpFromChart method, which returns an instance of the .NET Bitmap class. Call the Bitmap.Save method to save it in a .bmp, .gif or .jpeg format.

Exporting to .dxf is a nice idea, thanks. We'll try to implement that in the following 1-2 months. Btw Flowchart.NET 4 provides export to SVG, you can try the beta version here:

https://mindfusion.org/_beta/FCNetDemo.zip
  
Back to top
 
IP Logged
 
Jessem
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Nov 18th, 2005
Re: Exporting flowchart to different graphic forma
Reply #2 - Nov 18th, 2005 at 5:57pm
Print Post  
Thanks a lot for the fast reply.

One last thing, though.  Smiley

Currently, I'm exporting the diagrams to .pdf by using a free downloadable program to act as a printer and "printing" to a .pdf file.  If there were another way that preserved the diagram's quality better, I would be very appreciative.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Exporting flowchart to different graphic forma
Reply #3 - Nov 18th, 2005 at 7:55pm
Print Post  
A developer here played with PDF export several months ago and he made a somewhat working exporter class then. Each page of the exported PDF contains a bitmap representing a portion of the Flowchart.NET diagram. If you think that will be better than the "printing" solution, we can send you the source of that class. It relies on an open source PDF creation library to manage PDF files.
  
Back to top
 
IP Logged
 
Erison
YaBB Newbies
*
Offline



Posts: 2
Location: Taiwan, ROC
Joined: Jan 18th, 2006
Re: Exporting flowchart to different graphic forma
Reply #4 - Jan 18th, 2006 at 8:32pm
Print Post  
Dear Stoyo,

Could you please send it to me? I am interesting on this. Thanks to you.

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


tech.support

Posts: 3440
Joined: Oct 19th, 2005
Re: Exporting flowchart to different graphic forma
Reply #5 - Apr 5th, 2006 at 7:16am
Print Post  
This is the first version of the FC.NET to DXF exporter:

https://mindfusion.org/_temp/dxfexp.zip

In case anyone is interested in it, please try it out.
We'll test it some more and release it with next version of the control.
  
Back to top
 
IP Logged
 
caiuby
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Jan 22nd, 2007
Re: Exporting flowchart to different graphic forma
Reply #6 - Jan 22nd, 2007 at 1:32pm
Print Post  
Hi, for dealing with JPG format, I suggest the following source code:

Bitmap bmp = fc.CreateImage();
bmp.Save("c:\\img.jpg",System.Drawing.Imaging.ImageFormat.Jpeg);

fc is an instance of FlowChart class.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint