Dutch PHP Conference 2025 - Call For Papers

imagesetclip

(PHP 7 >= 7.2.0, PHP 8)

imagesetclipSet the clipping rectangle

Опис

imagesetclip(
    GdImage $image,
    int $x1,
    int $y1,
    int $x2,
    int $y2
): bool

imagesetclip() sets the current clipping rectangle, i.e. the area beyond which no pixels will be drawn.

Параметри

image

Об'єкт GdImage, що повертається однією з функцій створення зображення, такою як imagecreatetruecolor().

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 у разі успіху або false в разі помилки.

Журнал змін

Версія Опис
8.0.0 Тепер image має бути примірником GdImage. Раніше очікувався gd-resource.

Прогляньте також

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top