VOOZH about

URL: https://www.geeksforgeeks.org/php/php-imageaffine-function/

⇱ PHP | imageaffine() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

PHP | imageaffine() Function

Last Updated : 28 Jan, 2020
The imageaffine() function is an inbuilt function in PHP which is used to get an image containing the affine transformed src image using an optional clipping area. Affine is a geometric transformation operation involving MATRICES. Syntax:
resource imageaffine( resource $image, array $affine, array $clip )
Parameters: This function accept three parameters as mentioned above and described below:
  • $image: It specifies the image resource.
  • $affine: It specifies the array with keys 0 to 5.
  • $clip: It specifies the area to be clipped.
Return Value: This function returns affined image resource on success or FALSE on failure. Exceptions: This function throws Exception on error. Below given programs illustrate the imageaffine() function in PHP: Program 1: Output: 👁 Image
Program 2: Output: 👁 Image
Reference: https://www.php.net/manual/en/function.imageaffine.php
Comment