PHP imageaffine - Returns an image after affine transformation

PHP 图像处理PHP Image Processing

imageaffine — Returns an image after affine transformation, with an optional clipping area.

Syntax

resource imageaffine ( resource $image , array $affine [, array $clip ] )

Parameters

  • imageAn image resource returned by an image creation function (e.g., imagecreatetruecolor()).
  • affineAn array with keys as numbers from 0 to 5.
  • clipAn array with keys "x", "y", "width", and "height".

Return Value

Returns the affine-transformed image on success, or FALSE on failure.

PHP 图像处理PHP Image Processing

Other Extensions