Changeset 4444 in ntrip for trunk/BNC/src/rinex/graphwin.cpp


Ignore:
Timestamp:
Jul 28, 2012, 12:55:09 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/graphwin.cpp

    r4443 r4444  
    143143    painter.translate(-width()/2, -height()/2);
    144144    _canvas->render(&painter);
    145 
    146     //// beg test
    147     {
    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 test
    154145  }
    155146}
     147
     148// Save the Widget as PNG Files
     149////////////////////////////////////////////////////////////////////////////
     150void 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.