(PHP 7 >= 7.2.0, PHP 8)
imagesetclip — 設定裁剪矩形
$image
$x1
$y1
$x2
$y2
imagesetclip() 設定目前的裁剪矩形,也就是超出此區域將不會繪製任何像素。
image
一個 GdImage 物件,由影像建立函式之一返回,例如 imagecreatetruecolor()。
x1
左上角的 x 座標。
y1
左上角的 y 座標。
x2
右下角的 x 座標。
y2
右下角的 y 座標。
成功時返回 true,失敗時返回 false。
true
false
gd