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   |
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.
|
|
|
Goto Forum:
Current Time: Mon May 12 03:46:00 CEST 2025
Total time taken to generate the page: 0.02904 seconds
|