Changeset 4444 in ntrip
- Timestamp:
- Jul 28, 2012, 12:55:09 PM (12 years ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/graphwin.cpp
r4443 r4444 143 143 painter.translate(-width()/2, -height()/2); 144 144 _canvas->render(&painter); 145 146 //// beg test147 {148 QImage image(_canvas->size(), QImage::Format_RGB32);149 QPainter painter(&image);150 _canvas->render(&painter);151 image.save("test.png","PNG");152 }153 //// end test154 145 } 155 146 } 147 148 // Save the Widget as PNG Files 149 //////////////////////////////////////////////////////////////////////////// 150 void t_graphWin::savePNG() { 151 QImage image(_canvas->size(), QImage::Format_RGB32); 152 QPainter painter(&image); 153 _canvas->render(&painter); 154 image.save("test.png","PNG"); 155 } -
trunk/BNC/src/rinex/graphwin.h
r4358 r4444 56 56 ~t_graphWin(); 57 57 58 void savePNG(); 59 58 60 signals: 59 61 -
trunk/BNC/src/rinex/reqcanalyze.cpp
r4424 r4444 129 129 130 130 t_graphWin* graphWin = new t_graphWin(0, plots, scaleInterval); 131 132 //// beg test 133 graphWin->savePNG(); 134 //// end test 131 135 132 136 graphWin->show();
Note:
See TracChangeset
for help on using the changeset viewer.