Lines Matching refs:alpha

468 				$errpng = 'alpha channel';
473 $errpng = 'alpha channel';
486 // $pngalpha is used as a FLAG of any kind of transparency which COULD be tranferred to an alpha channel
543 // $firsttime added mPDF 6 so when PNG Grayscale with alpha using resrtictcolorspace to CMYK
544 // the alpha channel is sent through as secondtime as Indexed and should not be converted to CMYK
555 // $firsttime added mPDF 6 so when PNG Grayscale with alpha using resrtictcolorspace to CMYK
556 // the alpha channel is sent through as secondtime as Indexed and should not be converted to CMYK
562 // Remove alpha channel
571 $this->mpdf->PDFAXwarnings[] = sprintf('Transparency (alpha channel) not permitted in PDFA or PDFX files - %s - (Image converted to one without transparency.)', $file);
594 throw new \Mpdf\MpdfException(sprintf('PDFA1-b does not permit images with alpha channel transparency (%s).', $file));
610 // ord($transparency[$index]) = the alpha value for that index
611 // generate alpha channel
616 $alpha = 255;
618 $alpha = ord($transparency[$colorindex]);
620 if ($alpha > 0) {
621 imagesetpixel($imgalpha, $xpx, $ypx, $alpha);
642 // generate alpha channel
650 $alpha = 0;
652 $alpha = 0;
654 $alpha = 255;
656 if ($alpha > 0) {
657 imagesetpixel($imgalpha, $xpx, $ypx, $alpha);
663 // extract alpha channel
666 $alpha = (imagecolorat($im, $xpx, $ypx) & 0x7F000000) >> 24;
667 if ($alpha < 127) {
668 imagesetpixel($imgalpha, $xpx, $ypx, 255 - ($alpha * 2));
675 // imagegammacorrect() removes the alpha channel data in $im - (I think this is a bug in PHP)
685 return $this->imageError($file, $firsttime, 'Failed to create temporary image file (' . $tempfile_alpha . ') parsing PNG image with alpha channel (' . $errpng . ')');
689 // extract image without alpha channel
697 return $this->imageError($file, $firsttime, 'Failed to create temporary image file (' . $tempfile . ') parsing PNG image with alpha channel (' . $errpng . ')');
734 // No alpha/transparency set (but cannot read directly because e.g. bit-depth != 8, interlaced etc)
1120 // Need to extract alpha channel info before imagegammacorrect (which loses the data)
1130 // ord($transparency[$index]) = the alpha value for that index
1131 // generate alpha channel
1136 $alpha = 255;
1138 $alpha = ord($transparency[$colorindex]);
1140 $mimgdata .= chr($alpha);
1160 // generate alpha channel
1168 $alpha = 0;
1170 $alpha = 0;
1173 $alpha = 255;
1175 $mimgdata .= chr($alpha);
1183 $alpha = ($rgb & 0x7F000000) >> 24;
1184 if ($alpha < 127) {
1185 $mimgdata .= chr(255 - ($alpha * 2));