Searched refs:color (Results 1 - 19 of 19) sorted by relevance

/PHP_TRUNK/Zend/
H A Dbench.php52 $x=0; $y=0; $w2=0; $h2=0; $color=0;
62 $color=1000; variable
65 while( ((($re2+$im2)<1000000) && $color>0)) {
70 $color=$color-1; variable
72 if ( $color==0 ) {
H A Dzend_gc.c66 # define GC_TRACE_SET_COLOR(ref, color) \
67 GC_TRACE_REF(ref, "->%s", gc_color_name(color))
86 static const char *gc_color_name(uint32_t color) { argument
87 switch (color) {
644 /* optimization: color is already GC_BLACK (0) */
653 /* optimization: color is already GC_BLACK (0) */
672 /* optimization: color is already GC_BLACK (0) */
718 /* optimization: color is GC_BLACK (0) */
764 /* optimization: color is GC_BLACK (0) */
/PHP_TRUNK/ext/gd/libgd/
H A Dgd_color.c19 int color, rgb; local
33 return -4; /* At least 1 color must be allocated */
41 color = im2->pixels[y][x];
43 bp = buf + (color * 5);
52 for (color=0; color<im2->colorsTotal; color++) {
55 im2->red[color] = *(bp++) / count;
56 im2->green[color] = *(bp++) / count;
57 im2->blue[color]
[all...]
H A Dwbmp.c111 createwbmp (int width, int height, int color) argument
137 for (i = 0; i < width * height; wbmp->bitmap[i++] = color);
H A Dwbmp.h46 Wbmp *createwbmp( int width, int height, int color );
H A Dgd_arc_f_buggy.c16 gdImageFilledEllipse (gdImagePtr im, int cx, int cy, int width, int height, int color)
18 gdImageFilledArc (im, cx, cy, width, height, 0, 360, color, gdChord);
22 gdImageFilledArc (gdImagePtr im, int cx, int cy, int width, int height, int s, int e, int color, int style)
110 gdImageFilledArc (im, cx, cy, width, height, s, (i + 1) * 90, color, gdChord);
118 gdImageFilledArc (im, cx, cy, width, height, (i + 1) * 90, e, color, gdChord);
124 gdImageFilledPolygon (im, pt, 3, color);
125 gdImagePolygon (im, pt, 3, color);
131 gdImageFilledPolygon (im, pt, 4, color);
132 gdImagePolygon (im, pt, 4, color);
137 gdImageFilledArc (im, cx, cy, width, height, (i + 1) * 90, (i + 2) * 90, color, gdChor
[all...]
H A Dgd.h62 access sx, sy, the color table, and colorsTotal for
102 source color is composited with the destination color
103 based on the alpha channel value of the source color.
104 The resulting color is opaque. */
339 /* NOT the same as the transparent color index.
411 alpha channel value of 'color'; default is to overwrite.
416 void gdImageSetPixel(gdImagePtr im, int x, int y, int color);
423 void gdImageLine(gdImagePtr im, int x1, int y1, int x2, int y2, int color);
424 void gdImageAALine(gdImagePtr im, int x1, int y1, int x2, int y2, int color);
[all...]
H A Dgd_crop.c5 * the borders color), using a given color (with or without tolerance)
27 static int gdGuessBackgroundColorFromCorners(gdImagePtr im, int *color);
120 int color, corners, match; local
130 color = gdImageGetTransparent(im);
134 color = gdImageColorClosestAlpha(im, 0, 0, 0, 0);
138 color = gdImageColorClosestAlpha(im, 255, 255, 255, 0);
142 corners = gdGuessBackgroundColorFromCorners(im, &color);
147 color = gdImageGetTransparent(im);
148 if (color
227 gdImageCropThreshold(gdImagePtr im, const unsigned int color, const float threshold) argument
304 gdGuessBackgroundColorFromCorners(gdImagePtr im, int *color) argument
[all...]
H A Dgd_interpolation.c30 This ensures that filters do not corrupt areas of constant color.
33 rounded to the nearest pixel color value instead of
759 /* get color values of neighbouring pixels */
769 /* component-wise summing-up of color values */
791 * Returns the interpolated color value using the default interpolation
792 * method. The returned color is always in the ARGB format (truecolor).
1160 static inline int getPixelOverflowColorTC(gdImagePtr im, const int x, const int y, const int color) argument
1260 /* zero for the background color, nothig gets outside anyway */
H A Dgd.c514 * if ((color=gdImageColorExact(im,R,G,B)) < 0)
515 * if ((color=gdImageColorAllocate(im,R,G,B)) < 0)
516 * color=gdImageColorClosest(im,R,G,B);
519 * return a color index in one search over the color table.
548 /* don't ever resolve to the color that has
549 * been designated as the transparent color */
561 return c; /* Return exact match color */
573 return ct; /* Return closest available color */
582 return op; /* Return newly allocated color */
585 gdImageColorDeallocate(gdImagePtr im, int color) argument
594 gdImageColorTransparent(gdImagePtr im, int color) argument
718 gdImageSetPixel(gdImagePtr im, int x, int y, int color) argument
1011 int color = im->AA_color, color_red, color_green, color_blue; local
1091 gdImageLine(gdImagePtr im, int x1, int y1, int x2, int y2, int color) argument
1266 gdImageSetAAPixelColor(gdImagePtr im, int x, int y, int color, int t) argument
1398 gdImageDashedLine(gdImagePtr im, int x1, int y1, int x2, int y2, int color) argument
1512 dashedSet(gdImagePtr im, int x, int y, int color, int *onP, int *dashStepP, int wid, int vert) argument
1540 gdImageChar(gdImagePtr im, gdFontPtr f, int x, int y, int c, int color) argument
1566 gdImageCharUp(gdImagePtr im, gdFontPtr f, int x, int y, int c, int color) argument
1592 gdImageString(gdImagePtr im, gdFontPtr f, int x, int y, unsigned char *s, int color) argument
1603 gdImageStringUp(gdImagePtr im, gdFontPtr f, int x, int y, unsigned char *s, int color) argument
1616 gdImageString16(gdImagePtr im, gdFontPtr f, int x, int y, unsigned short *s, int color) argument
1627 gdImageStringUp16(gdImagePtr im, gdFontPtr f, int x, int y, unsigned short *s, int color) argument
1666 gdImageArc(gdImagePtr im, int cx, int cy, int w, int h, int s, int e, int color) argument
1675 gdImageFilledArc(gdImagePtr im, int cx, int cy, int w, int h, int s, int e, int color, int style) argument
1758 gdImageFillToBorder(gdImagePtr im, int x, int y, int border, int color) argument
2034 gdImageRectangle(gdImagePtr im, int x1, int y1, int x2, int y2, int color) argument
2115 gdImageFilledRectangle(gdImagePtr im, int x1, int y1, int x2, int y2, int color) argument
[all...]
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.h31 short color; variable
H A Dphp_cli_server.c225 "body { background-color: #fcfcfc; color: #333333; margin: 0; padding:0; }\n" \
226 "h1 { font-size: 1.5em; font-weight: normal; background-color: #9999cc; min-height:2em; line-height:2em; border-bottom: 1px inset black; margin: 0; }\n" \
228 "code.url { background-color: #eeeeee; font-family:monospace; padding:0 2px;}\n" \
427 cg->color = 0;
431 STD_PHP_INI_BOOLEAN("cli_server.color", "0", PHP_INI_ALL, OnUpdateBool, color, zend_cli_server_globals, cli_server_globals)
1080 int color = 0, effective_status = status; local
1102 if (CLI_SERVER_G(color) && php_cli_is_output_tty() == OUTPUT_IS_TTY) {
1105 color
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_set.h30 PHPDBG_SET(color); variable
H A Dphpdbg_set.c36 PHPDBG_SET_COMMAND_D(color, "usage: set color <element> <color>", 'c', set_color, NULL, "ss", PHPDBG_ASYNC_SAFE),
107 PHPDBG_SET(color) /* {{{ */
109 const phpdbg_color_t *color = phpdbg_get_color(param->next->str, param->next->len); local
111 if (!color) {
112 phpdbg_error("setcolor", "type=\"nocolor\"", "Failed to find the requested color (%s)", param->next->str);
118 phpdbg_notice("setcolor", "type=\"prompt\" color=\"%s\" code=\"%s\"", "setting prompt color to %s (%s)", color
[all...]
H A Dphpdbg_utils.h38 #define PHPDBG_COLOR_D(color, code) \
39 {color, sizeof(color)-1, code}
67 PHPDBG_API void phpdbg_set_color(int element, const phpdbg_color_t *color);
H A Dphpdbg_utils.c43 /* {{{ color structures */
232 const phpdbg_color_t *color = colors; local
234 while (color && color->name) {
235 if (name_length == color->name_length &&
236 memcmp(name, color->name, name_length) == SUCCESS) {
237 phpdbg_debug("phpdbg_get_color(%s, %lu): %s", name, name_length, color->code);
238 return color;
240 ++color;
248 PHPDBG_API void phpdbg_set_color(int element, const phpdbg_color_t *color) /* {{{ */ argument
255 const phpdbg_color_t *color = phpdbg_get_color(name, name_length); local
[all...]
H A Dphpdbg.c378 /* {{{ proto void phpdbg_color(integer element, string color) */
382 char *color = NULL; local
385 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ls", &element, &color, &color_len) == FAILURE) {
393 phpdbg_set_color_ex(element, color, color_len);
396 default: zend_error(E_ERROR, "phpdbg detected an incorrect color constant");
701 ZEND_ARG_INFO(0, color)
/PHP_TRUNK/ext/gd/tests/
H A Dsimilarity.inc11 * @param int $color
18 function get_rgb($color, &$red, &$green, &$blue)
20 // assumes $color is an RGB value
21 $red = ($color >> 16) & 0xFF;
22 $green = ($color >> 8) & 0xFF;
23 $blue = $color & 0xFF;
/PHP_TRUNK/ext/gd/
H A Dgd.c187 ZEND_ARG_INFO(0, color)
461 ZEND_ARG_INFO(0, color)
539 ZEND_ARG_INFO(0, color)
790 ZEND_ARG_INFO(0, color)
1456 Create a new true color image */
1551 Makes the colors of the palette version of an image more closely match the true color version */
1584 php_error_docref(NULL, E_WARNING, "Image2 must have at least one color" );
1615 /* {{{ proto bool imagefilledellipse(resource im, int cx, int cy, int w, int h, int color)
1620 zend_long cx, cy, w, h, color; local
1623 if (zend_parse_parameters(ZEND_NUM_ARGS(), "rlllll", &IM, &cx, &cy, &w, &h, &color)
2014 zend_long color; local
2945 zend_long color, red, green, blue, alpha = 0; local
3197 zend_long cx, cy, w, h, color; local
3477 php_gdimagecharup(gdImagePtr im, gdFontPtr f, int x, int y, int c, int color) argument
3943 int color, color_org, median; local
4002 int color, color_org, median; local
4595 zend_long color = -1; local
[all...]

Completed in 838 milliseconds