コード例 #1
0
ファイル: Watermark.php プロジェクト: elboletaire/watimage
 /**
  * Sets the size of the watermark.
  *
  * This method has been added for backwards compatibility. If you wanna resize
  * the watermark you can directly call ->resize from Watermark object.
  *
  * @param  mixed  $width  Can be just width or an array containing both params.
  * @param  int    $height Height.
  * @return Watermark
  */
 public function setSize($width, $height = null)
 {
     $this->size = Normalize::watermarkSize($width, $height);
     return $this;
 }