From 703047556818ebab26f10a6af57cabe57d63156c Mon Sep 17 00:00:00 2001 From: jkriege2 Date: Fri, 26 Aug 2022 12:28:06 +0200 Subject: [PATCH] NEW: added JKQTBasePlotter::grabPixelImage() and JKQTPlotter::grabPixelImage(), which grab the plotter into a QImage NEW: added option to not display the preview dialog to JKQTBasePlotter::copyPixelImage() and JKQTPlotter::copyPixelImage() --- doc/dox/whatsnew.dox | 2 + lib/jkqtplotter/jkqtpbaseplotter.cpp | 137 +++++++++++++++------------ lib/jkqtplotter/jkqtpbaseplotter.h | 6 +- lib/jkqtplotter/jkqtplotter.h | 10 ++ 4 files changed, 94 insertions(+), 61 deletions(-) diff --git a/doc/dox/whatsnew.dox b/doc/dox/whatsnew.dox index 346e82ec44..2ddf28b93d 100644 --- a/doc/dox/whatsnew.dox +++ b/doc/dox/whatsnew.dox @@ -35,6 +35,8 @@ Changes, compared to \ref page_whatsnew_V4_0_0 "v4.0.0" include:
  • NEW: improved plotting speed for line-graphs by a compression algorithm (see JKQTPGraphLinesCompressionMixin) that removes overlaying lines (e.g. in JKQTPXYLineGraph)
  • NEW: improved plotting speed for line-graphs by a clipping algorithm (applies to JKQTPXYLineGraph, JKQTPGraphErrorStyleMixin, JKQTPSpecialLineHorizontalGraph, JKQTPSpecialLineVerticalGraph and others)
  • NEW: improved plotting speed for scatter-graphs by not calling draw functions for symbols outside the plot window (e.g. in JKQTPXYLineGraph)
  • +
  • NEW: added JKQTBasePlotter::grabPixelImage() and JKQTPlotter::grabPixelImage(), which grab the plotter into a QImage
  • +
  • NEW: added option to not display the preview dialog to JKQTBasePlotter::copyPixelImage() and JKQTPlotter::copyPixelImage()
  • JKQTMathText: