summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 77de791)
raw | patch | inline | side by side (parent: 77de791)
author | JazzyNico <nicoduf@yahoo.fr> | |
Wed, 14 Apr 2010 17:30:26 +0000 (19:30 +0200) | ||
committer | JazzyNico <nicoduf@yahoo.fr> | |
Wed, 14 Apr 2010 17:30:26 +0000 (19:30 +0200) |
src/extension/internal/bitmap/solarize.cpp | patch | blob | history |
diff --git a/src/extension/internal/bitmap/solarize.cpp b/src/extension/internal/bitmap/solarize.cpp
index 147c4f0b5d1c7b46c800a9696d21685e41906402..ea9ec42f3a8d945ac4052df396e74f1a754654ca 100644 (file)
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