/PHP-7.4/ext/gd/tests/ |
H A D | imagefilledpolygon_basic.phpt | 10 /* Prototype : bool imagefilledpolygon ( resource $image , array $points , int $num_points , i… 12 * Source code: ext/standard/image.c 29 // create a blank image 30 $image = imagecreatetruecolor(250, 250); 33 $bg = imagecolorallocate($image, 0, 0, 0); 36 $col_poly = imagecolorallocate($image, 0, 255, 0); 39 imagefilledpolygon($image, $points, count($points)/2, $col_poly); 42 imagepng($image, $dest); 59 imagedestroy($image);
|
H A D | imagecolorstotal_basic.phpt | 15 /* Prototype : int imagecolorstotal ( resource $image ) 16 * Description: Find out the number of colors in an image's palette 22 // Get an image 26 echo 'Total colors in image: ' . imagecolorstotal($im); 28 // Free image 35 Total colors in image: 128
|
H A D | imageconvolution_basic.phpt | 12 $image = imagecreatetruecolor(180, 30); 14 // Writes the text and apply a gaussian blur on the image 15 imagestring($image, 5, 10, 8, 'Gaussian Blur Text', 0x00ff00); 23 imageconvolution($image, $gaussian, 16, 0); 26 test_image_equals_file(__DIR__ . '/imageconvolution_basic.png', $image);
|
H A D | imagechar_basic.phpt | 12 $image = imagecreatetruecolor(180, 30); 13 $white = imagecolorallocate($image, 255,255,255); 15 $result = imagechar($image, 1, 5, 5, 'C', $white); 18 test_image_equals_file(__DIR__ . '/imagechar_basic.png', $image);
|
H A D | imagecharup_basic.phpt | 12 $image = imagecreatetruecolor(180, 30); 13 $white = imagecolorallocate($image, 255,255,255); 15 $result = imagecharup($image, 1, 5, 5, 'C', $white); 18 test_image_equals_file(__DIR__ . '/imagecharup_basic.png', $image);
|
H A D | imagefilledellipse_basic.phpt | 10 $image = imagecreatetruecolor(100, 100); 12 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF); 15 imagefilledellipse($image, 50, 50, 40, 30, $white); 18 test_image_equals_file(__DIR__ . '/imagefilledellipse_basic.png', $image);
|
H A D | imagestringup_basic.phpt | 12 $image = imagecreatetruecolor(180, 30); 13 $white = imagecolorallocate($image, 255,255,255); 15 $result = imagestringup($image, 1, 5, 25, 'Str', $white); 18 test_image_equals_file(__DIR__ . '/imagestringup_basic.png', $image);
|
H A D | imagestring_basic.phpt | 12 $image = imagecreatetruecolor(180, 30); 13 $white = imagecolorallocate($image, 255,255,255); 15 $result = imagestring($image, 1, 5, 5, 'String Text', $white); 18 test_image_equals_file(__DIR__ . '/imagestring_basic.png', $image);
|
H A D | imageellipse_basic.phpt | 13 // Create a image 14 $image = imagecreatetruecolor(400, 300); 17 imageellipse($image, 200, 150, 300, 200, 16777215); 20 test_image_equals_file(__DIR__ . '/imageellipse_basic.png', $image);
|
H A D | imagecolordeallocate_error4.phpt | 12 $image = imagecreate(180, 30); 13 $white = imagecolorallocate($image, 255, 255, 255); 15 $totalColors = imagecolorstotal($image); 17 $result = imagecolordeallocate($image, -1.0);
|
H A D | imagearc_basic.phpt | 13 $image = imagecreatetruecolor(100, 100); 15 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF); 18 imagearc($image, 50, 50, 30, 30, 0, 180, $white); 21 test_image_equals_file(__DIR__ . '/imagearc_basic.png', $image);
|
H A D | imagecolordeallocate_error3.phpt | 12 $image = imagecreate(180, 30); 13 $white = imagecolorallocate($image, 255, 255, 255); 15 $totalColors = imagecolorstotal($image); 17 $result = imagecolordeallocate($image, $totalColors + 100);
|
H A D | imageinterlace_variation2.phpt | 13 $image = imagecreatetruecolor(100, 100); 16 imageinterlace($image, 1); 19 var_dump(imageinterlace($image, 0)); 20 var_dump(imageinterlace($image));
|
H A D | imagearc_variation1.phpt | 13 $image = imagecreatetruecolor(100, 100); 15 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF); 18 imagearc($image, 50, 50, 30, 30, 0, -90, $white); 21 test_image_equals_file(__DIR__ . '/imagearc_variation1.png', $image);
|
H A D | imagearc_variation2.phpt | 13 $image = imagecreatetruecolor(100, 100); 15 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF); 18 imagearc($image, 50, 50, 30, 30, -90, 0, $white); 21 test_image_equals_file(__DIR__ . '/imagearc_variation2.png', $image);
|
H A D | imagefilledarc_basic.phpt | 16 $image = imagecreatetruecolor(100, 100); 18 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF); 21 imagefilledarc($image, 50, 50, 30, 30, 0, 90, $white, IMG_ARC_PIE); 24 test_image_equals_file(__DIR__ . '/imagefilledarc_basic.png', $image);
|
H A D | imageconvolution_error2.phpt | 12 $image = imagecreatetruecolor(180, 30); 14 // Writes the text and apply a gaussian blur on the image 15 imagestring($image, 5, 10, 8, 'Gaussian Blur Text', 0x00ff00); 22 var_dump(imageconvolution($image, $gaussian, 16, 0));
|
H A D | imageconvolution_error3.phpt | 12 $image = imagecreatetruecolor(180, 30); 14 // Writes the text and apply a gaussian blur on the image 15 imagestring($image, 5, 10, 8, 'Gaussian Blur Text', 0x00ff00); 23 var_dump(imageconvolution($image, $gaussian, 16, 0));
|
H A D | imagetruecolortopalette_error3.phpt | 12 $image = imagecreatetruecolor(50, 50); 15 imagetruecolortopalette($image, true, 'string'); 16 imagetruecolortopalette($image, true, $resource); 17 imagetruecolortopalette($image, true, array()); 18 imagetruecolortopalette($image, true, null);
|
H A D | imagefilledarc_variation1.phpt | 16 $image = imagecreatetruecolor(100, 100); 18 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF); 21 imagefilledarc($image, 50, 50, 30, 30, 0, -25, $white, IMG_ARC_PIE); 24 test_image_equals_file(__DIR__ . '/imagefilledarc_variation1.png', $image);
|
H A D | imagefilledarc_variation2.phpt | 16 $image = imagecreatetruecolor(100, 100); 18 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF); 21 imagefilledarc($image, 50, 50, 30, 30, -25, 25, $white, IMG_ARC_PIE); 24 test_image_equals_file(__DIR__ . '/imagefilledarc_variation2.png', $image);
|
/PHP-7.4/ext/gd/libgd/ |
H A D | gd_wbmp.c | 85 static int _gdImageWBMPCtx(gdImagePtr image, int fg, gdIOCtx *out); 96 void gdImageWBMPCtx (gdImagePtr image, int fg, gdIOCtx * out) in gdImageWBMPCtx() argument 98 _gdImageWBMPCtx(image, fg, out); in gdImageWBMPCtx() 102 static int _gdImageWBMPCtx(gdImagePtr image, int fg, gdIOCtx *out) in _gdImageWBMPCtx() argument 108 if ((wbmp = createwbmp (gdImageSX (image), gdImageSY (image), WBMP_WHITE)) == NULL) { in _gdImageWBMPCtx() 115 for (y = 0; y < gdImageSY(image); y++) { in _gdImageWBMPCtx() 116 for (x = 0; x < gdImageSX(image); x++) { in _gdImageWBMPCtx() 117 if (gdImageGetPixel (image, x, y) == fg) { in _gdImageWBMPCtx()
|
/PHP-7.4/ext/fileinfo/ |
H A D | magicdata.patch | 89 ->>>>>0 use tga-image 91 ->>>>>0 use tga-image 93 ->>>>>0 use tga-image 95 ->>>>>0 use tga-image 101 +>>>>0 use tga-image 103 +>>>>0 use tga-image 105 +>>>>0 use tga-image 107 +>>>>0 use tga-image 109 +>>>>0 use tga-image 111 +>>>>0 use tga-image [all …]
|
/PHP-7.4/ext/standard/tests/image/ |
H A D | image_type_to_mime_type_variation2.phpt | 6 …* Description: Get Mime-Type for image-type returned by getimagesize, exif_read_data, exif_thumbna… 7 * Source code: ext/standard/image.c 49 string(9) "image/gif" 58 string(10) "image/jpeg" 61 string(10) "image/tiff" 73 string(9) "image/gif"
|
/PHP-7.4/ext/fileinfo/tests/ |
H A D | finfo_file_002.phpt | 27 string(14) "image/x-ms-bmp" 29 string(9) "image/gif" 31 string(10) "image/jpeg" 39 string(9) "image/png" 43 string(11) "image/x-tga"
|