Fixed broken opacity in ImagickImageAdapter::drawText()
authorMarcel Werk <burntime@woltlab.com>
Thu, 2 Apr 2015 22:34:35 +0000 (00:34 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 2 Apr 2015 22:34:35 +0000 (00:34 +0200)
wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php

index 9a6859ea08ebc3a27eefe4bafa92ec67ac4a325a..35f66c449e397542ab6f13d01d6270e112777e1d 100644 (file)
@@ -189,7 +189,7 @@ class ImagickImageAdapter implements IImageAdapter {
         */
        public function drawText($text, $x, $y, $font, $size, $opacity = 1) {
                $draw = new \ImagickDraw();
-               $draw->setStrokeOpacity($opacity);
+               $draw->setFillOpacity($opacity);
                $draw->setFillColor($this->color);
                $draw->setTextAntialias(true);
                $draw->setFont($font);