php8.5
Home/ Manual/ image / functions/ imageaffine

imageaffine

PHP function Edit on GitHub ✎

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

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

Description

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

Func

Parameters

affine

Array with keys 0 to 5.

clip

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

Return Values

Return affined image object on successFalseforfailure.

Changelog

VersionDescription
8.0.0clip is now nullable.
8.0.0On success, this function returns a GDImage instance now; previously, a resource was returned.

Source: reference/image/functions/imageaffine.xml · from the official PHP manual (php/doc-en)