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 #49117 is a reply to message #49102] Tue, 19 December 2017 20:16 Go to previous messageGo to previous message
Diego22 is currently offline  Diego22
Messages: 10
Registered: November 2016
Location: Zaragoza
Promising Member
I've just downloaded last version of theIDE but it still have not showed the pie. I've selected PieCtrl in the Layout window and part of the code is: (grafCostes is PieCtrl)

grafCostes.AddCategory ("FV Panels", CostFV, :: Color (242, 242, 11));
grafCostes.AddCategory ("Inverter + FV Regulator", CostInvReg, :: Color (255, 128, 0));
grafCostes.AddCategory ("Wind turbine + Inverter", CosteEolica, :: Color (0, 204, 204));
grafCostes.AddCategory ("Batteries", CosteAcum, :: Color (102, 204, 0));
grafCostes.AddCategory ("Generator", CosteDiesel, :: Color (178, 102, 255));

grafCostes.SetColor (Null) .SetPieMarginTop (10) .SetPieMarginBottom (10) .SetPieMarginLeft (1) .SetPieMarginRight (400);

grafCostes.SetCatValue (0, CostFV);
grafCostes.SetCatValue (1, CosteInvReg);
grafCostes.SetCatValue (2, CosteEolica);
grafCostes.SetCatValue (3, CosteAcum);
grafCostes.SetCatValue (4, CostDiesel);

imgCostes = grafCostes.GetImage (); //(Image imgCostes)

r.PlaceImage ("##IMG10", results.imgCost, Size (2000, 2000)); //(RepGen r)

Some help please.
 
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: Tue May 07 17:45:19 CEST 2024

Total time taken to generate the page: 0.02003 seconds