Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ScatterDraw & ScatterCtrl » PieCtrl and GetImage (How to use correctly GetImage() with PieCtrl to obtain a image of the chart)
Re: PieCtrl and GetImage [message #49121 is a reply to message #49118] Wed, 20 December 2017 11:50 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3360
Registered: August 2008
Senior Veteran
Dear Diego and Klugier

I will try to answer you.

Please Diego: Could you confirm that Examples\ScatterCtrl_Demo compiles and runs perfectly?

To include PieCtrl in your package you would need to include ScatterCtrl package and include
#include <ScatterCtrl/ScatterCtrl.h>
#include <ScatterCtrl/PieCtrl.h>

Diego please include this to see if you get the image. Just in case you may comment out everything but the AddCategory() (like in ScatterCtrl_Demo):
imgCostes = grafCostes.GetImage(); 
PNGEncoder encoder;
encoder.SaveFile("Any folder\\myfile.png", imgCostes);

Following Diego answer I understand that layout editor shows the PieCtrl. This way I can imagine ScatterCtrl package is really well loaded.

About bazaar/PieTest, this package and Scatter are not maintained. It was the base of ScatterCtrl/PieCtrl. However ScatterCtrl and ScatterDraw include all necessary stuff and are not linked in any way with Scatter package.


Best regards
IƱaki
 
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Dynamic example - 100% CPU core load
Next Topic: ScatterDraw overhaul. Please review
Goto Forum:
  


Current Time: Wed May 08 00:09:06 CEST 2024

Total time taken to generate the page: 0.01866 seconds