/PHP-7.3/ext/gd/tests/ |
H A D | bug66882.phpt | 9 $im = imagerotate(imagecreate(10, 10), -90, 0); 10 var_dump(imagesy($im), imagesx($im));
|
H A D | bug69024.phpt | 9 $im = imagecreate(256, 256); 10 imagescale($im, 32, 32, IMG_BICUBIC); 11 imagedestroy($im);
|
H A D | bug67325.phpt | 15 $im = imagecreatefromjpeg($filename); 16 imagetruecolortopalette($im, 0, 256); 20 $components = imagecolorsforindex($im, $i); 27 imagedestroy($im);
|
H A D | bug66590.phpt | 14 $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 D | imagecolorclosesthwb.phpt | 10 $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 D | image2wbmp_error.phpt | 9 $im = imagecreate(10, 10); 10 imagecolorallocate($im, 0, 0, 0); 11 image2wbmp($im, __DIR__ . '/image2wbmp_error.wbmp');
|
H A D | colormatch.phpt | 10 $im = imagecreatetruecolor(5,5); 13 imagecolormatch($im, $im2); 17 imagedestroy($im);
|
H A D | bug66387.phpt | 12 $im = imagecreatetruecolor(20, 20); 13 $c = imagecolorallocate($im, 255, 0, 0); 14 imagefilltoborder($im, 0, -999355, $c, $c);
|
H A D | bug73157.phpt | 9 $im = imagecreate(8, 8); 10 imagecolorallocate($im, 0, 0, 0); 13 imagegd2($im, null, 256, IMG_GD2_RAW);
|
H A D | imagecreatefromstring_gif.phpt | 11 $im = imagecreatefromstring(file_get_contents(__DIR__ . '/imagecreatefromstring.gif')); 12 var_dump(imagesx($im)); 13 var_dump(imagesy($im));
|
H A D | imagecreatefromstring_png.phpt | 11 $im = imagecreatefromstring(file_get_contents(__DIR__ . '/imagecreatefromstring.gif')); 12 var_dump(imagesx($im)); 13 var_dump(imagesy($im));
|
H A D | imagecreatefromstring_webp.phpt | 11 $im = imagecreatefromstring(file_get_contents(__DIR__ . '/imagecreatefromstring.webp')); 12 var_dump(imagesx($im)); 13 var_dump(imagesy($im));
|
H A D | jpeg2wbmp_error1.phpt | 18 $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 D | png2wbmp_error1-mb.phpt | 18 $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 D | png2wbmp_error1.phpt | 18 $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 D | jpeg2wbmp_error3.phpt | 18 $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 D | png2wbmp_error3.phpt | 18 $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 D | bug77269.phpt | 12 $im = imagecreate(2**28, 1); 13 if(is_resource($im)) { 14 imagescale($im, 1, 1, IMG_TRIANGLE);
|
H A D | pngcomp.phpt | 19 $im = imagecreatetruecolor(20,20); 20 imagefilledrectangle($im, 5,5, 10,10, 0xffffff); 21 imagepng($im, $cwd . '/test_pngcomp.png', 9);
|
H A D | imagecolorallocate_variation5.phpt | 14 /* 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 D | bug77479.phpt | 12 $im = imagecreate(40000, 20000); 13 imagecolorallocate($im, 0, 0, 0); 14 imagewbmp($im, __DIR__ . '/77479.wbmp');
|
H A D | bug77198_threshold.phpt | 13 $im = imagecreatetruecolor(8, 8); 14 imagefilledrectangle($im, 0, 0, 7, 7, 0xffffff); 15 imagesetpixel($im, $x, $y, 0x000000); 16 return $im;
|
H A D | bug73155.phpt | 9 $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 D | gdtest.c | 22 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 D | gd_gif_out.c | 100 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 …]
|