Home
last modified time | relevance | path

Searched refs:im (Results 101 – 125 of 170) sorted by relevance

1234567

/PHP-7.3/ext/gd/tests/
H A Dbug66882.phpt9 $im = imagerotate(imagecreate(10, 10), -90, 0);
10 var_dump(imagesy($im), imagesx($im));
H A Dbug69024.phpt9 $im = imagecreate(256, 256);
10 imagescale($im, 32, 32, IMG_BICUBIC);
11 imagedestroy($im);
H A Dbug67325.phpt15 $im = imagecreatefromjpeg($filename);
16 imagetruecolortopalette($im, 0, 256);
20 $components = imagecolorsforindex($im, $i);
27 imagedestroy($im);
H A Dbug66590.phpt14 $im = imagecreatetruecolor(75, 75);
15 $red = imagecolorallocate($im, 255, 0, 0);
16 imagefilledrectangle($im, 0, 0, 74, 74, $red);
17 imagewebp($im, $filename);
H A Dimagecolorclosesthwb.phpt10 $im = imagecreatefrompng(dirname(__FILE__).'/test.png');
12 var_dump(imagecolorclosesthwb($im, 255, 50, 0));
16 var_dump(imagecolorclosesthwb($im, "hello", "from", "gd"));
18 imagedestroy($im);
H A Dimage2wbmp_error.phpt9 $im = imagecreate(10, 10);
10 imagecolorallocate($im, 0, 0, 0);
11 image2wbmp($im, __DIR__ . '/image2wbmp_error.wbmp');
H A Dcolormatch.phpt10 $im = imagecreatetruecolor(5,5);
13 imagecolormatch($im, $im2);
17 imagedestroy($im);
H A Dbug66387.phpt12 $im = imagecreatetruecolor(20, 20);
13 $c = imagecolorallocate($im, 255, 0, 0);
14 imagefilltoborder($im, 0, -999355, $c, $c);
H A Dbug73157.phpt9 $im = imagecreate(8, 8);
10 imagecolorallocate($im, 0, 0, 0);
13 imagegd2($im, null, 256, IMG_GD2_RAW);
H A Dimagecreatefromstring_gif.phpt11 $im = imagecreatefromstring(file_get_contents(__DIR__ . '/imagecreatefromstring.gif'));
12 var_dump(imagesx($im));
13 var_dump(imagesy($im));
H A Dimagecreatefromstring_png.phpt11 $im = imagecreatefromstring(file_get_contents(__DIR__ . '/imagecreatefromstring.gif'));
12 var_dump(imagesx($im));
13 var_dump(imagesy($im));
H A Dimagecreatefromstring_webp.phpt11 $im = imagecreatefromstring(file_get_contents(__DIR__ . '/imagecreatefromstring.webp'));
12 var_dump(imagesx($im));
13 var_dump(imagesy($im));
H A Djpeg2wbmp_error1.phpt18 $im = imagecreatetruecolor(120, 20);
19 $text_color = imagecolorallocate($im, 255, 255, 255);
20 imagestring($im, 1, 5, 5, 'A Simple Text String', $text_color);
26 imagejpeg($im, $file);
29 imagedestroy($im);
H A Dpng2wbmp_error1-mb.phpt18 $im = imagecreatetruecolor(120, 20);
19 $text_color = imagecolorallocate($im, 255, 255, 255);
20 imagestring($im, 1, 5, 5, 'A Simple Text String', $text_color);
26 imagepng($im, $file);
29 imagedestroy($im);
H A Dpng2wbmp_error1.phpt18 $im = imagecreatetruecolor(120, 20);
19 $text_color = imagecolorallocate($im, 255, 255, 255);
20 imagestring($im, 1, 5, 5, 'A Simple Text String', $text_color);
26 imagepng($im, $file);
29 imagedestroy($im);
H A Djpeg2wbmp_error3.phpt18 $im = imagecreatetruecolor(120, 20);
19 $text_color = imagecolorallocate($im, 255, 255, 255);
20 imagestring($im, 1, 5, 5, 'A Simple Text String', $text_color);
25 imagejpeg($im, $file);
28 imagedestroy($im);
H A Dpng2wbmp_error3.phpt18 $im = imagecreatetruecolor(120, 20);
19 $text_color = imagecolorallocate($im, 255, 255, 255);
20 imagestring($im, 1, 5, 5, 'A Simple Text String', $text_color);
25 imagepng($im, $file);
28 imagedestroy($im);
H A Dbug77269.phpt12 $im = imagecreate(2**28, 1);
13 if(is_resource($im)) {
14 imagescale($im, 1, 1, IMG_TRIANGLE);
H A Dpngcomp.phpt19 $im = imagecreatetruecolor(20,20);
20 imagefilledrectangle($im, 5,5, 10,10, 0xffffff);
21 imagepng($im, $cwd . '/test_pngcomp.png', 9);
H A Dimagecolorallocate_variation5.phpt14 /* Prototype : int imagecolorallocate(resource im, int red, int green, int blue)
20 $im = imagecreatetruecolor(200, 200);
42 var_dump( imagecolorallocate($im, $value, $green, $blue) );
43 var_dump( imagecolorallocate($im, $red, $value, $blue) );
44 var_dump( imagecolorallocate($im, $red, $green, $value) );
H A Dbug77479.phpt12 $im = imagecreate(40000, 20000);
13 imagecolorallocate($im, 0, 0, 0);
14 imagewbmp($im, __DIR__ . '/77479.wbmp');
H A Dbug77198_threshold.phpt13 $im = imagecreatetruecolor(8, 8);
14 imagefilledrectangle($im, 0, 0, 7, 7, 0xffffff);
15 imagesetpixel($im, $x, $y, 0x000000);
16 return $im;
H A Dbug73155.phpt9 $im = imagecreate(64, 64);
10 imagecolorallocate($im, 0, 0, 0);
13 imagegd2($im, null, 64, IMG_GD2_RAW);
/PHP-7.3/ext/gd/libgd/
H A Dgdtest.c22 gdImagePtr im, ref, im2, im3; in main() local
44 im = gdImageCreateFromPng (in); in main()
61 gdImagePng (im, out); in main()
78 iptr = gdImagePngPtr (im, &sz); in main()
93 gdImageGd2 (im, out, 128, 2); in main()
110 iptr = gdImageGd2Ptr (im, 128, 2, &sz); in main()
128 gdImageGd (im, out); in main()
145 iptr = gdImageGdPtr (im, &sz); in main()
187 gdImagePngToSink (im, &imgsnk); in main()
280 gdImageJpeg (im, out, -1); in main()
[all …]
H A Dgd_gif_out.c100 void * gdImageGifPtr (gdImagePtr im, int *size) in gdImageGifPtr() argument
104 gdImageGifCtx (im, out); in gdImageGifPtr()
110 void gdImageGif (gdImagePtr im, FILE * outFile) in gdImageGif() argument
113 gdImageGifCtx (im, out); in gdImageGif()
117 void gdImageGifCtx(gdImagePtr im, gdIOCtxPtr out) in gdImageGifCtx() argument
119 gdImagePtr pim = 0, tim = im; in gdImageGifCtx()
121 interlace = im->interlace; in gdImageGifCtx()
122 if (im->trueColor) { in gdImageGifCtx()
238 GIFNextPixel(gdImagePtr im, GifCtx *ctx) in GIFNextPixel() argument
397 compress( InitCodeSize+1, fp, im, &ctx ); in GIFEncode()
[all …]

Completed in 30 milliseconds

1234567