Lines Matching refs:OriginalPixel
179 $OriginalPixel = phpthumb_functions::GetPixelColor($gdimg, $x, $y);
181 foreach ($OriginalPixel as $key => $value) {
182 $NewPixel[$key] = round($baseamount + ($OriginalPixel[$key] * $scaling));
215 $OriginalPixel = phpthumb_functions::GetPixelColor($gdimg, $x, $y);
217 foreach ($OriginalPixel as $key => $value) {
218 $NewPixel[$key] = min(255, max(0, round($OriginalPixel[$key] * $scaling)));
261 $OriginalPixel = phpthumb_functions::GetPixelColor($gdimg, $x, $y);
263 $TargetPixel = phpthumb_functions::GrayscalePixel($OriginalPixel);
267 …$NewPixel[$key] = round(max(0, min(255, ($OriginalPixel[$key] * ((100 - $amount) / 100)) + ($Targe…
533 $OriginalPixel = phpthumb_functions::GetPixelColor($gdimg, $x, $y);
534 @$Analysis['red'][$OriginalPixel['red']]++;
535 @$Analysis['green'][$OriginalPixel['green']]++;
536 @$Analysis['blue'][$OriginalPixel['blue']]++;
537 @$Analysis['alpha'][$OriginalPixel['alpha']]++;
539 $GrayPixel = phpthumb_functions::GrayscalePixel($OriginalPixel);
614 $OriginalPixel = phpthumb_functions::GetPixelColor($gdimg, $x, $y);
616 $new['red'] = min(255, max(0, ($OriginalPixel['red'] - $range_min) * $range_scale));
617 $new['green'] = min(255, max(0, ($OriginalPixel['green'] - $range_min) * $range_scale));
618 $new['blue'] = min(255, max(0, ($OriginalPixel['blue'] - $range_min) * $range_scale));
619 $new['alpha'] = min(255, max(0, ($OriginalPixel['alpha'] - $range_min) * $range_scale));
621 $new = $OriginalPixel;
622 $new[$key] = min(255, max(0, ($OriginalPixel[$key] - $range_min) * $range_scale));
970 $OriginalPixel = phpthumb_functions::GetPixelColor($gdimg, $x, $y);
971 $GrayPixel = phpthumb_functions::GrayscalePixel($OriginalPixel);
982 …lphaSafe($gdimg, $NewPixel['red'], $NewPixel['green'], $NewPixel['blue'], $OriginalPixel['alpha']);