Home
last modified time | relevance | path

Searched refs:image (Results 26 – 50 of 266) sorted by relevance

1234567891011

/PHP-7.4/ext/gd/tests/
H A Dimagefilledpolygon_basic.phpt10 /* 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 Dimagecolorstotal_basic.phpt15 /* 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 Dimageconvolution_basic.phpt12 $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 Dimagechar_basic.phpt12 $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 Dimagecharup_basic.phpt12 $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 Dimagefilledellipse_basic.phpt10 $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 Dimagestringup_basic.phpt12 $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 Dimagestring_basic.phpt12 $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 Dimageellipse_basic.phpt13 // 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 Dimagecolordeallocate_error4.phpt12 $image = imagecreate(180, 30);
13 $white = imagecolorallocate($image, 255, 255, 255);
15 $totalColors = imagecolorstotal($image);
17 $result = imagecolordeallocate($image, -1.0);
H A Dimagearc_basic.phpt13 $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 Dimagecolordeallocate_error3.phpt12 $image = imagecreate(180, 30);
13 $white = imagecolorallocate($image, 255, 255, 255);
15 $totalColors = imagecolorstotal($image);
17 $result = imagecolordeallocate($image, $totalColors + 100);
H A Dimageinterlace_variation2.phpt13 $image = imagecreatetruecolor(100, 100);
16 imageinterlace($image, 1);
19 var_dump(imageinterlace($image, 0));
20 var_dump(imageinterlace($image));
H A Dimagearc_variation1.phpt13 $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 Dimagearc_variation2.phpt13 $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 Dimagefilledarc_basic.phpt16 $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 Dimageconvolution_error2.phpt12 $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 Dimageconvolution_error3.phpt12 $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 Dimagetruecolortopalette_error3.phpt12 $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 Dimagefilledarc_variation1.phpt16 $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 Dimagefilledarc_variation2.phpt16 $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 Dgd_wbmp.c85 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 Dmagicdata.patch89 ->>>>>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 Dimage_type_to_mime_type_variation2.phpt6 …* 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 Dfinfo_file_002.phpt27 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"

Completed in 38 milliseconds

1234567891011