Lines Matching refs:im
146 ZEND_ARG_INFO(0, im)
156 ZEND_ARG_INFO(0, im)
160 ZEND_ARG_INFO(0, im)
166 ZEND_ARG_INFO(0, im)
175 ZEND_ARG_INFO(0, im)
180 ZEND_ARG_INFO(0, im)
189 ZEND_ARG_INFO(0, im)
201 ZEND_ARG_INFO(0, im)
206 ZEND_ARG_INFO(0, im)
211 ZEND_ARG_INFO(0, im)
216 ZEND_ARG_INFO(0, im)
224 ZEND_ARG_INFO(0, im)
232 ZEND_ARG_INFO(0, im)
240 ZEND_ARG_INFO(0, im)
271 ZEND_ARG_INFO(0, im)
278 ZEND_ARG_INFO(0, im)
283 ZEND_ARG_INFO(0, im)
358 ZEND_ARG_INFO(0, im)
364 ZEND_ARG_INFO(0, im)
370 ZEND_ARG_INFO(0, im)
379 ZEND_ARG_INFO(0, im)
387 ZEND_ARG_INFO(0, im)
394 ZEND_ARG_INFO(0, im)
400 ZEND_ARG_INFO(0, im)
405 ZEND_ARG_INFO(0, im)
413 ZEND_ARG_INFO(0, im)
420 ZEND_ARG_INFO(0, im)
424 ZEND_ARG_INFO(0, im)
436 ZEND_ARG_INFO(0, im)
442 ZEND_ARG_INFO(0, im)
449 ZEND_ARG_INFO(0, im)
456 ZEND_ARG_INFO(0, im)
461 ZEND_ARG_INFO(0, im)
468 ZEND_ARG_INFO(0, im)
475 ZEND_ARG_INFO(0, im)
484 ZEND_ARG_INFO(0, im)
489 ZEND_ARG_INFO(0, im)
495 ZEND_ARG_INFO(0, im)
502 ZEND_ARG_INFO(0, im)
511 ZEND_ARG_INFO(0, im)
520 ZEND_ARG_INFO(0, im)
529 ZEND_ARG_INFO(0, im)
538 ZEND_ARG_INFO(0, im)
549 ZEND_ARG_INFO(0, im)
558 ZEND_ARG_INFO(0, im)
566 ZEND_ARG_INFO(0, im)
573 ZEND_ARG_INFO(0, im)
577 ZEND_ARG_INFO(0, im)
582 ZEND_ARG_INFO(0, im)
587 ZEND_ARG_INFO(0, im)
594 ZEND_ARG_INFO(0, im)
601 ZEND_ARG_INFO(0, im)
616 ZEND_ARG_INFO(0, im)
625 ZEND_ARG_INFO(0, im)
634 ZEND_ARG_INFO(0, im)
643 ZEND_ARG_INFO(0, im)
700 ZEND_ARG_INFO(0, im)
704 ZEND_ARG_INFO(0, im)
708 ZEND_ARG_INFO(0, im)
716 ZEND_ARG_INFO(0, im)
730 ZEND_ARG_INFO(0, im)
750 ZEND_ARG_INFO(0, im)
762 ZEND_ARG_INFO(0, im)
788 ZEND_ARG_INFO(0, im)
797 ZEND_ARG_INFO(0, im)
804 ZEND_ARG_INFO(0, im)
809 ZEND_ARG_INFO(0, im)
814 ZEND_ARG_INFO(0, im)
819 ZEND_ARG_INFO(0, im)
826 ZEND_ARG_INFO(0, im)
833 ZEND_ARG_INFO(0, im)
849 ZEND_ARG_INFO(0, im)
854 ZEND_ARG_INFO(0, im)
1496 gdImagePtr im; in PHP_FUNCTION() local
1505 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
1522 gdImageSetStyle(im, stylearr, index); in PHP_FUNCTION()
1535 gdImagePtr im; in PHP_FUNCTION() local
1546 im = gdImageCreateTrueColor(x_size, y_size); in PHP_FUNCTION()
1548 if (!im) { in PHP_FUNCTION()
1552 RETURN_RES(zend_register_resource(im, le_gd)); in PHP_FUNCTION()
1561 gdImagePtr im; in PHP_FUNCTION() local
1567 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
1571 RETURN_BOOL(im->trueColor); in PHP_FUNCTION()
1582 gdImagePtr im; in PHP_FUNCTION() local
1588 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
1596 if (gdImageTrueColorToPalette(im, dither, (int)ncolors)) { in PHP_FUNCTION()
1610 gdImagePtr im; in PHP_FUNCTION() local
1616 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
1620 if (gdImagePaletteToTrueColor(im) == 0) { in PHP_FUNCTION()
1677 gdImagePtr im; in PHP_FUNCTION() local
1683 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
1687 gdImageSetThickness(im, thick); in PHP_FUNCTION()
1699 gdImagePtr im; in PHP_FUNCTION() local
1705 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
1709 gdImageFilledEllipse(im, cx, cy, w, h, color); in PHP_FUNCTION()
1721 gdImagePtr im; in PHP_FUNCTION() local
1728 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
1742 gdImageFilledArc(im, cx, cy, w, h, st, e, col, style); in PHP_FUNCTION()
1754 gdImagePtr im; in PHP_FUNCTION() local
1760 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
1764 gdImageAlphaBlending(im, blend); in PHP_FUNCTION()
1776 gdImagePtr im; in PHP_FUNCTION() local
1782 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
1786 gdImageSaveAlpha(im, save); in PHP_FUNCTION()
1798 gdImagePtr im; in PHP_FUNCTION() local
1804 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
1808 gdImageAlphaBlending(im, effect); in PHP_FUNCTION()
1820 gdImagePtr im; in PHP_FUNCTION() local
1827 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
1831 ct = gdImageColorAllocateAlpha(im, red, green, blue, alpha); in PHP_FUNCTION()
1845 gdImagePtr im; in PHP_FUNCTION() local
1851 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
1855 RETURN_LONG(gdImageColorResolveAlpha(im, red, green, blue, alpha)); in PHP_FUNCTION()
1865 gdImagePtr im; in PHP_FUNCTION() local
1871 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
1875 RETURN_LONG(gdImageColorClosestAlpha(im, red, green, blue, alpha)); in PHP_FUNCTION()
1885 gdImagePtr im; in PHP_FUNCTION() local
1891 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
1895 RETURN_LONG(gdImageColorExactAlpha(im, red, green, blue, alpha)); in PHP_FUNCTION()
1949 gdImagePtr im = NULL; in PHP_FUNCTION() local
1982 im = gdImageCreateTrueColor(Width, Height); in PHP_FUNCTION()
1983 if (im) { in PHP_FUNCTION()
1988 gdImageSetPixel(im, x, y, gdTrueColor(GetRValue(c), GetGValue(c), GetBValue(c))); in PHP_FUNCTION()
1998 if (!im) { in PHP_FUNCTION()
2001 RETURN_RES(zend_register_resource(im, le_gd)); in PHP_FUNCTION()
2017 gdImagePtr im; in PHP_FUNCTION() local
2039 im = gdImageCreateTrueColor(Width, Height); in PHP_FUNCTION()
2040 if (im) { in PHP_FUNCTION()
2045 gdImageSetPixel(im, x, y, gdTrueColor(GetRValue(c), GetGValue(c), GetBValue(c))); in PHP_FUNCTION()
2055 if (!im) { in PHP_FUNCTION()
2058 RETURN_RES(zend_register_resource(im, le_gd)); in PHP_FUNCTION()
2097 gdImagePtr im, tile; in PHP_FUNCTION() local
2103 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
2111 gdImageSetTile(im, tile); in PHP_FUNCTION()
2122 gdImagePtr im, tile; in PHP_FUNCTION() local
2128 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
2136 gdImageSetBrush(im, tile); in PHP_FUNCTION()
2147 gdImagePtr im; in PHP_FUNCTION() local
2158 im = gdImageCreate(x_size, y_size); in PHP_FUNCTION()
2160 if (!im) { in PHP_FUNCTION()
2164 RETURN_RES(zend_register_resource(im, le_gd)); in PHP_FUNCTION()
2263 gdImagePtr im; in _php_image_create_from_string() local
2272 im = (*ioctx_func_p)(io_ctx); in _php_image_create_from_string()
2273 if (!im) { in _php_image_create_from_string()
2281 return im; in _php_image_create_from_string()
2290 gdImagePtr im; in PHP_FUNCTION() local
2311 im = _php_image_create_from_string(data, "JPEG", gdImageCreateFromJpegCtx); in PHP_FUNCTION()
2320 im = _php_image_create_from_string(data, "PNG", gdImageCreateFromPngCtx); in PHP_FUNCTION()
2328 im = _php_image_create_from_string(data, "GIF", gdImageCreateFromGifCtx); in PHP_FUNCTION()
2332 im = _php_image_create_from_string(data, "WBMP", gdImageCreateFromWBMPCtx); in PHP_FUNCTION()
2336 im = _php_image_create_from_string(data, "GD2", gdImageCreateFromGd2Ctx); in PHP_FUNCTION()
2340 im = _php_image_create_from_string(data, "BMP", gdImageCreateFromBmpCtx); in PHP_FUNCTION()
2345 im = _php_image_create_from_string(data, "WEBP", gdImageCreateFromWebpCtx); in PHP_FUNCTION()
2357 if (!im) { in PHP_FUNCTION()
2362 RETURN_RES(zend_register_resource(im, le_gd)); in PHP_FUNCTION()
2373 gdImagePtr im = NULL; in _php_image_create_from() local
2429 im = (*ioctx_func_p)(io_ctx, srcx, srcy, width, height); in _php_image_create_from()
2431 im = (*ioctx_func_p)(io_ctx); in _php_image_create_from()
2444 if (!im && fp) { in _php_image_create_from()
2447 im = (*func_p)(fp, srcx, srcy, width, height); in _php_image_create_from()
2451 im = gdImageCreateFromXpm(file); in _php_image_create_from()
2458 im = gdImageCreateFromJpegEx(fp, ignore_warning); in _php_image_create_from()
2463 im = (*func_p)(fp); in _php_image_create_from()
2471 if (im) { in _php_image_create_from()
2472 RETVAL_RES(zend_register_resource(im, le_gd)); in _php_image_create_from()
2590 gdImagePtr im; in _php_image_output() local
2605 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(imgind), "Image", le_gd)) == NULL) { in _php_image_output()
2636 gdImageWBMP(im, q, fp); in _php_image_output()
2639 (*func_p)(im, fp, q); in _php_image_output()
2642 for (i = 0; i < gdImageColorsTotal(im); i++) { in _php_image_output()
2643 if (gdImageRed(im, i) == 0) break; in _php_image_output()
2645 (*func_p)(im, i, fp); in _php_image_output()
2648 (*func_p)(im, fp); in _php_image_output()
2654 (*func_p)(im, fp, q, t); in _php_image_output()
2660 (*func_p)(im, fp, q, t); in _php_image_output()
2685 gdImageWBMP(im, q, tmp); in _php_image_output()
2688 (*func_p)(im, tmp, q); in _php_image_output()
2691 for (i = 0; i < gdImageColorsTotal(im); i++) { in _php_image_output()
2692 if (gdImageRed(im, i) == 0) { in _php_image_output()
2696 (*func_p)(im, q, tmp); in _php_image_output()
2699 (*func_p)(im, tmp); in _php_image_output()
2705 (*func_p)(im, tmp, q, t); in _php_image_output()
2708 (*func_p)(im, tmp); in _php_image_output()
2813 gdImagePtr im; in PHP_FUNCTION() local
2819 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
2836 gdImagePtr im; in PHP_FUNCTION() local
2843 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
2847 ct = gdImageColorAllocate(im, red, green, blue); in PHP_FUNCTION()
2884 gdImagePtr im; in PHP_FUNCTION() local
2892 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
2896 if (gdImageTrueColor(im)) { in PHP_FUNCTION()
2897 if (im->tpixels && gdImageBoundsSafe(im, x, y)) { in PHP_FUNCTION()
2898 RETURN_LONG(gdImageTrueColorPixel(im, x, y)); in PHP_FUNCTION()
2904 if (im->pixels && gdImageBoundsSafe(im, x, y)) { in PHP_FUNCTION()
2905 RETURN_LONG(im->pixels[y][x]); in PHP_FUNCTION()
2920 gdImagePtr im; in PHP_FUNCTION() local
2926 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
2930 RETURN_LONG(gdImageColorClosest(im, red, green, blue)); in PHP_FUNCTION()
2940 gdImagePtr im; in PHP_FUNCTION() local
2946 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
2950 RETURN_LONG(gdImageColorClosestHWB(im, red, green, blue)); in PHP_FUNCTION()
2961 gdImagePtr im; in PHP_FUNCTION() local
2967 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
2972 if (gdImageTrueColor(im)) { in PHP_FUNCTION()
2978 if (col >= 0 && col < gdImageColorsTotal(im)) { in PHP_FUNCTION()
2979 gdImageColorDeallocate(im, col); in PHP_FUNCTION()
2994 gdImagePtr im; in PHP_FUNCTION() local
3000 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
3004 RETURN_LONG(gdImageColorResolve(im, red, green, blue)); in PHP_FUNCTION()
3014 gdImagePtr im; in PHP_FUNCTION() local
3020 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
3024 RETURN_LONG(gdImageColorExact(im, red, green, blue)); in PHP_FUNCTION()
3035 gdImagePtr im; in PHP_FUNCTION() local
3041 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
3047 if (col >= 0 && col < gdImageColorsTotal(im)) { in PHP_FUNCTION()
3048 im->red[col] = red; in PHP_FUNCTION()
3049 im->green[col] = green; in PHP_FUNCTION()
3050 im->blue[col] = blue; in PHP_FUNCTION()
3051 im->alpha[col] = alpha; in PHP_FUNCTION()
3065 gdImagePtr im; in PHP_FUNCTION() local
3071 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
3077 …if ((col >= 0 && gdImageTrueColor(im)) || (!gdImageTrueColor(im) && col >= 0 && col < gdImageColor… in PHP_FUNCTION()
3080 add_assoc_long(return_value,"red", gdImageRed(im,col)); in PHP_FUNCTION()
3081 add_assoc_long(return_value,"green", gdImageGreen(im,col)); in PHP_FUNCTION()
3082 add_assoc_long(return_value,"blue", gdImageBlue(im,col)); in PHP_FUNCTION()
3083 add_assoc_long(return_value,"alpha", gdImageAlpha(im,col)); in PHP_FUNCTION()
3096 gdImagePtr im; in PHP_FUNCTION() local
3111 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
3115 if (gdImageTrueColor(im)) { in PHP_FUNCTION()
3118 for (y = 0; y < gdImageSY(im); y++) { in PHP_FUNCTION()
3119 for (x = 0; x < gdImageSX(im); x++) { in PHP_FUNCTION()
3120 c = gdImageGetPixel(im, x, y); in PHP_FUNCTION()
3121 gdImageSetPixel(im, x, y, in PHP_FUNCTION()
3134 for (i = 0; i < gdImageColorsTotal(im); i++) { in PHP_FUNCTION()
3135 im->red[i] = (int)((pow((im->red[i] / 255.0), gamma) * 255) + .5); in PHP_FUNCTION()
3136 im->green[i] = (int)((pow((im->green[i] / 255.0), gamma) * 255) + .5); in PHP_FUNCTION()
3137 im->blue[i] = (int)((pow((im->blue[i] / 255.0), gamma) * 255) + .5); in PHP_FUNCTION()
3150 gdImagePtr im; in PHP_FUNCTION() local
3159 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
3163 gdImageSetPixel(im, x, y, col); in PHP_FUNCTION()
3174 gdImagePtr im; in PHP_FUNCTION() local
3180 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
3184 if (im->AA) { in PHP_FUNCTION()
3185 gdImageSetAntiAliased(im, col); in PHP_FUNCTION()
3188 gdImageLine(im, x1, y1, x2, y2, col); in PHP_FUNCTION()
3199 gdImagePtr im; in PHP_FUNCTION() local
3205 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
3209 gdImageDashedLine(im, x1, y1, x2, y2, col); in PHP_FUNCTION()
3220 gdImagePtr im; in PHP_FUNCTION() local
3226 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
3230 gdImageRectangle(im, x1, y1, x2, y2, col); in PHP_FUNCTION()
3241 gdImagePtr im; in PHP_FUNCTION() local
3247 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
3250 gdImageFilledRectangle(im, x1, y1, x2, y2, col); in PHP_FUNCTION()
3261 gdImagePtr im; in PHP_FUNCTION() local
3268 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
3282 gdImageArc(im, cx, cy, w, h, st, e, col); in PHP_FUNCTION()
3293 gdImagePtr im; in PHP_FUNCTION() local
3299 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
3303 gdImageEllipse(im, cx, cy, w, h, color); in PHP_FUNCTION()
3314 gdImagePtr im; in PHP_FUNCTION() local
3320 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
3324 gdImageFillToBorder(im, x, y, border, col); in PHP_FUNCTION()
3335 gdImagePtr im; in PHP_FUNCTION() local
3341 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
3345 gdImageFill(im, x, y, col); in PHP_FUNCTION()
3355 gdImagePtr im; in PHP_FUNCTION() local
3361 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
3365 RETURN_LONG(gdImageColorsTotal(im)); in PHP_FUNCTION()
3375 gdImagePtr im; in PHP_FUNCTION() local
3382 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
3387 gdImageColorTransparent(im, COL); in PHP_FUNCTION()
3390 RETURN_LONG(gdImageGetTransparent(im)); in PHP_FUNCTION()
3401 gdImagePtr im; in PHP_FUNCTION() local
3407 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
3412 gdImageInterlace(im, INT); in PHP_FUNCTION()
3415 RETURN_LONG(gdImageGetInterlaced(im)); in PHP_FUNCTION()
3429 gdImagePtr im; in php_imagepolygon() local
3437 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in php_imagepolygon()
3469 if (im->AA) { in php_imagepolygon()
3470 gdImageSetAntiAliased(im, col); in php_imagepolygon()
3475 gdImageOpenPolygon(im, points, npoints, col); in php_imagepolygon()
3478 gdImagePolygon(im, points, npoints, col); in php_imagepolygon()
3481 gdImageFilledPolygon(im, points, npoints, col); in php_imagepolygon()
3591 static void php_gdimagecharup(gdImagePtr im, gdFontPtr f, int x, int y, int c, int color) in php_gdimagecharup() argument
3605 gdImageSetPixel(im, px, py, color); in php_gdimagecharup()
3627 gdImagePtr im; in php_imagechar() local
3636 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in php_imagechar()
3657 gdImageChar(im, font, x, y, ch, col); in php_imagechar()
3660 php_gdimagecharup(im, font, x, y, ch, col); in php_imagechar()
3664 gdImageChar(im, font, x, y, (int) ((unsigned char) str[i]), col); in php_imagechar()
3671 gdImageCharUp(im, font, x, y, (int) str[i], col); in php_imagechar()
3862 gdImagePtr im; in PHP_FUNCTION() local
3868 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
3872 RETURN_LONG(gdImageSX(im)); in PHP_FUNCTION()
3881 gdImagePtr im; in PHP_FUNCTION() local
3887 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
3891 RETURN_LONG(gdImageSY(im)); in PHP_FUNCTION()
3900 gdImagePtr im; in PHP_FUNCTION() local
3907 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(im_zval), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
3911 gdImageSetClip(im, x1, y1, x2, y2); in PHP_FUNCTION()
3921 gdImagePtr im; in PHP_FUNCTION() local
3928 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(im_zval), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
3932 gdImageGetClip(im, &x1, &y1, &x2, &y2); in PHP_FUNCTION()
3988 gdImagePtr im=NULL; in php_imagettftext_common() local
4010 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in php_imagettftext_common()
4048 error = gdImageStringFTEx(im, brect, col, fontname, ptsize, angle, x, y, str, &strex); in php_imagettftext_common()
4051 error = gdImageStringFT(im, brect, col, fontname, ptsize, angle, x, y, str); in php_imagettftext_common()
4465 gdImagePtr im; in php_image_filter_pixelate() local
4473 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in php_image_filter_pixelate()
4477 if (gdImagePixelate(im, (int) blocksize, (const unsigned int) mode)) { in php_image_filter_pixelate()
4579 gdImagePtr im; in PHP_FUNCTION() local
4585 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
4591 gdImageFlipVertical(im); in PHP_FUNCTION()
4595 gdImageFlipHorizontal(im); in PHP_FUNCTION()
4599 gdImageFlipBoth(im); in PHP_FUNCTION()
4617 gdImagePtr im; in PHP_FUNCTION() local
4623 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
4627 if (im->trueColor) { in PHP_FUNCTION()
4628 im->AA = alias; in PHP_FUNCTION()
4640 gdImagePtr im; in PHP_FUNCTION() local
4650 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
4682 im_crop = gdImageCrop(im, &rect); in PHP_FUNCTION()
4700 gdImagePtr im; in PHP_FUNCTION() local
4707 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
4719 im_crop = gdImageCropAuto(im, mode); in PHP_FUNCTION()
4723 if (color < 0 || (!gdImageTrueColor(im) && color >= gdImageColorsTotal(im))) { in PHP_FUNCTION()
4727 im_crop = gdImageCropThreshold(im, color, (float) threshold); in PHP_FUNCTION()
4747 gdImagePtr im; in PHP_FUNCTION() local
4758 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
4766 src_x = gdImageSX(im); in PHP_FUNCTION()
4767 src_y = gdImageSY(im); in PHP_FUNCTION()
4781 old_method = im->interpolation_id; in PHP_FUNCTION()
4782 if (gdImageSetInterpolationMethod(im, method)) { in PHP_FUNCTION()
4783 im_scaled = gdImageScale(im, new_width, new_height); in PHP_FUNCTION()
4785 gdImageSetInterpolationMethod(im, old_method); in PHP_FUNCTION()
5045 gdImagePtr im; in PHP_FUNCTION() local
5052 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
5059 RETURN_BOOL(gdImageSetInterpolationMethod(im, (gdInterpolationMethod) method)); in PHP_FUNCTION()
5068 gdImagePtr im; in PHP_FUNCTION() local
5075 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { in PHP_FUNCTION()
5081 gdImageSetResolution(im, res_x, res_y); in PHP_FUNCTION()
5084 gdImageSetResolution(im, res_x, res_x); in PHP_FUNCTION()
5088 add_next_index_long(return_value, gdImageResolutionX(im)); in PHP_FUNCTION()
5089 add_next_index_long(return_value, gdImageResolutionY(im)); in PHP_FUNCTION()