Changeset 4444 in ntrip for trunk/BNC/src/rinex/graphwin.cpp
- Timestamp:
- Jul 28, 2012, 12:55:09 PM (12 years ago)
- File:
-
- 1 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 }
Note:
See TracChangeset
for help on using the changeset viewer.