/**
  * Constructs the Grayscale filter
  *
  * @param ImagineInterface $imagine
  */
 public function __construct(ImagineInterface $imagine)
 {
     parent::__construct($imagine, new Grayscale());
 }
 /**
  * Constructs the Fill filter with given fill
  *
  * @param ImagineInterface $imagine
  * @param FillInterface $fill
  */
 public function __construct(ImagineInterface $imagine, FillInterface $fill)
 {
     parent::__construct($imagine, new Fill($fill));
 }
 /**
  * Constructs the FlipHorizontally filter
  *
  * @param ImagineInterface $imagine
  */
 public function __construct(ImagineInterface $imagine)
 {
     parent::__construct($imagine, new FlipHorizontally());
 }
 /**
  * Constructs the Thumbnail filter with given width, height and mode
  *
  * @param ImagineInterface $imagine
  * @param BoxInterface $size
  * @param string $mode
  * @param string $filter
  */
 public function __construct(ImagineInterface $imagine, BoxInterface $size, $mode = ImageInterface::THUMBNAIL_INSET, $filter = ImageInterface::FILTER_UNDEFINED)
 {
     parent::__construct($imagine, new Thumbnail($size, $mode, $filter));
 }
 /**
  * Constructs the Canvas filter with given width and height and the
  * placement of the current image inside the new canvas
  *
  * @param ImagineInterface $imagine
  * @param BoxInterface $size
  * @param PointInterface $placement
  * @param ColorInterface $background
  */
 public function __construct(ImagineInterface $imagine, BoxInterface $size, PointInterface $placement = null, ColorInterface $background = null)
 {
     parent::__construct($imagine, new Canvas($size, $placement, $background));
 }
 /**
  * Constructs an ApplyMask filter with a given mask
  * 
  * @param ImagineInterface $imagine
  * @param ImageInterface $mask
  */
 public function __construct(ImagineInterface $imagine, ImageInterface $mask)
 {
     parent::__construct($imagine, new ApplyMask($mask));
 }
 /**
  * Constructs the Strip filter with given format and options
  *
  * @param ImagineInterface $imagine
  * @param string $format
  * @param array $options
  */
 public function __construct(ImagineInterface $imagine, $format, array $options = array())
 {
     parent::__construct($imagine, new Strip($format, $options));
 }
 /**
  * Constructs a Paste filter with given ImageInterface to paste and x, y
  * coordinates of target position
  *
  * @param ImagineInterface $imagine
  * @param ImageInterface $image
  * @param PointInterface $start
  */
 public function __construct(ImagineInterface $imagine, ImageInterface $image, PointInterface $start)
 {
     parent::__construct($imagine, new Paste($image, $start));
 }
 /**
  * Constructs the WebOptimization filter with given options
  *
  * @param ImagineInterface $imagine
  * @param string $format
  * @param array $options
  */
 public function __construct(ImagineInterface $imagine, array $options = array())
 {
     parent::__construct($imagine, new WebOptimization(null, $options));
 }
 /**
  * Constructs a Crop filter with given x, y, coordinates and crop width and
  * height values
  *
  * @param ImagineInterface $imagine
  * @param PointInterface $start
  * @param BoxInterface $size
  */
 public function __construct(ImagineInterface $imagine, PointInterface $start, BoxInterface $size)
 {
     parent::__construct($imagine, new Crop($start, $size));
 }
 /**
  * Constructs Resize filter with given width and height
  *
  * @param ImagineInterface $imagine
  * @param BoxInterface $size
  * @param string $filter
  */
 public function __construct(ImagineInterface $imagine, BoxInterface $size, $filter = ImageInterface::FILTER_UNDEFINED)
 {
     parent::__construct($imagine, new Resize($size, $filter));
 }
 /**
  * Constructs the OnPixelBased filter
  * 
  * @param ImagineInterface $imagine
  * @param callable $callback This callable is called with the image (\Imagine\Image\ImageInterface)
  *        and the current point (\Imagine\Image\Point)
  */
 public function __construct(ImagineInterface $imagine, $callback)
 {
     parent::__construct($imagine, new OnPixelBased($callback));
 }
 /**
  * Constructs Rotate filter with given angle and background color
  *
  * @param ImagineInterface $imagine
  * @param integer        $angle
  * @param ColorInterface $background
  */
 public function __construct(ImagineInterface $imagine, $angle, ColorInterface $background = null)
 {
     parent::__construct($imagine, new Rotate($angle, $background));
 }
 /**
  * Constructs the Border filter with given color, width and height
  *
  * @param ImagineInterface $imagine
  * @param ColorInterface $color
  * @param integer $width Width of the border on the left and right sides of the image
  * @param integer $height Height of the border on the top and bottom sides of the image
  */
 public function __construct(ImagineInterface $imagine, ColorInterface $color, $width = 1, $height = 1)
 {
     parent::__construct($imagine, new Border($color, $width, $height));
 }
 /**
  * Constructs a RelativeResize filter with the given method and argument.
  *
  * @param ImagineInterface $imagine
  * @param string $method BoxInterface method
  * @param mixed $parameter Parameter for BoxInterface method
  */
 public function __construct(ImagineInterface $imagine, $method, $parameter)
 {
     parent::__construct($imagine, new RelativeResize($method, $parameter));
 }
 /**
  * Constructs an Autorotate filter with a given color
  * 
  * @param ImagineInterface $imagine
  * @param string|array|ColorInterface $color A color
  */
 public function __construct(ImagineInterface $imagine, $color = '000000')
 {
     parent::__construct($imagine, new Autorotate($color));
 }