PHP | Imagick getImageGamma() Function
The Imagick::getImageGamma() function is an inbuilt function in PHP which is used to get the Gamma value of the image. The Gamma is a nonlinear operation used to encode and decode luminance or tristimulus values in images.
Syntax:
float Imagick::getImageGamma( void )
Parameters: This function does not accepts any parameters.
Return Value: This function returns True on success.
Errors/Exceptions: It throws an ImagickException on error.
Below program illustrates the Imagick::getImageGamma() function in PHP:
Program:
<?php // require_once('path/vendor/autoload.php'); // Create a new Imagick Object $image = new Imagick( // getImageGamma function $size = $image->getImageGamma(); // Display the colorspace print_r($size); ?> <?php |
Output:
0.45454999804497
Related Articles:
Reference: http://php.net/manual/en/imagick.getimagegamma.php
Recommended Posts:
- PHP | Imagick getImagePage() Function
- PHP | Imagick setImageDepth() Function
- PHP | Imagick getImageFormat() Function
- PHP | Imagick recolorImage() Function
- PHP | Imagick getImageUnits() Function
- PHP | Imagick setImageUnits() Function
- PHP | Imagick raiseImage() Function
- PHP | Imagick getImageGeometry() Function
- PHP | Imagick setImageResolution() Function
- PHP | Imagick getImageLength() Function
- PHP | Imagick identifyImage() Function
- PHP | Imagick rollImage() Function
- PHP | Imagick getImageDepth() Function
- PHP | Imagick displayImage() Function
- PHP | Imagick reduceNoiseImage() Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



