Changeset 4444 in ntrip


Ignore:
Timestamp:
Jul 28, 2012, 12:55:09 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/rinex
Files:
3 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}
  • trunk/BNC/src/rinex/graphwin.h

    r4358 r4444  
    5656  ~t_graphWin();
    5757
     58  void savePNG();
     59
    5860 signals:
    5961
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r4424 r4444  
    129129
    130130    t_graphWin* graphWin = new t_graphWin(0, plots, scaleInterval);
     131
     132    //// beg test
     133    graphWin->savePNG();
     134    //// end test
    131135
    132136    graphWin->show();
Note: See TracChangeset for help on using the changeset viewer.