Example #1
0
 public function Gamma(&$gdimg, $amount)
 {
     if (number_format($amount, 4) == '1.0000') {
         return true;
     }
     return ImageGammaCorrect($gdimg, 1.0, $amount);
 }
Example #2
0
File: GD.php Project: joeymetal/v1
 /**
  * Adjusts the image gamma
  *
  * @param float $outputgamma
  *
  * @return bool|PEAR_Error TRUE or a PEAR_Error object on error
  * @access public
  */
 function gamma($outputgamma = 1.0)
 {
     if ($outputgamma != 1.0) {
         ImageGammaCorrect($this->imageHandle, 1.0, $outputgamma);
     }
     return true;
 }
 function Gamma(&$gdimg, $amount)
 {
     ImageGammaCorrect($gdimg, 1.0, $amount);
     return true;
 }
Example #4
0
 /**
  * Adjust the image gamma
  *
  * @param float $outputgamma
  *
  * @return none
  */
 function gamma($outputgamma = 1.0)
 {
     ImageGammaCorrect($this->imageHandle, 1.0, $outputgamma);
 }
Example #5
0
 function Gamma(&$imgResource, $iAmount = 1)
 {
     ImageGammaCorrect($imgResource, 1.0, $iAmount);
     return true;
 }