Changeset 11394 in osm
- Timestamp:
- 2008-10-22T12:56:56+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wmsplugin/webkit-image.cpp
r11173 r11394 9 9 #include <QtCore/QDebug> 10 10 #include <QtWebKit/QWebView> 11 12 /* using mingw to set binary mode */ 13 #ifdef WIN32 14 #include <io.h> 15 #include <fcntl.h> 16 #define BINARYSTDOUT setmode(fileno(stdout), O_BINARY); 17 #else 18 #define BINARYSTDOUT 19 #endif 11 20 12 21 #define WIDTH 2000 … … 54 63 QPixmap p = QPixmap::grabWidget(view, 0,0,xsize,ysize); 55 64 QFile f; 56 if(f.open(stdout,QIODevice::WriteOnly|QIODevice::Unbuffered)) 65 BINARYSTDOUT 66 if(f.open(stdout, QIODevice::WriteOnly|QIODevice::Unbuffered)) 57 67 p.save(&f, "PNG"); 58 68 }
Note:
See TracChangeset
for help on using the changeset viewer.