imageaffine

(PHP 5 >= 5.5.0, PHP 7, PHP 8)

imageaffineReturn an image containing the affine transformed src image, using an optional clipping area

Опис

imageaffine(GdImage $image, array $affine, ?array $clip = null): GdImage|false

Увага

Наразі ця функція не документована. Доступний лише список її параметрів.

Параметри

image

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

affine

Array with keys 0 to 5.

clip

Array with keys "x", "y", "width" and "height"; or null.

Значення, що повертаються

Return affined image object on success або false в разі помилки.

Журнал змін

Версія Опис
8.0.0 clip is now nullable.
8.0.0 On success, this function returns a GDImage instance now; previously, a resource was returned.