コード例 #1
0
ファイル: Watermark.php プロジェクト: elboletaire/watimage
 /**
  * Sets a margin for the watermark. Useful if you're using positioning ala CSS.
  *
  * @param  mixed  $x  Can be just x position or an array containing both params.
  * @param  int    $y  Y position.
  * @return Watermark
  */
 public function setMargin($x, $y = null)
 {
     $this->margin = Normalize::margin($x, $y);
     return $this;
 }