Searched refs:im (Results 1 - 25 of 36) sorted by relevance

12

/PHP_TRUNK/ext/zip/examples/
H A Dim.php3 $im = imagecreatefromgif('zip://' . dirname(__FILE__) . '/test_im.zip#pear_item.gif'); variable
4 imagepng($im, 'a.png');
9 $im = imagecreatefromstring($im_string); variable
10 imagepng($im, 'b.png');
/PHP_TRUNK/ext/gd/libgd/
H A Dgd2copypal.c14 gdImagePtr im; local
42 im = gdImageCreateFromGd2 (in);
44 if (!im)
50 gdImagePaletteCopy (im, pal);
56 gdImageDestroy (im);
59 gdImageGd2 (im, out, 128, 2);
62 gdImageDestroy (im);
H A Dgd2time.c15 gdImagePtr im; local
46 im = gdImageCreateFromGd2Part (in, x, y, w, h);
49 if (!im)
54 gdImageDestroy (im);
H A Dgd2topng.c13 gdImagePtr im; local
26 im = gdImageCreateFromGd2 (in);
28 if (!im)
37 gdImageDestroy (im);
41 gdImagePng (im, out);
46 gdImageDestroy (im);
H A Dgd_gd.c11 extern void gdImageGd (gdImagePtr im, FILE * out);
22 int _gdGetColors (gdIOCtx * in, gdImagePtr im, int gd2xFlag) argument
34 if (trueColorFlag != im->trueColor) {
38 if (!im->trueColor) {
39 if (!gdGetWord(&im->colorsTotal, in)) {
42 if (im->colorsTotal > gdMaxColors) {
47 if (!gdGetInt(&im->transparent, in)) {
51 if (!gdGetByte(&im->colorsTotal, in)) {
54 if (!gdGetWord(&im->transparent, in)) {
57 if (im
99 gdImagePtr im; local
144 gdImagePtr im; local
157 gdImagePtr im; local
169 gdImagePtr im; local
212 _gdPutColors(gdImagePtr im, gdIOCtx * out) argument
231 _gdPutHeader(gdImagePtr im, gdIOCtx * out) argument
247 _gdImageGd(gdImagePtr im, gdIOCtx * out) argument
265 gdImageGd(gdImagePtr im, FILE * outFile) argument
272 gdImageGdPtr(gdImagePtr im, int *size) argument
[all...]
H A Dgd_gd2.c27 * from im->trueColor, and the load routine doesn't need to tell
48 extern int _gdGetColors(gdIOCtx * in, gdImagePtr im, int gd2xFlag);
49 extern void _gdPutColors(gdImagePtr im, gdIOCtx * out);
167 gdImagePtr im; local
175 im = gdImageCreateTrueColor(*sx, *sy);
177 im = gdImageCreate(*sx, *sy);
179 if (im == NULL) {
184 if (!_gdGetColors(in, im, (*vers) == 2)) {
188 GD2_DBG(php_gd_error("Image palette completed: %d colours", im->colorsTotal));
190 return im;
230 gdImagePtr im; local
241 gdImagePtr im; local
266 gdImagePtr im; local
392 gdImagePtr im; local
402 gdImagePtr im; local
431 gdImagePtr im; local
622 _gd2PutHeader(gdImagePtr im, gdIOCtx * out, int cs, int fmt, int cx, int cy) argument
642 _gdImageGd2(gdImagePtr im, gdIOCtx * out, int cs, int fmt) argument
810 gdImageGd2(gdImagePtr im, FILE * outFile, int cs, int fmt) argument
819 gdImageGd2Ptr(gdImagePtr im, int cs, int fmt, int *size) argument
[all...]
H A Dgd_pixelate.c3 int gdImagePixelate(gdImagePtr im, int block_size, const unsigned int mode) argument
14 for (y = 0; y < im->sy; y += block_size) {
15 for (x = 0; x < im->sx; x += block_size) {
16 if (gdImageBoundsSafe(im, x, y)) {
17 int c = gdImageGetPixel(im, x, y);
18 gdImageFilledRectangle(im, x, y, x + block_size - 1, y + block_size - 1, c);
24 for (y = 0; y < im->sy; y += block_size) {
25 for (x = 0; x < im->sx; x += block_size) {
34 if (!gdImageBoundsSafe(im, x + cx, y + cy)) {
37 c = gdImageGetPixel(im,
[all...]
H A Dgd_ss.c11 extern void gdImagePngToSink (gdImagePtr im, gdSinkPtr out);
20 void gdImagePngToSink (gdImagePtr im, gdSinkPtr outSink) argument
23 gdImagePngCtx(im, out);
30 gdImagePtr im; local
32 im = gdImageCreateFromPngCtx(in);
36 return im;
39 void gdImagePngToSink (gdImagePtr im, gdSinkPtr outSink) argument
H A Dgd_wbmp.c131 gdImagePtr im = NULL; local
139 if (!(im = gdImageCreate (wbmp->width, wbmp->height))) {
145 white = gdImageColorAllocate(im, 255, 255, 255);
147 black = gdImageColorAllocate(im, 0, 0, 0);
154 gdImageSetPixel(im, col, row, white);
156 gdImageSetPixel(im, col, row, black);
163 return im;
171 gdImagePtr im; local
173 im = gdImageCreateFromWBMPCtx(in);
176 return im;
181 gdImagePtr im; local
191 gdImageWBMP(gdImagePtr im, int fg, FILE * outFile) argument
201 gdImageWBMPPtr(gdImagePtr im, int *size, int fg) argument
[all...]
H A Dgdparttopng.c13 gdImagePtr im; local
36 im = gdImageCreateFromGd2Part (in, x, y, w, h);
38 if (!im)
47 gdImageDestroy (im);
51 gdImagePng (im, out);
56 gdImageDestroy (im);
H A Dgdtestft.c31 gdImagePtr im;
71 im = gdImageCreate (500, 500);
74 im = gdImageCreateTrueColor (x, y);
79 white = gdImageColorResolve (im, 255, 255, 255);
80 gdImageFilledRectangle (im, 0, 0, x, y, white);
81 black = gdImageColorResolve (im, 0, 0, 0);
87 err = gdImageStringFT (im, NULL, black, f, sz, angle, x, y, s);
100 gdImagePng (im, out);
104 gdImageDestroy (im);
H A Dgdtopng.c12 gdImagePtr im; local
25 im = gdImageCreateFromGd (in);
27 if (!im)
36 gdImageDestroy (im);
39 gdImagePng (im, out);
41 gdImageDestroy (im);
H A Dpngtogd.c13 gdImagePtr im; local
26 im = gdImageCreateFromPng (in);
28 if (!im)
37 gdImageDestroy (im);
40 gdImageGd (im, out);
42 gdImageDestroy (im);
H A Dpngtogd2.c14 gdImagePtr im; local
31 im = gdImageCreateFromPng (in);
33 if (!im)
42 gdImageDestroy (im);
47 gdImageGd2 (im, out, cs, fmt);
49 gdImageDestroy (im);
H A Dwebpng.c28 gdImagePtr im = 0; local
61 im = gdImageCreateFromPng (in);
64 if (!im)
92 gdImageInterlace (im, 1);
97 gdImageInterlace (im, 0);
124 gdImageColorTransparent (im, -1);
130 gdImageColorTransparent (im, index);
140 if (!im->trueColor)
144 for (j = 0; (j < gdImageColorsTotal (im)); j++)
149 gdImageRed (im,
[all...]
H A Dgd_transform.c3 void gdImageFlipVertical(gdImagePtr im) argument
7 if (im->trueColor) {
8 for (y = 0; y < im->sy / 2; y++) {
9 int *row_dst = im->tpixels[y];
10 int *row_src = im->tpixels[im->sy - 1 - y];
11 for (x = 0; x < im->sx; x++) {
14 row_dst[x] = im->tpixels[im->sy - 1 - y][x];
20 for (y = 0; y < im
31 gdImageFlipHorizontal(gdImagePtr im) argument
67 gdImageFlipBoth(gdImagePtr im) argument
[all...]
H A Dgd_png.c95 gdImagePtr im; local
97 im = gdImageCreateFromPngCtx(in);
100 return im;
105 gdImagePtr im; local
107 im = gdImageCreateFromPngCtx(in);
109 return im;
132 gdImagePtr im = NULL; local
196 im = gdImageCreateTrueColor((int) width, (int) height);
198 im = gdImageCreate((int) width, (int) height);
200 if (im
420 gdImagePngEx(gdImagePtr im, FILE * outFile, int level, int basefilter) argument
427 gdImagePng(gdImagePtr im, FILE * outFile) argument
434 gdImagePngPtr(gdImagePtr im, int *size) argument
445 gdImagePngPtrEx(gdImagePtr im, int *size, int level, int basefilter) argument
455 gdImagePngCtx(gdImagePtr im, gdIOCtx * outfile) argument
464 gdImagePngCtxEx(gdImagePtr im, gdIOCtx * outfile, int level, int basefilter) argument
[all...]
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, c
[all...]
H A Dgd.h407 void gdImageDestroy(gdImagePtr im);
416 void gdImageSetPixel(gdImagePtr im, int x, int y, int color);
418 int gdImageGetTrueColorPixel (gdImagePtr im, int x, int y);
419 int gdImageGetPixel(gdImagePtr im, int x, int y);
421 void gdImageAABlend(gdImagePtr im);
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);
428 void gdImageDashedLine(gdImagePtr im, int x1, int y1, int x2, int y2, int color);
431 void gdImageRectangle(gdImagePtr im, int x1, int y1, int x2, int y2, int color);
433 void gdImageFilledRectangle(gdImagePtr im, in
[all...]
H A Dgd_arc.c17 void gdImageEllipse(gdImagePtr im, int mx, int my, int w, int h, int c) argument
24 gdImageSetPixel(im,mx+a, my, c);
25 gdImageSetPixel(im,mx-a, my, c);
49 gdImageSetPixel(im,mx1, my1, c);
50 gdImageSetPixel(im,mx1, my2, c);
51 gdImageSetPixel(im,mx2, my1, c);
52 gdImageSetPixel(im,mx2, my2, c);
56 void gdImageFilledEllipse (gdImagePtr im, int mx, int my, int w, int h, int c) argument
67 gdImageSetPixel(im, x, my, c);
96 gdImageSetPixel(im,
[all...]
H A Dgd_crop.c14 * im2 = gdImageAutoCrop(im, GD_CROP_SIDES);
27 static int gdGuessBackgroundColorFromCorners(gdImagePtr im, int *color);
28 static int gdColorMatch(gdImagePtr im, int col1, int col2, float threshold);
105 * im - Source image
114 gdImagePtr gdImageCropAuto(gdImagePtr im, const unsigned int mode) argument
116 const int width = gdImageSX(im);
117 const int height = gdImageSY(im);
130 color = gdImageGetTransparent(im);
134 color = gdImageColorClosestAlpha(im, 0, 0, 0, 0);
138 color = gdImageColorClosestAlpha(im, 25
227 gdImageCropThreshold(gdImagePtr im, const unsigned int color, const float threshold) argument
304 gdGuessBackgroundColorFromCorners(gdImagePtr im, int *color) argument
344 gdColorMatch(gdImagePtr im, int col1, int col2, float threshold) argument
[all...]
H A Dgd.c94 static void gdImageBrushApply(gdImagePtr im, int x, int y);
95 static void gdImageTileApply(gdImagePtr im, int x, int y);
96 static void gdImageAntiAliasedApply(gdImagePtr im, int x, int y);
99 int gdImageGetTrueColorPixel(gdImagePtr im, int x, int y);
124 gdImagePtr im; local
134 im = (gdImage *) gdCalloc(1, sizeof(gdImage));
137 im->pixels = (unsigned char **) gdMalloc(sizeof(unsigned char *) * sy);
138 im->AA_opacity = (unsigned char **) gdMalloc(sizeof(unsigned char *) * sy);
139 im->polyInts = 0;
140 im
177 gdImagePtr im; local
229 gdImageDestroy(gdImagePtr im) argument
259 gdImageColorClosest(gdImagePtr im, int r, int g, int b) argument
264 gdImageColorClosestAlpha(gdImagePtr im, int r, int g, int b, int a) argument
430 gdImageColorClosestHWB(gdImagePtr im, int r, int g, int b) argument
455 gdImageColorExact(gdImagePtr im, int r, int g, int b) argument
460 gdImageColorExactAlpha(gdImagePtr im, int r, int g, int b, int a) argument
477 gdImageColorAllocate(gdImagePtr im, int r, int g, int b) argument
482 gdImageColorAllocateAlpha(gdImagePtr im, int r, int g, int b, int a) argument
522 gdImageColorResolve(gdImagePtr im, int r, int g, int b) argument
527 gdImageColorResolveAlpha(gdImagePtr im, int r, int g, int b, int a) argument
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
780 gdImageGetTrueColorPixel(gdImagePtr im, int x, int y) argument
791 gdImageBrushApply(gdImagePtr im, int x, int y) argument
867 gdImageTileApply(gdImagePtr im, int x, int y) argument
904 gdImageTileGet(gdImagePtr im, int x, int y) argument
933 gdImageAntiAliasedApply(gdImagePtr im, int px, int py) argument
995 gdImageGetPixel(gdImagePtr im, int x, int y) argument
1008 gdImageAABlend(gdImagePtr im) argument
1052 gdImageHLine(gdImagePtr im, int y, int x1, int x2, int col) argument
1071 gdImageVLine(gdImagePtr im, int x, int y1, int y2, int col) argument
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
1287 gdImageAALine(gdImagePtr im, int x1, int y1, int x2, int y2, int col) 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
1864 gdImageFill(gdImagePtr im, int x, int y, int nc) argument
1959 _gdImageFillTiled(gdImagePtr im, int x, int y, int nc) 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
2565 gdImagePolygon(gdImagePtr im, gdPointPtr p, int n, int c) argument
2614 gdImageFilledPolygon(gdImagePtr im, gdPointPtr p, int n, int c) argument
2726 gdImageSetStyle(gdImagePtr im, int *style, int noOfPixels) argument
2737 gdImageSetThickness(gdImagePtr im, int thickness) argument
2742 gdImageSetBrush(gdImagePtr im, gdImagePtr brush) argument
2755 gdImageSetTile(gdImagePtr im, gdImagePtr tile) argument
2768 gdImageSetAntiAliased(gdImagePtr im, int c) argument
2775 gdImageSetAntiAliasedDontBlend(gdImagePtr im, int c, int dont_blend) argument
2783 gdImageInterlace(gdImagePtr im, int interlaceArg) argument
2928 gdImageAlphaBlending(gdImagePtr im, int alphaBlendingArg) argument
2933 gdImageAntialias(gdImagePtr im, int antialias) argument
2940 gdImageSaveAlpha(gdImagePtr im, int saveAlphaArg) argument
2978 gdImageSetClip(gdImagePtr im, int x1, int y1, int x2, int y2) argument
3010 gdImageGetClip(gdImagePtr im, int *x1P, int *y1P, int *x2P, int *y2P) argument
[all...]
H A Dgd_webp.c15 gdImagePtr im; local
17 im = gdImageCreateFromWebpCtx(in);
20 return im;
26 gdImagePtr im; local
30 im = gdImageCreateFromWebpCtx(in);
32 return im;
42 gdImagePtr im; local
71 im = gdImageCreateTrueColor(width, height);
72 if (!im) {
80 gdImageDestroy(im);
100 gdImageWebpCtx(gdImagePtr im, gdIOCtx * outfile, int quantization) argument
155 gdImageWebpEx(gdImagePtr im, FILE * outFile, int quantization) argument
162 gdImageWebp(gdImagePtr im, FILE * outFile) argument
169 gdImageWebpPtr(gdImagePtr im, int *size) argument
180 gdImageWebpPtrEx(gdImagePtr im, int *size, int quantization) argument
[all...]
/PHP_TRUNK/ext/gd/
H A Dgd_ctx.c78 gdImagePtr im; local
106 if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(imgind), "Image", phpi_get_le_gd())) == NULL) {
169 (*func_p)(im, ctx, q);
175 (*func_p)(im, ctx, q);
178 (*func_p)(im, ctx, q, f);
183 for(i=0; i < gdImageColorsTotal(im); i++) {
184 if(!gdImageRed(im, i) && !gdImageGreen(im, i) && !gdImageBlue(im, i)) break;
189 (*func_p)(im, fil
[all...]
H A Dgd.c148 ZEND_ARG_INFO(0, im)
158 ZEND_ARG_INFO(0, im)
162 ZEND_ARG_INFO(0, im)
168 ZEND_ARG_INFO(0, im)
177 ZEND_ARG_INFO(0, im)
182 ZEND_ARG_INFO(0, im)
191 ZEND_ARG_INFO(0, im)
203 ZEND_ARG_INFO(0, im)
208 ZEND_ARG_INFO(0, im)
213 ZEND_ARG_INFO(0, im)
1428 gdImagePtr im; local
1460 gdImagePtr im; local
1486 gdImagePtr im; local
1507 gdImagePtr im; local
1532 gdImagePtr im; local
1599 gdImagePtr im; local
1621 gdImagePtr im; local
1643 gdImagePtr im; local
1676 gdImagePtr im; local
1698 gdImagePtr im; local
1720 gdImagePtr im; local
1742 gdImagePtr im; local
1767 gdImagePtr im; local
1787 gdImagePtr im; local
1807 gdImagePtr im; local
1875 gdImagePtr im = NULL; local
1960 gdImagePtr im; local
2040 gdImagePtr im, tile; local
2065 gdImagePtr im, tile; local
2090 gdImagePtr im; local
2198 gdImagePtr im; local
2225 gdImagePtr im; local
2295 gdImagePtr im = NULL; local
2502 gdImagePtr im; local
2727 gdImagePtr im; local
2750 gdImagePtr im; local
2798 gdImagePtr im; local
2832 gdImagePtr im; local
2852 gdImagePtr im; local
2873 gdImagePtr im; local
2906 gdImagePtr im; local
2926 gdImagePtr im; local
2947 gdImagePtr im; local
2977 gdImagePtr im; local
3008 gdImagePtr im; local
3055 gdImagePtr im; local
3076 gdImagePtr im; local
3104 gdImagePtr im; local
3125 gdImagePtr im; local
3146 gdImagePtr im; local
3166 gdImagePtr im; local
3198 gdImagePtr im; local
3219 gdImagePtr im; local
3240 gdImagePtr im; local
3260 gdImagePtr im; local
3280 gdImagePtr im; local
3306 gdImagePtr im; local
3333 gdImagePtr im; local
3477 php_gdimagecharup(gdImagePtr im, gdFontPtr f, int x, int y, int c, int color) argument
3513 gdImagePtr im; local
3748 gdImagePtr im; local
3767 gdImagePtr im; local
3827 gdImagePtr im=NULL; local
4360 gdImagePtr im; local
4478 gdImagePtr im; local
4517 gdImagePtr im; local
4537 gdImagePtr im; local
4597 gdImagePtr im; local
4644 gdImagePtr im; local
4935 gdImagePtr im; local
[all...]

Completed in 52 milliseconds

12