imageaffine — Returns an affine transformed image, optionally with clipping regions.
resource imageaffine ( resource $image , array $affine [, array $clip ] )
imageThe image resource returned by the image creation function (such as imagecreatetruecolor()).
affine array where the keys are numbers from 0 to 5.
Array of clips with keys "x", "y", "width" and "height".
Returns the affine transformed image on success, or FALSE on failure.