Changeset 210 in PSPA
- Timestamp:
- Dec 19, 2012, 11:52:06 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/src/GWt_pspaApplication.cc
r209 r210 725 725 726 726 #ifdef HAS_IMAGEMAGIC 727 Wt::WRasterImage pngImage("png", 300, 300);727 Wt::WRasterImage pngImage("png", 600, 600); 728 728 Wt::WPainter p(&pngImage); 729 729 chart->paint(p); 730 730 std::ofstream f("chart.png", std::ios::out | std::ios::binary); 731 731 pngImage.write(f); 732 new WText("<a href='chart.png'>chart.png</a>",toto); 733 addConsoleMessage("Le fichier chart.png a été créé"); 732 new WText("<a href='chart.png' target='_blank'>chart.png</a>",toto); 734 733 #endif 735 734 … … 790 789 791 790 #ifdef HAS_IMAGEMAGIC 792 Wt::WRasterImage pngImage("png", 300, 300);791 Wt::WRasterImage pngImage("png", 600, 600); 793 792 Wt::WPainter p(&pngImage); 794 793 chart->paint(p); … … 796 795 pngImage.write(f); 797 796 798 new WText("<a href='chart.png'>chart.png</a>",toto); 799 addConsoleMessage("Le fichier chart.png a été créé"); 797 new WText("<a href='chart.png' target='_blank'>chart.png</a>",toto); 800 798 #endif 801 799 }
Note: See TracChangeset
for help on using the changeset viewer.