imagesetclip
(PHP 7 >= 7.2.0, PHP 8)
imagesetclip — Set the clipping rectangle
说明
imagesetclip() sets the current clipping rectangle, i.e. the area beyond which no pixels will be drawn.
参数
image由图象创建函数(例如imagecreatetruecolor())返回的 GdImage 对象。
x1
The x-coordinate of the upper left corner.
y1
The y-coordinate of the upper left corner.
x2
The x-coordinate of the lower right corner.
y2
The y-coordinate of the lower right corner.
返回值
总是返回 true。
参见
- imagegetclip() - Get the clipping rectangle
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
