imagegammacorrect(3) php man page | unix.com

Man Page: imagegammacorrect

Operating Environment: php

Section: 3

IMAGEGAMMACORRECT(3)							 1						      IMAGEGAMMACORRECT(3)

imagegammacorrect - Apply a gamma correction to a GD image

SYNOPSIS
bool imagegammacorrect (resource $image, float $inputgamma, float $outputgamma)
DESCRIPTION
Applies gamma correction to the given gd $image given an input and an output gamma.
PARAMETERS
o $ image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3). o $inputgamma - The input gamma. o $outputgamma - The output gamma.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1 imagegammacorrect(3) usage <?php // Create image instance $im = imagecreatefromgif('php.gif'); // Correct gamma, out = 1.537 imagegammacorrect($im, 1.0, 1.537); // Save and free image imagegif($im, './php_gamma_corrected.gif'); imagedestroy($im); ?> PHP Documentation Group IMAGEGAMMACORRECT(3)
Related Man Pages
pfsgamma(1) - debian
imagecolorstotal(3) - php
imageconvolution(3) - php
imagegd(3) - php
imagetruecolortopalette(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
Denial Of Service Attack Update