Skip to content
Permalink
Browse files
Improve appearance of raster marker
  • Loading branch information
nyalldawson committed Nov 1, 2021
1 parent f2ea6cc commit 12eaefeb52ff3f3acf15aee43205874f683abcce
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 12eaefe

Please sign in to comment.