cvplot
cvplot copied to clipboard
save plot as image
Hi, is it possible to save the plot as an image. I could not find any clear example for that. thanks.
I see that the draw function returns a reference to a buffer. I have successfully saved it as an image. I managed so by changing view_ into public and mimicking part of the code inside Figure::show
please let me know your official answer of how to support saving plots as images.
Hi @rafaelmizrahi, thank you for opening an issue. I added Figure::drawFile
in #27, which draws the figure on a Mat of given size and writes it as PNG. See FigureTest
for an example. Is this what you were looking for?
Can we save the whole Window
as image instead of single Figure
?