Mercurial > hg > svgui
diff view/Pane.cpp @ 1202:6828735468c9 svg
Implement "Export SVG file..."
author | Chris Cannam |
---|---|
date | Mon, 19 Dec 2016 16:32:34 +0000 |
parents | 54e6be7ebe11 |
children | f91cf4a60ad6 |
line wrap: on
line diff
--- a/view/Pane.cpp Fri Dec 16 19:35:57 2016 +0000 +++ b/view/Pane.cpp Mon Dec 19 16:32:34 2016 +0000 @@ -1123,7 +1123,7 @@ } QImage * -Pane::toNewImage(sv_frame_t f0, sv_frame_t f1) +Pane::renderPartToNewImage(sv_frame_t f0, sv_frame_t f1) { int x0 = int(f0 / getZoomLevel()); int x1 = int(f1 / getZoomLevel()); @@ -1162,9 +1162,9 @@ } QSize -Pane::getImageSize(sv_frame_t f0, sv_frame_t f1) +Pane::getRenderedPartImageSize(sv_frame_t f0, sv_frame_t f1) { - QSize s = View::getImageSize(f0, f1); + QSize s = View::getRenderedPartImageSize(f0, f1); QImage *image = new QImage(100, 100, QImage::Format_RGB32); QPainter paint(image);