|
Grayscale |
Posted by Sinan Tuncer on Jan-28-2018 21:40 |
|
Hi,
is it possible to generate grayscale png with the c++ interface?
Thank you,
Sinan |
Re: Grayscale |
Posted by Peter Kwan on Jan-29-2018 02:30 |
|
Hi Sinan Tuncer,
Yes. It is like:
... create the chart as usual ....
// reduce the colors to 256 level grey scale
c->makeChart3()->reduceColors(256, true);
// output the chart in PNG
c->makeChart("/path/to/aaa.png");
Hope this can help.
Regards
Peter Kwan |
|