mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
fill pixmap
git-svn-id: http://svn.osgeo.org/qgis/trunk@3004 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
9c5eb0cc0e
commit
f1d58ee6cd
@ -521,6 +521,7 @@ void QgsComposer::image(void)
|
|||||||
mComposition->setPlotStyle ( QgsComposition::Print );
|
mComposition->setPlotStyle ( QgsComposition::Print );
|
||||||
|
|
||||||
QPixmap pixmap ( oversample * width, oversample * height );
|
QPixmap pixmap ( oversample * width, oversample * height );
|
||||||
|
pixmap.fill ( QColor(255,255,255) ) ;
|
||||||
QPainter p(&pixmap);
|
QPainter p(&pixmap);
|
||||||
p.scale ( scale, scale);
|
p.scale ( scale, scale);
|
||||||
mComposition->canvas()->drawArea ( QRect(0,0,
|
mComposition->canvas()->drawArea ( QRect(0,0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user