public function Gamma(&$gdimg, $amount) { if (number_format($amount, 4) == '1.0000') { return true; } return ImageGammaCorrect($gdimg, 1.0, $amount); }
/** * 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; }
/** * Adjust the image gamma * * @param float $outputgamma * * @return none */ function gamma($outputgamma = 1.0) { ImageGammaCorrect($this->imageHandle, 1.0, $outputgamma); }
function Gamma(&$imgResource, $iAmount = 1) { ImageGammaCorrect($imgResource, 1.0, $iAmount); return true; }