Changeset 416 in PSPA
- Timestamp:
- Apr 18, 2013, 5:32:47 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_pspaApplication.cc
r415 r416 32 32 #include <Wt/WPainter> 33 33 #include <Wt/WPdfImage> 34 #include <Wt/WRasterImage>35 34 #include <Wt/WScrollArea> 36 35 #include <Wt/WLineEdit> 37 36 #include <Wt/WRadioButton> 38 37 39 //#define HAS_IMAGEMAGIC 1 40 #ifdef HAS_IMAGEMAGIC 41 #include <Wt/WRasterImage> 42 #endif 38 #define HAS_IMAGEMAGIC 1 39 43 40 using namespace Wt::Chart; 44 41 … … 776 773 777 774 #ifdef HAS_IMAGEMAGIC 778 Wt::WRasterImage pngImage("png", 600, 600);775 /* Wt::WRasterImage pngImage("png", 600, 600); 779 776 Wt::WPainter p(&pngImage); 780 777 chart->paint(p); … … 785 782 new WText("<a href='workingArea/chart-"+sessionId ()+".png' target='_blank'>Afficher l'image</a>",toto); 786 783 787 784 Wt::WPdfImage pdfImage("30cm", "30cm"); 788 785 Wt::WPainter p1(&pdfImage); 789 786 pdfImage.init(); … … 792 789 std::ofstream f1(name.c_str(), std::ios::out |std::ios::trunc | std::ios::binary); 793 790 pdfImage.write(f1); 791 */ 794 792 #endif 795 793 }
Note: See TracChangeset
for help on using the changeset viewer.