Lines Matching +full:red +full:- +full:x
8 // phpthumb.functions.php - general support functions //
96 return -1;
108 // The function first replaces _, - and + with a dot . in the version strings
109 $version1 = strtr($version1, '_-+', '...');
110 $version2 = strtr($version2, '_-+', '...');
114 $version1 = preg_replace('#([\d]+)([A-Z]+)([\d]+)#i', '$1.$2.$3', $version1);
115 $version2 = preg_replace('#([\d]+)([A-Z]+)([\d]+)#i', '$1.$2.$3', $version2);
184 4 => 'application/x-shockwave-flash', // IMAGETYPE_SWF
189 9 => 'application/octet-stream', // IMAGETYPE_JPC
191 11 => 'application/octet-stream', // IMAGETYPE_JPX
192 12 => 'application/octet-stream', // IMAGETYPE_JB2
193 13 => 'application/x-shockwave-flash', // IMAGETYPE_SWC
197 17 => 'image/x-icon', // IMAGETYPE_ICO
205 'ico' => 'image/x-icon', // IMAGETYPE_ICO
226 $output .= ' 0x'.str_pad(dechex(ord($string[$i])), 2, '0', STR_PAD_LEFT);
233 return preg_match('#^[0-9A-F]{6}$#i', $HexColorString);
267 public static function GetPixelColor(&$img, $x, $y) { argument
271 return @imagecolorsforindex($img, @imagecolorat($img, $x, $y));
278 …$diff = max($diff, (max($currentPixel[$channel], $targetPixel[$channel]) - min($currentPixel[$chan…
289 …$gray = self::GrayscaleValue($OriginalPixel[ 'red'], $OriginalPixel[ 'green'], $OriginalPixel[ 'bl…
290 return array('red'=>$gray, 'green'=>$gray, 'blue'=>$gray);
327 $scaleX = ($src_w - 1) / $dst_w;
328 $scaleY = ($src_h - 1) / $dst_h;
340 for ($x = $src_x; $x < $src_x + $dst_w; $x++) {
341 $sX = $x * $scaleX;
363 $r = ($c1['red'] + $c2['red'] + $c3['red'] + $c4['red'] ) << 14;
368 imagesetpixel($dst_img, $dst_x + $x - $src_x, $dst_y + $y - $src_y, $r+$g+$b);
381 return phpthumb::ErrorImage($ImageCreateFunction.'() does not exist - no GD support?');
392 for ($x = $src_x; $x < $src_w; $x++) {
394 $RealPixel = self::GetPixelColor($dst_im, $dst_x + $x, $dst_y + $y);
395 $OverlayPixel = self::GetPixelColor($src_im, $x, $y);
397 $overlaypct = (1 - $alphapct) * $opacipct;
401 …erlayPixel['red'] : ($OverlayPixel['alpha'] == 127 ? $RealPixel['red'] : (round($RealPixel['red'] …
402 …xel['alpha'] == 127 ? $RealPixel['green'] : (round($RealPixel['green'] * (1 - $overlaypct)) + ($Ov…
403 …Pixel['alpha'] == 127 ? $RealPixel['blue'] : (round($RealPixel['blue'] * (1 - $overlaypct)) + ($Ov…
408 imagesetpixel($dst_im, $dst_x + $x, $dst_y + $y, $newcolor);
510 $apacheLookupURIarray[$key] = @$apacheLookupURIobject->$key;
555 if (preg_match('#^Content-Length: (.*)#i', $headerline, $matches)) {
576 if (preg_match('#^Last-Modified: (.*)#i', $headerline, $matches)) {
577 $date = strtotime($matches[1]) - date('Z');
627 // return the first useful (non-empty/non-zero/non-false) value from those passed
649 …public static function URLreadFsock($host, $file, &$errstr, $successonly=true, $port=-1, $timeout=…
654 …port : -1); // passing anything as the $port parameter (even empty values like null, false, 0, "")…
771 if ($followredirects && preg_match('#302 [a-z ]+; Location\\: (http.*)#i', $errstr, $matches)) {
849 // https://www.php.net/manual/en/ini.core.php#ini.open-basedir says:
852 …$startoffset = 2; // 1-based counting, first element to left of first directory separator will eit…
856 …ome Windows configurations you may find "/" used interchangeably with the OS-correct "\", so stand…
928 …$filename = preg_replace('/[^'.preg_quote(' !#$%^()+,-.;<>=@[]_{}').'a-zA-Z0-9]/', '_', $filename);
937 …$strength += strlen(preg_replace('#[^a-z]#', '', $password)) * 0.5; // lowercase characters …
938 …$strength += strlen(preg_replace('#[^A-Z]#', '', $password)) * 0.8; // uppercase characters …
939 …$strength += strlen(preg_replace('#[^0-9]#', '', $password)) * 1.0; // numbers are somewhat …
940 …$strength += strlen(preg_replace('#[a-zA-Z0-9]#', '', $password)) * 2.0; // other non-alphanumeri…
1001 …lhAQABAIAAAH//AP///ywAAAAAAQABAAACAUQAOw==')); // very simple 1px GIF file base64-encoded as string
1004 @chmod($tempfilename, $phpthumb_temp->getParameter('config_file_create_mask'));
1080 // built-in function requires PHP v4.0.6+ *and* GD v2.0.1+
1089 // built-in function requires PHP v4.3.2+ *and* GD v2.0.1+