Ejemplo n.º 1
0
 public function Gamma(&$gdimg, $amount)
 {
     if (number_format($amount, 4) == '1.0000') {
         return true;
     }
     return ImageGammaCorrect($gdimg, 1.0, $amount);
 }
Ejemplo n.º 2
0
Archivo: GD.php Proyecto: 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;
 }
Ejemplo n.º 4
0
 /**
  * Adjust the image gamma
  *
  * @param float $outputgamma
  *
  * @return none
  */
 function gamma($outputgamma = 1.0)
 {
     ImageGammaCorrect($this->imageHandle, 1.0, $outputgamma);
 }
Ejemplo n.º 5
0
 function Gamma(&$imgResource, $iAmount = 1)
 {
     ImageGammaCorrect($imgResource, 1.0, $iAmount);
     return true;
 }