Code

Fix for ImageMagick solarize extension.
authorJazzyNico <nicoduf@yahoo.fr>
Wed, 14 Apr 2010 17:30:26 +0000 (19:30 +0200)
committerJazzyNico <nicoduf@yahoo.fr>
Wed, 14 Apr 2010 17:30:26 +0000 (19:30 +0200)
src/extension/internal/bitmap/solarize.cpp

index 147c4f0b5d1c7b46c800a9696d21685e41906402..ea9ec42f3a8d945ac4052df396e74f1a754654ca 100644 (file)
@@ -18,7 +18,9 @@ namespace Bitmap {
        
 void
 Solarize::applyEffect(Magick::Image* image) {
-       image->solarize(_factor);
+    // Image Magick Quantum depth = 16
+    // 655.35 = (2^16 - 1) / 100
+       image->solarize(_factor * 655.35);
 }
 
 void