Skip to content
Permalink
Browse files
Improve appearance of raster marker
  • Loading branch information
nyalldawson committed Nov 2, 2021
1 parent 4dbff9f commit b9a6df6d906b386475b67390eb132b2ad48f1367
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/symbology/qgsmarkersymbollayer.cpp
@@ -2972,7 +2972,10 @@ void QgsRasterMarkerSymbolLayer::renderPoint( QPointF point, QgsSymbolRenderCont
if ( context.selected() )
QgsImageOperation::adjustHueSaturation( img, 1.0, context.renderContext().selectionColor(), 1.0, context.renderContext().feedback() );

const bool prevSmoothTransform = p->testRenderHint( QPainter::RenderHint::SmoothPixmapTransform );
p->setRenderHint( QPainter::RenderHint::SmoothPixmapTransform, true );
p->drawImage( -img.width() / 2.0, -img.height() / 2.0, img );
p->setRenderHint( QPainter::RenderHint::SmoothPixmapTransform, prevSmoothTransform );
}
}

0 comments on commit b9a6df6

Please sign in to comment.