From 6f6280dc5f85969299c1eb2572d97abe0b4f3768 Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 15 Jan 2018 19:49:09 -0500 Subject: [PATCH] ... --- MagickCore/composite.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MagickCore/composite.c b/MagickCore/composite.c index 764370729..80f230aa4 100644 --- a/MagickCore/composite.c +++ b/MagickCore/composite.c @@ -153,10 +153,10 @@ Most functions use a blending mode of over (X=1,Y=1,Z=1) this results in the following optimizations... gamma = Sa+Da-Sa*Da; - gamma = 1 - QuantiumScale*alpha * QuantiumScale*beta; - opacity = QuantiumScale*alpha*beta; // over blend, optimized 1-Gamma + gamma = 1 - QuantumScale*alpha * QuantumScale*beta; + opacity = QuantumScale*alpha*beta; // over blend, optimized 1-Gamma - The above SVG definitions also definate that Mathematical Composition + The above SVG definitions also define that Mathematical Composition methods should use a 'Over' blending mode for Alpha Channel. It however was not applied for composition modes of 'Plus', 'Minus', the modulus versions of 'Add' and 'Subtract'. -- 2.40.0