Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Export to JPG (Read 3100 times)
ThomasAccount
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 4
Joined: Jan 26th, 2016
Export to JPG
Feb 16th, 2016 at 5:16pm
Print Post  
Given a chart, how do I export the chart to jpg or gif?

Greetings
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Export to JPG
Reply #1 - Feb 16th, 2016 at 5:33pm
Print Post  
Hi,

Non-bmp formats are supported only when using GDI+ mode,
which you can enable like this -

Code
Select All
fcx.Graphics.StartUp geGdiPlus
fcx.SaveToBitmap "img.jpg", fcx.DocLeft, fcx.DocTop, fcx.DocRight, fcx.DocBottom 



Another way to export them is to call CreateBitmap to get a Windows HBITMAP handle and pass it to a third-party imaging library for encoding.

Greetings,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint