mirror of
https://github.com/Intervention/image.git
synced 2025-08-17 19:26:25 +02:00
Merge branch 'vlakoffphpdoc'
This commit is contained in:
@@ -98,7 +98,7 @@ abstract class AbstractColor
|
||||
/**
|
||||
* Creates new instance
|
||||
*
|
||||
* @param string $value
|
||||
* @param mixed $value
|
||||
*/
|
||||
public function __construct($value = null)
|
||||
{
|
||||
|
@@ -15,7 +15,7 @@ class ResizeCanvasCommand extends \Intervention\Image\Commands\AbstractCommand
|
||||
$width = $this->argument(0)->type('digit')->required()->value();
|
||||
$height = $this->argument(1)->type('digit')->required()->value();
|
||||
$anchor = $this->argument(2)->value('center');
|
||||
$relative = $this->argument(3)->type('boolean')->value();
|
||||
$relative = $this->argument(3)->type('boolean')->value(false);
|
||||
$bgcolor = $this->argument(4)->value();
|
||||
|
||||
$original_width = $image->getWidth();
|
||||
|
@@ -27,7 +27,7 @@ class Driver extends \Intervention\Image\AbstractDriver
|
||||
*
|
||||
* @param integer $width
|
||||
* @param integer $height
|
||||
* @param string $background
|
||||
* @param mixed $background
|
||||
* @return \Intervention\Image\Image
|
||||
*/
|
||||
public function newImage($width, $height, $background = null)
|
||||
|
@@ -41,7 +41,7 @@ use Psr\Http\Message\StreamInterface;
|
||||
* @method \Intervention\Image\Image rectangle(integer $x1, integer $y1, integer $x2, integer $y2, \Closure $callback = null) Draw a colored rectangle on current image with top-left corner on x,y point 1 and bottom-right corner at x,y point 2. Define the overall appearance of the shape by passing a Closure callback as an optional parameter.
|
||||
* @method \Intervention\Image\Image reset(string $name = 'default') Resets all of the modifications to a state saved previously by backup under an optional name.
|
||||
* @method \Intervention\Image\Image resize(integer $width, integer $height, \Closure $callback = null) Resizes current image based on given width and/or height. To contraint the resize command, pass an optional Closure callback as third parameter.
|
||||
* @method \Intervention\Image\Image resizeCanvas(integer $width, integer $height, string $anchor = 'center', boolean $relative = false, string $bgcolor = '#000000') Resize the boundaries of the current image to given width and height. An anchor can be defined to determine from what point of the image the resizing is going to happen. Set the mode to relative to add or subtract the given width or height to the actual image dimensions. You can also pass a background color for the emerging area of the image.
|
||||
* @method \Intervention\Image\Image resizeCanvas(integer $width, integer $height, string $anchor = 'center', boolean $relative = false, mixed $bgcolor = null) Resize the boundaries of the current image to given width and height. An anchor can be defined to determine from what point of the image the resizing is going to happen. Set the mode to relative to add or subtract the given width or height to the actual image dimensions. You can also pass a background color for the emerging area of the image.
|
||||
* @method mixed response(string $format = null, integer $quality = 90) Sends HTTP response with current image in given format and quality.
|
||||
* @method \Intervention\Image\Image rotate(float $angle, string $bgcolor = '#000000') Rotate the current image counter-clockwise by a given angle. Optionally define a background color for the uncovered zone after the rotation.
|
||||
* @method \Intervention\Image\Image sharpen(integer $amount = 10) Sharpen current image with an optional amount. Use values between 0 and 100.
|
||||
|
@@ -15,7 +15,7 @@ class ResizeCanvasCommand extends \Intervention\Image\Commands\AbstractCommand
|
||||
$width = $this->argument(0)->type('digit')->required()->value();
|
||||
$height = $this->argument(1)->type('digit')->required()->value();
|
||||
$anchor = $this->argument(2)->value('center');
|
||||
$relative = $this->argument(3)->type('boolean')->value();
|
||||
$relative = $this->argument(3)->type('boolean')->value(false);
|
||||
$bgcolor = $this->argument(4)->value();
|
||||
|
||||
$original_width = $image->getWidth();
|
||||
|
@@ -27,7 +27,7 @@ class Driver extends \Intervention\Image\AbstractDriver
|
||||
*
|
||||
* @param integer $width
|
||||
* @param integer $height
|
||||
* @param string $background
|
||||
* @param mixed $background
|
||||
* @return \Intervention\Image\Image
|
||||
*/
|
||||
public function newImage($width, $height, $background = null)
|
||||
|
Reference in New Issue
Block a user