From 0079db8e987320fcf82caf2d4f0249083d12910c Mon Sep 17 00:00:00 2001 From: Torben Brodt Date: Mon, 30 Jan 2012 21:38:01 +0100 Subject: [PATCH] resolve fatal errors for wrong class signatures --- .../image/adapter/ImagickImageAdapter.class.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php b/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php index 9db0a8dc31..d603997617 100644 --- a/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php +++ b/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php @@ -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); -- 2.20.1