resolve fatal errors for wrong class signatures
authorTorben Brodt <t.brodt@gmail.com>
Mon, 30 Jan 2012 20:38:01 +0000 (21:38 +0100)
committerTorben Brodt <t.brodt@gmail.com>
Mon, 30 Jan 2012 20:38:01 +0000 (21:38 +0100)
wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php

index 9db0a8dc311cc15f1c53518b41d7fb0f053c4b2a..d603997617ee8b9cbc3d53725ba45946523e13a7 100644 (file)
@@ -89,11 +89,18 @@ class ImagickImageAdapter implements IImageAdapter {
        public function clip($originX, $originY, $width, $height) {
                $this->imagick->cropImage($width, $height, $originX, $originY);
        }
+
+       /**
+        * @see wcf\system\image\adapter\IImageAdapter::resize()
+        */
+       public function resize($originX, $originY, $originWidth, $originHeight, $targetX, $targetY, $targetWidth, $targetHeight) {
+               // TODO: Implement resize() method.
+       }
        
        /**
         * @see wcf\system\image\adapter\IImageAdapter::drawRectangle()
         */
-       public function drawRectangle($startX, $startY, $endX, $endY, $color) {
+       public function drawRectangle($startX, $startY, $endX, $endY) {
                $draw = new \ImagickDraw();
                $draw->setFillColor($this->color);
                $draw->setStrokeColor($this->color);
@@ -105,7 +112,7 @@ class ImagickImageAdapter implements IImageAdapter {
        /**
         * @see wcf\system\image\adapter\IImageAdapter::drawText()
         */
-       public function drawText($string, $x, $y, $color, $font = 4) {
+       public function drawText($string, $x, $y) {
                $draw = new \ImagickDraw();
                $draw->setFillColor($this->color);
                $draw->setTextAntialias(true);