Lines Matching defs:colspace

457 				$colspace = 'DeviceGray';
460 $colspace = 'DeviceRGB';
463 $colspace = 'Indexed';
466 $colspace = 'DeviceGray';
471 $colspace = 'DeviceRGB';
545 if ($firsttime && ($colspace === 'DeviceRGB' || $colspace === 'Indexed') && ($this->mpdf->PDFX || $this->mpdf->restrictColorSpace === 3)) {
548 $info = $this->convertImage($data, $colspace, 'DeviceCMYK', $w, $h, $ppUx, $pngalpha, $gamma, $ct); // mPDF 5.7.2 Gamma correction
553 } elseif ($firsttime && ($colspace === 'DeviceRGB' || $colspace === 'Indexed') && $this->mpdf->restrictColorSpace === 1) {
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
604 if ($colspace === 'Indexed') { // generate Alpha channel values from tRNS
633 if ($colspace === 'DeviceGray') { // ct===0
635 } else /* $colspace=='DeviceRGB' */ { // ct==2
649 if ($colspace === 'DeviceGray' && $b == $trns[0]) {
738 if ($p && $colspace === "Indexed") { // Cannot have ICC profile and Indexed together
760 $colspace = 'DeviceRGB';
872 if ($colspace === 'Indexed' && empty($pal)) {
876 if ($colspace === 'Indexed' && $icc) {
880 $info = ['w' => $w, 'h' => $h, 'cs' => $colspace, 'bpc' => $bpc, 'f' => 'FlateDecode', 'parms' => $parms, 'pal' => $pal, 'trns' => $trns, 'data' => $pngdata, 'ch' => $channels, 'icc' => $icc];
960 $colspace = 'DeviceGray';
969 $colspace = 'Indexed';
976 $colspace = 'Indexed';
990 if ($colspace === 'Indexed' && empty($pal)) {
996 $info = ['w' => $w, 'h' => $h, 'cs' => $colspace, 'bpc' => 8, 'f' => 'FlateDecode', 'pal' => $pal, 'trns' => $trns, 'data' => $gifdata];
998 $info = ['w' => $w, 'h' => $h, 'cs' => $colspace, 'bpc' => 8, 'pal' => $pal, 'trns' => $trns, 'data' => $gifdata];
1100 private function convertImage(&$data, $colspace, $targetcs, $w, $h, $dpi, $mask, $gamma_correction = false, $pngcolortype = false)
1123 if ($colspace === 'Indexed') { // generate Alpha channel values from tRNS - only from PNG
1151 if ($colspace === 'DeviceGray') { // ct===0
1153 } else /* $colspace=='DeviceRGB' */ { // ct==2
1167 if ($colspace === 'DeviceGray' && $b == $trns[0]) {
1207 if ($colspace === 'DeviceGray') { // ct===0
1209 } elseif ($colspace === 'DeviceRGB') { // ct==2
1256 if ($colspace === 'Indexed') {
1366 $colspace = 'DeviceRGB';
1368 $colspace = 'DeviceCMYK';
1370 $colspace = 'DeviceGray';
1373 return [$w, $h, $colspace, $bpc, $channels];