Lines Matching refs:gamma
511 $gamma = 0;
519 // "If the source file's gamma value is greater than 1.0, it is probably a display system exponent,..."
520 // ("..and you should use its reciprocal for the PNG gamma.")
528 // See test different gamma chunks at http://www.libpng.org/pub/png/pngsuite-all-good.html
532 $gamma = 1 / $gAMA;
535 // Don't need to apply gamma correction if == default i.e. 2.2
536 if ($gamma > 2.15 && $gamma < 2.25) {
537 $gamma = 0;
548 $info = $this->convertImage($data, $colspace, 'DeviceCMYK', $w, $h, $ppUx, $pngalpha, $gamma, $ct); // mPDF 5.7.2 Gamma correction
558 $info = $this->convertImage($data, $colspace, 'DeviceGray', $w, $h, $ppUx, $pngalpha, $gamma, $ct); // mPDF 5.7.2 Gamma correction
564 $info = $this->convertImage($data, $colspace, 'DeviceGray', $w, $h, $ppUx, $pngalpha, $gamma, $ct); // mPDF 5.7.2 Gamma correction
566 $info = $this->convertImage($data, $colspace, 'DeviceCMYK', $w, $h, $ppUx, $pngalpha, $gamma, $ct); // mPDF 5.7.2 Gamma correction
568 $info = $this->convertImage($data, $colspace, 'DeviceRGB', $w, $h, $ppUx, $pngalpha, $gamma, $ct); // mPDF 5.7.2 Gamma correction
574 } elseif ($firsttime && ($errpng || $pngalpha || $gamma)) { // mPDF 5.7.2 Gamma correction
676 if ($gamma) {
677 imagegammacorrect($im, $gamma, 2.2);
765 if ($gamma) {
766 imagegammacorrect($im, $gamma, 2.2);