Home
last modified time | relevance | path

Searched refs:image (Results 1 – 25 of 238) sorted by relevance

12345678910

/PHP-8.4/ext/gd/libgd/
H A Dgdxpm.c21 XpmImage image; in gdImageCreateFromXpm() local
34 number = image.ncolors; in gdImageCreateFromXpm()
36 if (!image.colorTable[i].c_color) { in gdImageCreateFromXpm()
41 if (!(im = gdImageCreate(image.width, image.height))) { in gdImageCreateFromXpm()
50 buf[0] = image.colorTable[i].c_color[1]; in gdImageCreateFromXpm()
53 buf[0] = image.colorTable[i].c_color[2]; in gdImageCreateFromXpm()
56 buf[0] = image.colorTable[i].c_color[3]; in gdImageCreateFromXpm()
125 pointer = (int *) image.data; in gdImageCreateFromXpm()
126 for (i = 0; i < image.height; i++) { in gdImageCreateFromXpm()
127 for (j = 0; j < image.width; j++) { in gdImageCreateFromXpm()
[all …]
/PHP-8.4/ext/gd/tests/
H A Dbug40764.phpt7 $image=imagecreatetruecolor(400, 400);
9 $black = imagecolorallocate($image, 0, 0, 0);
12 imagefill($image, 0, 0, $white);
13 imagesetthickness($image, 10);
17 imageline($image, 0, 0, 392, 392, $black);
19 imagesetthickness($image, 1);
21 imageline($image, 200, 0, 200, 400, $red);
22 imageline($image, 0, 200, 400, 200, $red);
23 imageline($image, 0, 0, 392, 392, $red);
24 print_r(imagecolorat($image, 195, 0));
[all …]
H A Dimagecolorclosesthwb_basic_001.phpt7 // Create the size of image or blank image
8 $image = imagecreate(500, 200);
10 // Set the background color of image
11 $background_color = imagecolorallocate($image, 0, 24, 200);
13 // Set the text color of image
14 $text_color = imagecolorallocate($image, 255, 255, 255);
16 // Function to create image which contains string.
20 var_dump(imagecolorclosesthwb($image, 0, 115, 152)); // 0
21 var_dump(imagecolorclosesthwb($image, 0, 24, 200)); // 0
23 var_dump(imagecolorclosesthwb($image, 50, 0, 90)); // 0
[all …]
H A Dbug67447.phpt8 $image = imagecreatetruecolor(500, 500);
9 $red = imagecolorallocate($image, 255, 0, 0);
10 imagefill($image, 0, 0, $red);
11 $cropped = imagecrop($image, ['x' => 0, 'y' => 0, 'width' => 250, 'height' => 250]);
13 imagedestroy($image);
17 $image = imagecreate(500, 500);
18 imagecolorallocate($image, 0, 0, 255); // first palette color = background
19 $red = imagecolorallocate($image, 255, 0, 0);
20 imagefill($image, 0, 0, $red);
21 $cropped = imagecrop($image, ['x' => 0, 'y' => 0, 'width' => 250, 'height' => 250]);
[all …]
H A Dimagefilltoborder_basic.phpt16 // Create a image
17 $image = imagecreatetruecolor( 100, 100 );
20 imagefilledrectangle( $image, 0, 0, 100, 100, imagecolorallocate( $image, 255, 255, 255 ) );
23 imageellipse( $image, 50, 50, 50, 50, imagecolorallocate( $image, 0, 0, 0 ) );
26 imagefilltoborder( $image, 50, 50, imagecolorallocate( $image, 0, 0, 0 ), imagecolorallocate( $imag…
29 test_image_equals_file(__DIR__ . '/imagefilltoborder_basic.png', $image);
H A Dimagedashedline_basic.phpt19 // create a blank image
20 $image = imagecreatetruecolor(250, 250);
23 $bg = imagecolorallocate($image, 0, 0, 0);
26 $col_line = imagecolorallocate($image, 255, 0, 0);
29 imagedashedline($image, 100, 20, 100, 230, $col_line );
33 imagepng($image, $dest);
36 $col1 = imagecolorat($image, 100, 230);
38 $col2 = imagecolorat($image, 5, 5);
40 $color1 = imagecolorsforindex($image, $col1);
41 $color2 = imagecolorsforindex($image, $col2);
[all …]
H A Dimagepolygon_basic.phpt19 // create a blank image
20 $image = imagecreatetruecolor(400, 300);
23 $bg = imagecolorallocate($image, 0, 0, 0);
26 $col_poly = imagecolorallocate($image, 255, 0, 0);
29 imagepolygon($image, array (
37 imagepng($image, $dest);
39 $col1 = imagecolorat($image, 100, 200);
40 $col2 = imagecolorat($image, 100, 100);
41 $color1 = imagecolorsforindex($image, $col1);
42 $color2 = imagecolorsforindex($image, $col2);
[all …]
H A Dgithub_bug_215.phpt13 $image = imagecreate( 10, 10 );
14 $bgd = imagecolorallocate( $image, 0, 0, 0 );
15 $border = imagecolorallocate( $image, 255, 0, 0 );
16 $fillcolor = imagecolorallocate( $image, 255, 0, 0 );
19 imagefilltoborder( $image, 0,0, $border+10, $fillcolor);
23 imagefilltoborder( $image, 0,0, -$border, $fillcolor);
28 imagefilltoborder( $image, 0,0, $border, $fillcolor+10);
32 imagefilltoborder( $image, 0,0, $border, -$fillcolor);
37 imagefilltoborder( $image, 0,0, $border+10, $fillcolor+10);
H A Dbug73614.phpt16 $image = imagecreatetruecolor(500, 500);
18 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
19 $navy = imagecolorallocate($image, 0x00, 0x00, 0x80);
20 $red = imagecolorallocate($image, 0xFF, 0x00, 0x00);
22 imagefilledarc($image, 250, 250, 500, 250, 0, 88, $white, IMG_ARC_PIE);
23 imagefilledarc($image, 250, 250, 500, 250, 88, 91 , $navy, IMG_ARC_PIE);
24 imagefilledarc($image, 250, 250, 500, 250, 91, 360 , $red, IMG_ARC_PIE);
26 test_image_equals_file(__DIR__ . '/bug73614.png', $image);
H A Dimagegammacorrect_variation1.phpt2 Testing imagegammacorrect() of GD library with non TrueColor image
19 $image = imagecreate(150, 150);
21 $grey = imagecolorallocate($image,6,6,6);
22 $gray = imagecolorallocate($image,15,15,15);
24 $half = imagefilledarc ( $image, 75, 75, 70, 70, 0, 180, $grey, IMG_ARC_PIE );
25 $half2 = imagefilledarc ( $image, 75, 75, 70, 70, 0, -180, $gray, IMG_ARC_PIE );
27 $gamma = imagegammacorrect($image, 1, 5);
31 test_image_equals_file(__DIR__ . '/imagegammacorrect_variation1.png', $image);
H A Dimagesetthickness_basic.phpt16 // Create a 200x100 image
17 $image = imagecreatetruecolor(200, 100);
18 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
19 $black = imagecolorallocate($image, 0x00, 0x00, 0x00);
22 imagefilledrectangle($image, 0, 0, 299, 99, $white);
25 imagesetthickness($image, 5);
28 imagerectangle($image, 14, 14, 185, 85, $black);
31 test_image_equals_file(__DIR__ . '/imagesetthickness_basic.png', $image);
H A Dbug22544-mb.phpt13 $image = imageCreateTruecolor(640, 100);
14 $transparent = imageColorAllocate($image, 0, 0, 0);
15 $red = imageColorAllocate($image, 255, 50, 50);
16 imageColorTransparent($image, $transparent);
17 imageFilledRectangle($image, 0, 0, 640-1, 100-1, $transparent);
19 test_image_equals_file(__DIR__ . '/bug22544私はガラスを食べられます.png', $image);
H A Dbug22544.phpt13 $image = imageCreateTruecolor(640, 100);
14 $transparent = imageColorAllocate($image, 0, 0, 0);
15 $red = imageColorAllocate($image, 255, 50, 50);
16 imageColorTransparent($image, $transparent);
17 imageFilledRectangle($image, 0, 0, 640-1, 100-1, $transparent);
19 test_image_equals_file(__DIR__ . '/bug22544.png', $image);
H A Dimagegammacorrect_basic.phpt19 $image = imagecreatetruecolor(150, 150);
21 $grey = imagecolorallocate($image,6,6,6);
22 $gray = imagecolorallocate($image,15,15,15);
24 $half = imagefilledarc ( $image, 75, 75, 70, 70, 0, 180, $grey, IMG_ARC_PIE );
25 $half2 = imagefilledarc ( $image, 75, 75, 70, 70, 0, -180, $gray, IMG_ARC_PIE );
27 $gamma = imagegammacorrect($image, 1, 5);
31 test_image_equals_file(__DIR__ . '/imagegammacorrect_basic.png', $image);
H A Dimagetruecolortopalette_basic.phpt19 $image = imagecreatetruecolor(150, 150);
21 $a = imagecolorallocate($image,255,0,255);
22 $b = imagecolorallocate($image,0,255,255);
24 $half = imagefilledarc ( $image, 75, 75, 70, 70, 0, 180, $a, IMG_ARC_PIE );
25 $half2 = imagefilledarc ( $image, 75, 55, 80, 70, 0, -180, $b, IMG_ARC_PIE );
27 var_dump(imagetruecolortopalette($image, true, 2));
30 test_image_equals_file(__DIR__ . '/imagetruecolortopalette_basic.png', $image);
H A Dfunc.inc88 * Tests that an in-memory image equals another in-memory image.
132 * @param resource $image
135 function test_to_truecolor($image)
137 if (imageistruecolor($image)) {
138 return $image;
140 $width = imagesx($image);
141 $height = imagesy($image);
149 * Saves an actual image to disk.
154 * @param resource $image
157 function save_actual_image($image)
[all …]
H A Dimagerectangle_basic.phpt16 // Create a image
17 $image = imagecreatetruecolor( 100, 100 );
20 imagerectangle( $image, 0, 0, 50, 50, imagecolorallocate($image, 255, 255, 255) );
23 test_image_equals_file(__DIR__ . '/imagerectangle_basic.png', $image);
H A Dimageconvolution_basic.phpt16 $image = imagecreatetruecolor(180, 30);
18 // Writes the text and apply a gaussian blur on the image
19 imagestring($image, 5, 10, 8, 'Gaussian Blur Text', 0x00ff00);
27 imageconvolution($image, $gaussian, 16, 0);
30 test_image_equals_file(__DIR__ . '/imageconvolution_basic.png', $image);
/PHP-8.4/ext/standard/tests/image/
H A Dgetimagesize_basic.phpt7 "GIF image file" => "200x100.gif",
46 -- GIF image file (200x100.gif) --
61 string(9) "image/gif"
81 string(10) "image/jpeg"
88 -- PNG image file (200x100.png) --
101 string(9) "image/png"
106 -- SWF image file (200x100.swf) --
135 string(9) "image/bmp"
151 string(10) "image/tiff"
191 string(9) "image/jp2"
[all …]
H A Dimage_type_to_mime_type.phpt29 string(9) "image/bmp"
31 string(10) "image/webp"
33 string(9) "image/bmp"
35 string(10) "image/avif"
37 string(9) "image/bmp"
39 string(9) "image/jp2"
45 string(9) "image/gif"
51 string(9) "image/gif"
53 string(9) "image/iff"
55 string(9) "image/png"
[all …]
H A Dimage_type_to_mime_type_variation3.phpt21 string\(9\) "image\/gif"
24 string\(10\) "image\/jpeg"
27 string\(9\) "image\/png"
33 string\(9\) "image\/psd"
36 string\(9\) "image\/bmp"
39 string\(10\) "image\/tiff"
42 string\(10\) "image\/tiff"
48 string\(9\) "image\/jp2"
60 string\(9\) "image\/iff"
66 string\(9\) "image\/xbm"
[all …]
H A Dimage_type_to_mime_type_basic.phpt37 string(9) "image/gif"
38 string(10) "image/jpeg"
39 string(9) "image/png"
41 string(9) "image/psd"
42 string(9) "image/bmp"
43 string(10) "image/tiff"
44 string(10) "image/tiff"
46 string(9) "image/jp2"
49 string(9) "image/iff"
52 string(9) "image/xbm"
[all …]
H A Dgetimagesize.phpt40 string(9) "image/bmp"
55 string(10) "image/webp"
70 string(9) "image/bmp"
87 string(10) "image/avif"
102 string(9) "image/bmp"
119 string(9) "image/jp2"
170 string(9) "image/gif"
217 string(9) "image/gif"
232 string(9) "image/iff"
247 string(9) "image/png"
[all …]
/PHP-8.4/ext/gd/
H A Dgd.stub.php488 function imagesetstyle(GdImage $image, array $style): bool {} argument
493 function imageistruecolor(GdImage $image): bool {} argument
497 function imagepalettetotruecolor(GdImage $image): bool {} argument
609 function imagegif(GdImage $image, $file = null): bool {} argument
638 function imagedestroy(GdImage $image): bool {} argument
684 function imagecolorstotal(GdImage $image): int {} argument
716 function imagesx(GdImage $image): int {} argument
718 function imagesy(GdImage $image): int {} argument
726 function imagegetclip(GdImage $image): array {} argument
759 function imageflip(GdImage $image, int $mode): bool {} argument
[all …]
/PHP-8.4/ext/standard/tests/file/
H A Dbug69628.phpt21 file_put_contents("$dirname/image.jPg", '');
22 file_put_contents("$dirname/image.gIf", '');
23 file_put_contents("$dirname/image.png", '');
37 unlink("$file_path/bug69628/image.jPg");
38 unlink("$file_path/bug69628/image.gIf");
39 unlink("$file_path/bug69628/image.png");
46 string(%d) "%s/bug69628/image.gIf"
48 string(%d) "%s/bug69628/image.jPg"

Completed in 34 milliseconds

12345678910