/PHP-7.4/ext/gd/libgd/ |
H A D | gd_gif_out.c | 103 void * gdImageGifPtr (gdImagePtr im, int *size) in gdImageGifPtr() argument 107 if (!_gdImageGifCtx(im, out)) { in gdImageGifPtr() 116 void gdImageGif (gdImagePtr im, FILE * outFile) in gdImageGif() argument 119 gdImageGifCtx (im, out); in gdImageGif() 123 void gdImageGifCtx(gdImagePtr im, gdIOCtxPtr out) in gdImageGifCtx() argument 125 _gdImageGifCtx(im, out); in gdImageGifCtx() 131 gdImagePtr pim = 0, tim = im; in _gdImageGifCtx() 133 interlace = im->interlace; in _gdImageGifCtx() 134 if (im->trueColor) { in _gdImageGifCtx() 252 GIFNextPixel(gdImagePtr im, GifCtx *ctx) in GIFNextPixel() argument [all …]
|
H A D | gdft.c | 580 gdImagePtr im; local 586 im = a->im = b->im; 597 if (im->trueColor) { 611 (pixel * im->red[fg] + npixel * im->red[bg]) / NUMCOLORS, 612 (pixel * im->green[fg] + npixel * im->green[bg]) / NUMCOLORS, 613 (pixel * im->blue[fg] + npixel * im->blue[bg]) / NUMCOLORS); 637 tc_key.im = im; 639 if (im->trueColor) { 646 if ((y > im->cy2) || (y < im->cy1)) { 676 if ((x > im->cx2) || (x < im->cx1)) { [all …]
|
H A D | gd_interpolation.c | 674 #define colorIndex2RGBA(c) gdTrueColorAlpha(im->red[(c)], im->green[(c)], im->blue[(c)], im->alpha[… 675 #define colorIndex2RGBcustomA(c, a) gdTrueColorAlpha(im->red[(c)], im->green[(c)], im->blue[(c)], i… 714 if (im->trueColor) { in getPixelInterpolateWeight() 720 r = (int)(m1*im->red[(c1)] + m2*im->red[(c2)] + m3*im->red[(c3)] + m4*im->red[(c4)]); in getPixelInterpolateWeight() 721 g = (int)(m1*im->green[(c1)] + m2*im->green[(c2)] + m3*im->green[(c3)] + m4*im->green[(c4)]); in getPixelInterpolateWeight() 722 b = (int)(m1*im->blue[(c1)] + m2*im->blue[(c2)] + m3*im->blue[(c3)] + m4*im->blue[(c4)]); in getPixelInterpolateWeight() 723 a = (int)(m1*im->alpha[(c1)] + m2*im->alpha[(c2)] + m3*im->alpha[(c3)] + m4*im->alpha[(c4)]); in getPixelInterpolateWeight() 792 if (im->trueColor) { in getPixelInterpolated() 1105 if (im->trueColor) { in gdImageScaleNearestNeighbour() 1162 …new_img->transparent = gdTrueColorAlpha(im->red[transparent], im->green[transparent], im->blue[tra… in gdImageScaleBilinearPalette() [all …]
|
H A D | gd_filter.c | 37 return gdImageScatterEx(im, &s); in gdImageScatter() 49 return gdImageScatterEx(im, &s); in gdImageScatterColor() 70 for (y = 0; y < im->sy; y++) { in gdImageScatterEx() 71 for (x = 0; x < im->sx; x++) { in gdImageScatterEx() 79 pxl = gdImageGetPixel(im, x, y); in gdImageScatterEx() 92 for (y = 0; y < im->sy; y++) { in gdImageScatterEx() 93 for (x = 0; x < im->sx; x++) { in gdImageScatterEx() 101 pxl = gdImageGetPixel(im, x, y); in gdImageScatterEx() 105 gdImageSetPixel(im, x, y, new_pxl); in gdImageScatterEx() 534 int gdImageEmboss(gdImagePtr im) in gdImageEmboss() argument [all …]
|
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 …]
|
/PHP-7.4/ext/gd/tests/ |
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 | colormatch.phpt | 10 $im = imagecreatetruecolor(5,5); 13 imagecolormatch($im, $im2); 17 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 | 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_webp.phpt | 11 $im = imagecreatefromstring(file_get_contents(__DIR__ . '/imagecreatefromstring.webp')); 12 var_dump(imagesx($im)); 13 var_dump(imagesy($im));
|
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 | 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 | bug77479.phpt | 12 $im = imagecreate(40000, 20000); 13 imagecolorallocate($im, 0, 0, 0); 14 imagewbmp($im, __DIR__ . '/77479.wbmp');
|
H A D | bug73155.phpt | 9 $im = imagecreate(64, 64); 10 imagecolorallocate($im, 0, 0, 0); 13 imagegd2($im, null, 64, IMG_GD2_RAW);
|
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 | bug72696.phpt | 9 $im = imagecreatetruecolor(10, 10); 10 imagefilltoborder($im, 0, 0, 1, -2);
|
H A D | bug39082.phpt | 11 $im = imagecreatetruecolor(1,1); 12 imagegif($im);
|