Skip to content
Permalink
Browse files

Replace rasterise by rasterize

  • Loading branch information
DelazJ committed Dec 29, 2016
1 parent c440cec commit f09633cc6c9e291a35220478bc6fb3f221901214
@@ -245,7 +245,7 @@ class QgsPaintEffect
*
* The draw source effect can be used to draw an unaltered copy of the original source
* picture. Minor changes like lowering the opacity and applying a blend mode are
* supported, however these changes will force the resultant output to be rasterised.
* supported, however these changes will force the resultant output to be rasterized.
* If no alterations are performed then the original picture will be rendered as a vector.
*
* \note Added in version 2.9
@@ -53,7 +53,7 @@ void QgsColorEffect::draw( QgsRenderContext &context )

QPainter* painter = context.painter();

//rasterise source and apply modifications
//rasterize source and apply modifications
QImage image = sourceAsImage( context )->copy();

QgsImageOperation::adjustBrightnessContrast( image, mBrightness, mContrast / 100.0 + 1 );
@@ -281,7 +281,7 @@ void QgsDrawSourceEffect::draw( QgsRenderContext &context )
}
else
{
//rasterise source and apply modifications
//rasterize source and apply modifications
QImage image = sourceAsImage( context )->copy();
QgsImageOperation::multiplyOpacity( image, 1.0 - mTransparency );
painter->save();
@@ -247,7 +247,7 @@ class CORE_EXPORT QgsPaintEffect
*
* The draw source effect can be used to draw an unaltered copy of the original source
* picture. Minor changes like lowering the opacity and applying a blend mode are
* supported, however these changes will force the resultant output to be rasterised.
* supported, however these changes will force the resultant output to be rasterized.
* If no alterations are performed then the original picture will be rendered as a vector.
*
* \note Added in version 2.9
@@ -326,7 +326,7 @@ bool QgsMapRendererJob::needTemporaryImage( QgsMapLayer* ml )
|| ( vl->featureBlendMode() != QPainter::CompositionMode_SourceOver )
|| ( vl->layerTransparency() != 0 ) ) )
{
//layer properties require rasterisation
//layer properties require rasterization
return true;
}
}

0 comments on commit f09633c

Please sign in to comment.
You can’t perform that action at this time.