cvplot icon indicating copy to clipboard operation
cvplot copied to clipboard

save plot as image

Open rafaelmizrahi opened this issue 2 years ago • 3 comments

Hi, is it possible to save the plot as an image. I could not find any clear example for that. thanks.

rafaelmizrahi avatar Apr 19 '22 12:04 rafaelmizrahi

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.

rafaelmizrahi avatar Apr 19 '22 12:04 rafaelmizrahi

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?

leovandriel avatar Jun 04 '22 02:06 leovandriel

Can we save the whole Window as image instead of single Figure?

PRIZV0 avatar Apr 17 '23 10:04 PRIZV0