/PHP-5.4/ext/gd/libgd/ |
H A D | gd_gd.c | 86 im->open[i] = 0; in _gdGetColors() 99 gdImagePtr im; in _gdCreateFromFile() local 128 if(!im) { in _gdCreateFromFile() 135 return im; in _gdCreateFromFile() 144 gdImagePtr im; in gdImageCreateFromGd() local 152 return im; in gdImageCreateFromGd() 157 gdImagePtr im; in gdImageCreateFromGdPtr() local 162 return im; in gdImageCreateFromGdPtr() 169 gdImagePtr im; in gdImageCreateFromGdCtx() local 174 if (im == NULL) { in gdImageCreateFromGdCtx() [all …]
|
H A D | gd.h | 605 #define gdImageTrueColor(im) ((im)->trueColor) argument 607 #define gdImageSX(im) ((im)->sx) argument 608 #define gdImageSY(im) ((im)->sy) argument 609 #define gdImageColorsTotal(im) ((im)->colorsTotal) argument 611 (im)->red[(c)]) 615 (im)->blue[(c)]) 618 #define gdImageGetTransparent(im) ((im)->transparent) argument 619 #define gdImageGetInterlaced(im) ((im)->interlace) argument 626 #define gdImagePalettePixel(im, x, y) (im)->pixels[(y)][(x)] argument 627 #define gdImageTrueColorPixel(im, x, y) (im)->tpixels[(y)][(x)] argument [all …]
|
H A D | gd.c | 169 im->cx2 = im->sx - 1; in gdImageCreate() 170 im->cy2 = im->sy - 1; in gdImageCreate() 222 im->cx2 = im->sx - 1; in gdImageCreateTrueColor() 223 im->cy2 = im->sy - 1; in gdImageCreateTrueColor() 443 dist = HWB_Diff(im->red[i], im->green[i], im->blue[i], r, g, b); in gdImageColorClosestHWB() 468 if ((im->red[i] == r) && (im->green[i] == g) && (im->blue[i] == b) && (im->alpha[i] == a)) { in gdImageColorExactAlpha() 730 im->stylePos = im->stylePos % im->styleLength; in gdImageSetPixel() 741 im->stylePos = im->stylePos % im->styleLength; in gdImageSetPixel() 783 …return gdTrueColorAlpha(im->red[p], im->green[p], im->blue[p], (im->transparent == p) ? gdAlphaTra… in gdImageGetTrueColorPixel() 1884 wx2=im->sx;wy2=im->sy; in gdImageFill() [all …]
|
H A D | gd_pixelate.c | 14 for (y = 0; y < im->sy; y += block_size) { in gdImagePixelate() 15 for (x = 0; x < im->sx; x += block_size) { in gdImagePixelate() 16 if (gdImageBoundsSafe(im, x, y)) { in gdImagePixelate() 17 int c = gdImageGetPixel(im, x, y); in gdImagePixelate() 24 for (y = 0; y < im->sy; y += block_size) { in gdImagePixelate() 25 for (x = 0; x < im->sx; x += block_size) { in gdImagePixelate() 37 c = gdImageGetPixel(im, x + cx, y + cy); in gdImagePixelate() 38 a += gdImageAlpha(im, c); in gdImagePixelate() 39 r += gdImageRed(im, c); in gdImagePixelate() 40 g += gdImageGreen(im, c); in gdImagePixelate() [all …]
|
H A D | webpng.c | 28 gdImagePtr im = 0; in main() local 64 if (!im) in main() 140 if (!im->trueColor) in main() 149 gdImageRed (im, j), in main() 150 gdImageGreen (im, j), in main() 151 gdImageBlue (im, j), in main() 166 gdImageSX (im), gdImageSY (im), in main() 192 maxx = gdImageSX(im); in main() 193 maxy = gdImageSY(im); in main() 197 if (im->trueColor) { in main() [all …]
|
H A D | gd_png.c | 95 gdImagePtr im; in gdImageCreateFromPng() local 100 return im; in gdImageCreateFromPng() 105 gdImagePtr im; in gdImageCreateFromPngPtr() local 109 return im; in gdImageCreateFromPngPtr() 132 gdImagePtr im = NULL; in gdImageCreateFromPngCtx() local 199 if (im == NULL) { in gdImageCreateFromPngCtx() 221 if (im) { in gdImageCreateFromPngCtx() 337 open = im->open; in gdImageCreateFromPngCtx() 415 return im; in gdImageCreateFromPngCtx() 583 if (im->trueColor && !im->saveAlphaFlag && (transparent >= 0)) { in gdImagePngCtxEx() [all …]
|
H A D | gd_webp.c | 15 gdImagePtr im); 29 gdImagePtr im; in gdImageCreateFromWebp() local 34 return im; in gdImageCreateFromWebp() 43 gdImagePtr im; in gdImageCreateFromWebpPtr() local 54 if (!im) { in gdImageCreateFromWebpPtr() 58 return im; in gdImageCreateFromWebpPtr() 70 gdImagePtr im; in gdImageCreateFromWebpCtx() local 94 return im; in gdImageCreateFromWebpCtx() 157 int width = im->sx; in gdImageWebpCtx() 158 int height = im->sy; in gdImageWebpCtx() [all …]
|
H A D | gd_wbmp.c | 131 gdImagePtr im = NULL; in gdImageCreateFromWBMPCtx() local 154 gdImageSetPixel(im, col, row, white); in gdImageCreateFromWBMPCtx() 163 return im; in gdImageCreateFromWBMPCtx() 171 gdImagePtr im; in gdImageCreateFromWBMP() local 173 im = gdImageCreateFromWBMPCtx(in); in gdImageCreateFromWBMP() 176 return im; in gdImageCreateFromWBMP() 181 gdImagePtr im; in gdImageCreateFromWBMPPtr() local 183 im = gdImageCreateFromWBMPCtx(in); in gdImageCreateFromWBMPPtr() 185 return im; in gdImageCreateFromWBMPPtr() 194 gdImageWBMPCtx(im, fg, out); in gdImageWBMP() [all …]
|
H A D | gd_gd2.c | 167 gdImagePtr im; in _gd2CreateFromFile() local 190 return im; in _gd2CreateFromFile() 230 gdImagePtr im; in gdImageCreateFromGd2() local 236 return im; in gdImageCreateFromGd2() 241 gdImagePtr im; in gdImageCreateFromGd2Ptr() local 246 return im; in gdImageCreateFromGd2Ptr() 373 return im; in gdImageCreateFromGd2Ctx() 397 return im; in gdImageCreateFromGd2PartPtr() 409 return im; in gdImageCreateFromGd2Part() 604 return im; in gdImageCreateFromGd2PartCtx() [all …]
|
H A D | gd_ss.c | 11 extern void gdImagePngToSink (gdImagePtr im, gdSinkPtr out); 20 void gdImagePngToSink (gdImagePtr im, gdSinkPtr outSink) in gdImagePngToSink() argument 23 gdImagePngCtx(im, out); in gdImagePngToSink() 30 gdImagePtr im; in gdImageCreateFromPngSource() local 32 im = gdImageCreateFromPngCtx(in); in gdImageCreateFromPngSource() 36 return im; in gdImageCreateFromPngSource() 39 void gdImagePngToSink (gdImagePtr im, gdSinkPtr outSink) in gdImagePngToSink() argument
|
/PHP-5.4/ext/gd/tests/ |
H A D | colorclosest.phpt | 13 imagedestroy($im); 15 $im = imagecreate(5,5); 18 imagedestroy($im); 20 $im = imagecreate(5,5); 24 imagedestroy($im); 26 $im = imagecreate(5,5); 32 $im = imagecreate(5,5); 47 imagedestroy($im); 49 $im = imagecreate(5,5); 52 imagedestroy($im); [all …]
|
H A D | colorresolve.phpt | 10 $im = imagecreatetruecolor(5,5); 13 imagedestroy($im); 15 $im = imagecreate(5,5); 18 imagedestroy($im); 20 $im = imagecreate(5,5); 26 $im = imagecreate(5,5); 43 imagedestroy($im); 45 $im = imagecreate(5,5); 48 imagedestroy($im); 50 $im = imagecreate(5,5); [all …]
|
H A D | dashedlines.phpt | 9 $im = imagecreatetruecolor(6,6); 10 imagefill($im, 0,0, 0xffffff); 16 imagesetstyle($im, $style); 31 imagedestroy($im); 33 $im = imagecreatetruecolor(6,6); 34 imagefill($im, 0,0, 0xffffff); 37 imagesetstyle($im, $style); 51 imagedestroy($im); 55 imagefill($im, 0,0, 0xffffff); 58 imagesetstyle($im, $style); [all …]
|
H A D | lines.phpt | 9 $im = imagecreatetruecolor(6,6); 10 imagefill($im, 0,0, 0xffffff); 13 imageline($im, 0,0, 5,5); 17 imageline($im, 0,5, 5,5, 0x00ff00); 29 $im = imagecreatetruecolor(6,6); 30 imagefill($im, 0,0, 0xffffff); 45 $im = imagecreatetruecolor(6,6); 46 imagefill($im, 0,0, 0xffffff); 67 imagefill($im, 0,0, 0xffffff); 80 imagefill($im, 0,0, 0xffffff); [all …]
|
H A D | imagefttext.phpt | 17 function testrun($im, $fontfile) { 18 $sx = imagesx($im); 19 $sy = imagesy($im); 36 // imagecolordeallocate($im, $colour_w); 37 // imagecolordeallocate($im, $colour_b); 42 $im = imagecreate(256, 256); 43 var_dump(testrun($im, $fontfile_8859)); 44 imagedestroy($im); 46 $im = imagecreatetruecolor(256, 256); 47 var_dump(testrun($im, $fontfile_8859)); [all …]
|
H A D | colorexact.phpt | 10 $im = imagecreatetruecolor(5,5); 11 $c = imagecolorexact($im, 255,0,255); 12 $c2 = imagecolorexactalpha($im, 255,0,255, 100); 17 imagedestroy($im); 19 $im = imagecreate(5,5); 20 $c = imagecolorallocate($im, 255,0,255); 21 $c2 = imagecolorallocate($im, 255,200,0); 24 echo imagecolorexact($im, 255,0,255) . "\n"; 25 echo imagecolorexact($im, 255,200,0) . "\n"; 30 echo imagecolorexact($im, 12,12,12) . "\n"; [all …]
|
H A D | gif.phpt | 48 $im = imagecreate(10,10); 51 imagegif($im, $cwd . '/test_gif.gif'); 56 $im = imagecreate(10,10); 61 imagegif($im, $cwd . '/test_gif.gif'); 68 $im = imagecreate(10,10); 73 imagegif($im, $cwd . '/test_gif.gif'); 80 $im = imagecreate(10,10); 85 imagegif($im, $cwd . '/test_gif.gif'); 92 $im = imagecreate(10,10); 103 $im = imagecreate(10,10); [all …]
|
H A D | colorat.phpt | 9 $file = dirname(__FILE__) . '/im.wbmp'; 11 $im = imagecreatetruecolor(6,6); 12 imagefill($im, 0,0, 0xffffff); 13 imagesetpixel($im, 3,3, 0x0); 17 $c = imagecolorat($im, 3,3); 20 imagedestroy($im); 22 $im = imagecreate(6,6); 24 $c2 = imagecolorallocate($im, 0,0,0); 26 imagefill($im, 0,0, $c1); 27 imagesetpixel($im, 3,3, $c2); [all …]
|
H A D | bug36697.phpt | 13 $im = imagecreatetruecolor(192, 36); 14 $trans_color = imagecolorallocate($im, 255, 0, 0); 15 $color = imagecolorallocate($im, 255, 255, 255); 16 imagecolortransparent($im, $trans_color); 17 imagefilledrectangle($im, 0,0, 192,36, $trans_color); 18 $c = imagecolorat($im, 191,35); 19 imagegif($im, $dest); 20 imagedestroy($im); 21 $im = imagecreatefromgif($dest); 22 $c = imagecolorat($im, 191, 35); [all …]
|
H A D | createfromstring.phpt | 12 $im = imagecreatetruecolor(5,5); 13 imagefill($im, 0,0, 0xffffff); 14 imagesetpixel($im, 3,3, 0x0); 15 imagepng($im, $dir . '/tc.png'); 20 if (imagecolorat($im, 3,3) != 0x0) { 30 $im = imagecreate(5,5); 33 imagefill($im, 0,0, $c1); 34 imagesetpixel($im, 3,3, $c2); 35 imagepng($im, $dir . '/p.png'); 42 $c = imagecolorsforindex($im, imagecolorat($im, 3,3)); [all …]
|
H A D | libgd00100.phpt | 10 $im = imagecreatetruecolor(256, 256); 36 imagefilledpolygon($im, $points, 5, $yellow); 50 imagefilledpolygon($im, $points, 5, $purple); 64 imagefilledpolygon($im, $points, 5, $magenta); 78 imagefilledpolygon($im, $points, 5, $blue); 84 imagefilledpolygon($im, $diamond, 4, $green); 89 imagefilledpolygon($im, $diamond, 4, $red); 94 imagefilledpolygon($im, $diamond, 4, $cyan); 107 imagefilledpolygon($im, $points, 5, $black); 110 imagepng($im); [all …]
|
H A D | imagefilter.phpt | 26 $im = imagecreatefrompng($SOURCE_IMG); 27 if (imagefilter($im, constant($filt))) { 28 imagepng($im, $SAVE_DIR."/".$filt. ".png"); 36 $im = imagecreatefrompng($SOURCE_IMG); 38 if (imagefilter($im, IMG_FILTER_SMOOTH, -1924.124)) { 46 $im = imagecreatefrompng($SOURCE_IMG); 56 $im = imagecreatefrompng($SOURCE_IMG); 58 if (imagefilter($im, IMG_FILTER_CONTRAST, -90)) { 66 $im = imagecreatefrompng($SOURCE_IMG); 68 if (imagefilter($im, IMG_FILTER_BRIGHTNESS, 98)) { [all …]
|
H A D | imagefill_1.phpt | 14 $im = imagecreate(100,100); 15 $white = imagecolorallocate($im, 255,255,255); 16 $blue = imagecolorallocate($im, 0,0,255); 17 $green = imagecolorallocate($im, 0,255,0); 19 print_r(imagecolorat($im, 0,0)); 20 imagefill($im, 0,0,$white + 3); 21 print_r(imagecolorat($im, 0,0)); 22 imagedestroy($im);
|
H A D | libgd00191.phpt | 10 $im = imagecreatetruecolor(100, 100); 11 imagefilledrectangle($im, 0, 0, 100, 100, imagecolorallocate($im, 255, 255, 255)); 12 imagesetthickness($im, 20); 13 imagefilledellipse($im, 30, 50, 20, 20, imagecolorallocate($im, 0, 0, 0)); 14 $index = imagecolorat($im, 12, 28); 15 $arr = imagecolorsforindex($im, $index);
|
/PHP-5.4/ext/gd/ |
H A D | gd.c | 1656 if (!im) { in PHP_FUNCTION() 2048 if (im) { in PHP_FUNCTION() 2064 if (!im) { in PHP_FUNCTION() 2108 if (im) { in PHP_FUNCTION() 2123 if (!im) { in PHP_FUNCTION() 2220 if (!im) { in PHP_FUNCTION() 2323 if (!im) { in _php_image_create_from_string() 2339 return im; in _php_image_create_from_string() 2558 if (im) { in _php_image_create_from() 2986 if (im->tpixels && gdImageBoundsSafe(im, x, y)) { in PHP_FUNCTION() [all …]
|