Lines Matching defs:x

406 		snprintf(tmp, sizeof(tmp), "1.x");
1149 int x,y;
1151 for (x=0; x <= Width; x++) {
1152 int c = GetPixel(memDC, x,y);
1153 gdImageSetPixel(im, x, y, gdTrueColor(GetRValue(c), GetGValue(c), GetBValue(c)));
1203 int x,y;
1205 for (x=0; x <= Width; x++) {
1206 int c = GetPixel(memDC, x,y);
1207 gdImageSetPixel(im, x, y, gdTrueColor(GetRValue(c), GetGValue(c), GetBValue(c)));
2246 zend_long x, y;
2251 Z_PARAM_LONG(x)
2258 if (im->tpixels && gdImageBoundsSafe(im, x, y)) {
2259 RETURN_LONG(gdImageTrueColorPixel(im, x, y));
2261 php_error_docref(NULL, E_NOTICE, "" ZEND_LONG_FMT "," ZEND_LONG_FMT " is out of bounds", x, y);
2265 if (im->pixels && gdImageBoundsSafe(im, x, y)) {
2266 RETURN_LONG(im->pixels[y][x]);
2268 php_error_docref(NULL, E_NOTICE, "" ZEND_LONG_FMT "," ZEND_LONG_FMT " is out of bounds", x, y);
2501 int x, y, c;
2504 for (x = 0; x < gdImageSX(im); x++) {
2505 c = gdImageGetPixel(im, x, y);
2506 gdImageSetPixel(im, x, y,
2533 zend_long x, y, col;
2538 Z_PARAM_LONG(x)
2545 gdImageSetPixel(im, x, y, col);
2709 zend_long x, y, border, col;
2714 Z_PARAM_LONG(x)
2722 gdImageFillToBorder(im, x, y, border, col);
2731 zend_long x, y, col;
2736 Z_PARAM_LONG(x)
2743 gdImageFill(im, x, y, col);
2867 points[i].x = zval_get_long(var);
2970 static void php_gdimagecharup(gdImagePtr im, gdFontPtr f, int x, int y, int c, int color)
2982 for (px = x; (px < (x + f->h)); px++) {
3006 int ch = 0, col, x, y, i, l = 0;
3032 x = X;
3038 gdImageChar(im, font, x, y, ch, col);
3041 php_gdimagecharup(im, font, x, y, ch, col);
3045 gdImageChar(im, font, x, y, (int) ((unsigned char) str[i]), col);
3046 x += font->w;
3051 /* php_gdimagecharup(im, font, x, y, (int) str[i], col); */
3052 gdImageCharUp(im, font, x, y, (int) str[i], col);
3357 zend_long col = -1, x = 0, y = 0;
3370 if (zend_parse_parameters(ZEND_NUM_ARGS(), "Oddlllss|a", &IM, gd_image_ce, &ptsize, &angle, &x, &y, &col, &fontname, &fontname_len, &str, &str_len, &EXT) == FAILURE) {
3411 error = gdImageStringFTEx(im, brect, col, fontname, ptsize, angle, x, y, str, &strex);
3413 error = gdImageStringFT(im, brect, col, fontname, ptsize, angle, x, y, str);
3830 /* {{{ Crop an image using the given coordinates and size, x, y, width and height. */
3847 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(z_rect), "x", sizeof("x") -1)) != NULL) {
3848 rect.x = zval_get_long(tmp);
3850 zend_argument_value_error(2, "must have an \"x\" key");
4056 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(z_rect), "x", sizeof("x") - 1)) != NULL) {
4057 rect.x = zval_get_long(tmp);
4059 zend_argument_value_error(3, "must have an \"x\" key");
4115 double x, y;
4121 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(options), "x", sizeof("x") - 1)) != NULL) {
4122 x = zval_get_double(tmp);
4124 zend_argument_value_error(2, "must have an \"x\" key");
4136 res = gdAffineTranslate(affine, x, y);
4138 res = gdAffineScale(affine, x, y);