Query: imagegammacorrect
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
IMAGEGAMMACORRECT(3) 1 IMAGEGAMMACORRECT(3) imagegammacorrect - Apply a gamma correction to a GD imageSYNOPSISbool imagegammacorrect (resource $image, float $inputgamma, float $outputgamma)DESCRIPTIONApplies gamma correction to the given gd $image given an input and an output gamma.PARAMETERSo $ 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 VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #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 | 
| imagecreate(3) - php | 
| imagecreatefromstring(3) - php | 
| image2wbmp(3) - php | 
| imagecolorstotal(3) - php | 
| Similar Topics in the Unix Linux Community | 
|---|
| Simple rules of the UNIX.COM forums: | 
| New Code Tags (Syntax Highlighting) | 
| Please Welcome Don Cragun as Lead Moderator | 
| Please Welcome Nicki Paul to the Moderator Team! |