From: Torben Brodt Date: Mon, 30 Jan 2012 20:38:01 +0000 (+0100) Subject: resolve fatal errors for wrong class signatures X-Git-Tag: 2.0.0_Beta_1~1365^2~2^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0079db8e987320fcf82caf2d4f0249083d12910c;p=GitHub%2FWoltLab%2FWCF.git resolve fatal errors for wrong class signatures --- 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);