亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? gd.c

?? linux平臺下的多系統(tǒng)漏洞掃描工具客戶端
?? C
?? 第 1 頁 / 共 4 頁
字號:
       }       /* Many (perhaps most) of these colors will remain marked open. */       im->colorsTotal = gdMaxColors;       /*       **  Initialize the Compression routines       */       if (! ReadOK(fd,&c,1)) {               return;        }       if (LWZReadByte(fd, TRUE, c) < 0) {               return;       }       /*       **  If this is an "uninteresting picture" ignore it.       */       if (ignore) {               while (LWZReadByte(fd, FALSE, c) >= 0)                       ;               return;       }       while ((v = LWZReadByte(fd,FALSE,c)) >= 0 ) {               /* This how we recognize which colors are actually used. */               if (im->open[v]) {                       im->open[v] = 0;               }               gdImageSetPixel(im, xpos, ypos, v);               ++xpos;               if (xpos == len) {                       xpos = 0;                       if (interlace) {                               switch (pass) {                               case 0:                               case 1:                                       ypos += 8; break;                               case 2:                                       ypos += 4; break;                               case 3:                                       ypos += 2; break;                               }                               if (ypos >= height) {                                       ++pass;                                       switch (pass) {                                       case 1:                                               ypos = 4; break;                                       case 2:                                               ypos = 2; break;                                       case 3:                                               ypos = 1; break;                                       default:                                               goto fini;                                       }                               }                       } else {                               ++ypos;                       }               }               if (ypos >= height)                       break;       }fini:       if (LWZReadByte(fd,FALSE,c)>=0) {               /* Ignore extra */       }}void gdImageRectangle(gdImagePtr im, int x1, int y1, int x2, int y2, int color){	gdImageLine(im, x1, y1, x2, y1, color);			gdImageLine(im, x1, y2, x2, y2, color);			gdImageLine(im, x1, y1, x1, y2, color);	gdImageLine(im, x2, y1, x2, y2, color);}void gdImageFilledRectangle(gdImagePtr im, int x1, int y1, int x2, int y2, int color){	int x, y;	for (y=y1; (y<=y2); y++) {		for (x=x1; (x<=x2); x++) {			gdImageSetPixel(im, x, y, color);		}	}}void gdImageCopy(gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int w, int h){	int c;	int x, y;	int tox, toy;	int i;	int colorMap[gdMaxColors];	for (i=0; (i<gdMaxColors); i++) {		colorMap[i] = (-1);	}	toy = dstY;	for (y=srcY; (y < (srcY + h)); y++) {		tox = dstX;		for (x=srcX; (x < (srcX + w)); x++) {			int nc;			c = gdImageGetPixel(src, x, y);			/* Added 7/24/95: support transparent copies */			if (gdImageGetTransparent(src) == c) {				tox++;				continue;			}			/* Have we established a mapping for this color? */			if (colorMap[c] == (-1)) {				/* If it's the same image, mapping is trivial */				if (dst == src) {					nc = c;				} else { 					/* First look for an exact match */					nc = gdImageColorExact(dst,						src->red[c], src->green[c],						src->blue[c]);				}					if (nc == (-1)) {					/* No, so try to allocate it */					nc = gdImageColorAllocate(dst,						src->red[c], src->green[c],						src->blue[c]);					/* If we're out of colors, go for the						closest color */					if (nc == (-1)) {						nc = gdImageColorClosest(dst,							src->red[c], src->green[c],							src->blue[c]);					}				}				colorMap[c] = nc;			}			gdImageSetPixel(dst, tox, toy, colorMap[c]);			tox++;		}		toy++;	}}			void gdImageCopyResized(gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int dstW, int dstH, int srcW, int srcH){	int c;	int x, y;	int tox, toy;	int ydest;	int i;	int colorMap[gdMaxColors];	/* Stretch vectors */	int *stx;	int *sty;	/* We only need to use floating point to determine the correct		stretch vector for one line's worth. */	double accum;	stx = (int *) malloc(sizeof(int) * srcW);	sty = (int *) malloc(sizeof(int) * srcH);	accum = 0;	for (i=0; (i < srcW); i++) {		int got;		accum += (double)dstW/(double)srcW;		got = floor(accum);		stx[i] = got;		accum -= got;	}	accum = 0;	for (i=0; (i < srcH); i++) {		int got;		accum += (double)dstH/(double)srcH;		got = floor(accum);		sty[i] = got;		accum -= got;	}	for (i=0; (i<gdMaxColors); i++) {		colorMap[i] = (-1);	}	toy = dstY;	for (y=srcY; (y < (srcY + srcH)); y++) {		for (ydest=0; (ydest < sty[y-srcY]); ydest++) {			tox = dstX;			for (x=srcX; (x < (srcX + srcW)); x++) {				int nc;				if (!stx[x - srcX]) {					continue;				}				c = gdImageGetPixel(src, x, y);				/* Added 7/24/95: support transparent copies */				if (gdImageGetTransparent(src) == c) {					tox += stx[x-srcX];					continue;				}				/* Have we established a mapping for this color? */				if (colorMap[c] == (-1)) {					/* If it's the same image, mapping is trivial */					if (dst == src) {						nc = c;					} else { 						/* First look for an exact match */						nc = gdImageColorExact(dst,							src->red[c], src->green[c],							src->blue[c]);					}						if (nc == (-1)) {						/* No, so try to allocate it */						nc = gdImageColorAllocate(dst,							src->red[c], src->green[c],							src->blue[c]);						/* If we're out of colors, go for the							closest color */						if (nc == (-1)) {							nc = gdImageColorClosest(dst,								src->red[c], src->green[c],								src->blue[c]);						}					}					colorMap[c] = nc;				}				for (i=0; (i < stx[x - srcX]); i++) {					gdImageSetPixel(dst, tox, toy, colorMap[c]);					tox++;				}			}			toy++;		}	}	free(stx);	free(sty);}int gdGetWord(int *result, FILE *in){	int r;	r = getc(in);	if (r == EOF) {		return 0;	}	*result = r << 8;	r = getc(in);		if (r == EOF) {		return 0;	}	*result += r;	return 1;}void gdPutWord(int w, FILE *out){	putc((unsigned char)(w >> 8), out);	putc((unsigned char)(w & 0xFF), out);}int gdGetByte(int *result, FILE *in){	int r;	r = getc(in);	if (r == EOF) {		return 0;	}	*result = r;	return 1;}gdImagePtr gdImageCreateFromGd(FILE *in){	int sx, sy;	int x, y;	int i;	gdImagePtr im;	if (!gdGetWord(&sx, in)) {		goto fail1;	}	if (!gdGetWord(&sy, in)) {		goto fail1;	}	im = gdImageCreate(sx, sy);	if (!gdGetByte(&im->colorsTotal, in)) {		goto fail2;	}	if (!gdGetWord(&im->transparent, in)) {		goto fail2;	}	if (im->transparent == 257) {		im->transparent = (-1);	}	for (i=0; (i<gdMaxColors); i++) {		if (!gdGetByte(&im->red[i], in)) {			goto fail2;		}		if (!gdGetByte(&im->green[i], in)) {			goto fail2;		}		if (!gdGetByte(&im->blue[i], in)) {			goto fail2;		}	}		for (y=0; (y<sy); y++) {		for (x=0; (x<sx); x++) {				int ch;			ch = getc(in);			if (ch == EOF) {				gdImageDestroy(im);				return 0;			}			/* ROW-MAJOR IN GD 1.3 */			im->pixels[y][x] = ch;		}	}	return im;fail2:	gdImageDestroy(im);fail1:	return 0;}	void gdImageGd(gdImagePtr im, FILE *out){	int x, y;	int i;	int trans;	gdPutWord(im->sx, out);	gdPutWord(im->sy, out);	putc((unsigned char)im->colorsTotal, out);	trans = im->transparent;	if (trans == (-1)) {		trans = 257;	}		gdPutWord(trans, out);	for (i=0; (i<gdMaxColors); i++) {		putc((unsigned char)im->red[i], out);		putc((unsigned char)im->green[i], out);			putc((unsigned char)im->blue[i], out);		}	for (y=0; (y < im->sy); y++) {			for (x=0; (x < im->sx); x++) {				/* ROW-MAJOR IN GD 1.3 */			putc((unsigned char)im->pixels[y][x], out);		}	}}gdImagePtrgdImageCreateFromXbm(FILE *fd){	gdImagePtr im;		int bit;	int w, h;	int bytes;	int ch;	int i, x, y;	char *sp;	char s[161];	if (!fgets(s, 160, fd)) {		return 0;	}	sp = &s[0];	/* Skip #define */	sp = strchr(sp, ' ');	if (!sp) {		return 0;	}	/* Skip width label */	sp++;	sp = strchr(sp, ' ');	if (!sp) {		return 0;	}	/* Get width */	w = atoi(sp + 1);	if (!w) {		return 0;	}	if (!fgets(s, 160, fd)) {		return 0;	}	sp = s;	/* Skip #define */	sp = strchr(sp, ' ');	if (!sp) {		return 0;	}	/* Skip height label */	sp++;	sp = strchr(sp, ' ');	if (!sp) {		return 0;	}	/* Get height */	h = atoi(sp + 1);	if (!h) {		return 0;	}	/* Skip declaration line */	if (!fgets(s, 160, fd)) {		return 0;	}	bytes = (w * h / 8) + 1;	im = gdImageCreate(w, h);	gdImageColorAllocate(im, 255, 255, 255);	gdImageColorAllocate(im, 0, 0, 0);	x = 0;	y = 0;	for (i=0; (i < bytes); i++) {		char h[3];		int b;		/* Skip spaces, commas, CRs, 0x */		while(1) {			ch = getc(fd);			if (ch == EOF) {				goto fail;			}			if (ch == 'x') {				break;			}			}		/* Get hex value */		ch = getc(fd);		if (ch == EOF) {			goto fail;		}		h[0] = ch;		ch = getc(fd);		if (ch == EOF) {			goto fail;		}		h[1] = ch;		h[2] = '\0';		sscanf(h, "%x", &b);				for (bit = 1; (bit <= 128); (bit = bit << 1)) {			gdImageSetPixel(im, x++, y, (b & bit) ? 1 : 0);				if (x == im->sx) {				x = 0;				y++;				if (y == im->sy) {					return im;				}				/* Fix 8/8/95 */				break;			}		}	}	/* Shouldn't happen */	fprintf(stderr, "Error: bug in gdImageCreateFromXbm!\n");	return 0;fail:	gdImageDestroy(im);	return 0;}void gdImagePolygon(gdImagePtr im, gdPointPtr p, int n, int c){	int i;	int lx, ly;	if (!n) {		return;	}	lx = p->x;	ly = p->y;	gdImageLine(im, lx, ly, p[n-1].x, p[n-1].y, c);	for (i=1; (i < n); i++) {		p++;		gdImageLine(im, lx, ly, p->x, p->y, c);		lx = p->x;		ly = p->y;	}}		int gdCompareInt(const void *a, const void *b);	void gdImageFilledPolygon(gdImagePtr im, gdPointPtr p, int n, int c){	int i;	int y;	int y1, y2;	int ints;	if (!n) {		return;	}	if (!im->polyAllocated) {		im->polyInts = (int *) malloc(sizeof(int) * n);		im->polyAllocated = n;	}			if (im->polyAllocated < n) {		while (im->polyAllocated < n) {			im->polyAllocated *= 2;		}			im->polyInts = (int *) realloc(im->polyInts,			sizeof(int) * im->polyAllocated);	}	y1 = p[0].y;	y2 = p[0].y;	for (i=1; (i < n); i++) {		if (p[i].y < y1) {			y1 = p[i].y;		}		if (p[i].y > y2) {			y2 = p[i].y;		}	}	/* Fix in 1.3: count a vertex only once */	for (y=y1; (y < y2); y++) {		int interLast = 0;		int dirLast = 0;		int interFirst = 1;		ints = 0;		for (i=0; (i <= n); i++) {			int x1, x2;			int y1, y2;			int dir;			int ind1, ind2;			int lastInd1 = 0;			if ((i == n) || (!i)) {				ind1 = n-1;				ind2 = 0;			} else {				ind1 = i-1;				ind2 = i;			}			y1 = p[ind1].y;			y2 = p[ind2].y;			if (y1 < y2) {				y1 = p[ind1].y;				y2 = p[ind2].y;				x1 = p[ind1].x;				x2 = p[ind2].x;				dir = -1;			} else if (y1 > y2) {				y2 = p[ind1].y;				y1 = p[ind2].y;				x2 = p[ind1].x;				x1 = p[ind2].x;				dir = 1;			} else {				/* Horizontal; just draw it */				gdImageLine(im, 					p[ind1].x, y1, 					p[ind2].x, y1,					c);				continue;			}			if ((y >= y1) && (y <= y2)) {				int inter = 					(y-y1) * (x2-x1) / (y2-y1) + x1;				/* Only count intersections once					except at maxima and minima. Also, 					if two consecutive intersections are					endpoints of the same horizontal line					that is not at a maxima or minima,						discard the leftmost of the two. */				if (!interFirst) {					if ((p[ind1].y == p[lastInd1].y) &&						(p[ind1].x != p[lastInd1].x)) {						if (dir == dirLast) {							if (inter > interLast) {								/* Replace the old one */								im->polyInts[ints] = inter;							} else {								/* Discard this one */							}								continue;						}					}					if (inter == interLast) {						if (dir == dirLast) {							continue;						}					}				} 				if (i > 0) {					im->polyInts[ints++] = inter;				}				lastInd1 = i;				dirLast = dir;				interLast = inter;				interFirst = 0;			}		}		qsort(im->polyInts, ints, sizeof(int), gdCompareInt);		for (i=0; (i < (ints-1)); i+=2) {			gdImageLine(im, im->polyInts[i], y,				im->polyInts[i+1], y, c);		}	}}	int gdCompareInt(const void *a, const void *b){	return (*(const int *)a) - (*(const int *)b);}void gdImageSetStyle(gdImagePtr im, int *style, int noOfPixels){	if (im->style) {		free(im->style);	}	im->style = (int *) 		malloc(sizeof(int) * noOfPixels);	memcpy(im->style, style, sizeof(int) * noOfPixels);	im->styleLength = noOfPixels;	im->stylePos = 0;}void gdImageSetBrush(gdImagePtr im, gdImagePtr brush){	int i;	im->brush = brush;	for (i=0; (i < gdImageColorsTotal(brush)); i++) {		int index;		index = gdImageColorExact(im, 			gdImageRed(brush, i),			gdImageGreen(brush, i),			gdImageBlue(brush, i));		if (index == (-1)) {			index = gdImageColorAllocate(im,				gdImageRed(brush, i),				gdImageGreen(brush, i),				gdImageBlue(brush, i));			if (index == (-1)) {				index = gdImageColorClosest(im,					gdImageRed(brush, i),					gdImageGreen(brush, i),					gdImageBlue(brush, i));			}		}		im->brushColorMap[i] = index;	}}	void gdImageSetTile(gdImagePtr im, gdImagePtr tile){	int i;	im->tile = tile;	for (i=0; (i < gdImageColorsTotal(tile)); i++) {		int index;		index = gdImageColorExact(im, 			gdImageRed(tile, i),			gdImageGreen(tile, i),			gdImageBlue(tile, i));		if (index == (-1)) {			index = gdImageColorAllocate(im,				gdImageRed(tile, i),				gdImageGreen(tile, i),				gdImageBlue(tile, i));			if (index == (-1)) {				index = gdImageColorClosest(im,					gdImageRed(tile, i),					gdImageGreen(tile, i),					gdImageBlue(tile, i));			}		}		im->tileColorMap[i] = index;	}}void gdImageInterlace(gdImagePtr im, int interlaceArg){	im->interlace = interlaceArg;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美成人a∨高清免费观看| 成人激情小说网站| 亚洲精品美腿丝袜| 国产人成亚洲第一网站在线播放| 日韩视频在线永久播放| 日韩无一区二区| 亚洲国产精品成人综合| 中文子幕无线码一区tr| 欧美国产日韩精品免费观看| 国产欧美日韩在线| 亚洲精品中文在线影院| 亚洲综合网站在线观看| 午夜精品福利视频网站| 麻豆精品视频在线观看免费| 国内精品久久久久影院一蜜桃| 久久精品99国产精品日本| 国产成人高清视频| 一本大道久久a久久综合| 欧美日韩视频在线一区二区| 91精品久久久久久久99蜜桃| www成人在线观看| 1000精品久久久久久久久| 亚洲午夜激情av| 国产最新精品精品你懂的| jlzzjlzz欧美大全| 欧美日韩精品二区第二页| 精品国产乱码久久久久久牛牛 | 亚洲一区二区视频在线观看| 亚洲影视在线播放| 国产麻豆精品一区二区| 不卡一卡二卡三乱码免费网站| 91成人免费电影| 精品99一区二区| 一区二区三区在线观看国产| 免费看欧美美女黄的网站| 波多野结衣中文一区| 91精品黄色片免费大全| 欧美激情一区二区三区四区| 亚洲成人综合网站| 高清成人免费视频| 欧美午夜精品久久久| 久久久精品人体av艺术| 亚洲一区二区三区爽爽爽爽爽| 九九精品视频在线看| 在线精品亚洲一区二区不卡| 久久亚洲欧美国产精品乐播 | 91在线视频官网| 欧美va在线播放| 午夜视频一区二区三区| 97国产一区二区| 久久精品网站免费观看| 免费在线观看一区| 在线观看亚洲精品视频| 中文一区一区三区高中清不卡| 日韩精品一级二级| 在线免费视频一区二区| 国产精品家庭影院| 国产成人午夜片在线观看高清观看| 欧美日韩亚州综合| 亚洲在线视频网站| 91色porny在线视频| 中文字幕乱码日本亚洲一区二区| 六月丁香婷婷色狠狠久久| 欧美日韩精品是欧美日韩精品| 自拍偷拍亚洲综合| 成人精品视频网站| 欧美国产乱子伦| 成人少妇影院yyyy| 国产欧美精品在线观看| 黄网站免费久久| 精品国产免费久久| 激情小说欧美图片| 国产亚洲短视频| 国产原创一区二区| 久久精品视频免费观看| 国产一区二区三区久久久| 欧美精品一区二区在线观看| 国内外成人在线| 久久久久久久久蜜桃| 国产成人综合网| 国产精品久久久久久久久晋中| 成人丝袜高跟foot| 亚洲欧美区自拍先锋| 91福利国产成人精品照片| 亚洲女女做受ⅹxx高潮| 欧美色窝79yyyycom| 亚洲一区电影777| 91精品国产入口在线| 免费看黄色91| 中文字幕免费观看一区| 色综合咪咪久久| 亚洲电影中文字幕在线观看| 91精品国模一区二区三区| 精品亚洲aⅴ乱码一区二区三区| 久久久久久99久久久精品网站| 粉嫩一区二区三区在线看| 亚洲视频网在线直播| 欧美日韩一区久久| 久久国产尿小便嘘嘘尿| 欧美国产日韩a欧美在线观看| 一本色道综合亚洲| 琪琪一区二区三区| 久久久精品日韩欧美| 在线观看精品一区| 九色|91porny| 一区二区三区四区在线播放| 日韩视频不卡中文| 色综合久久久网| 久久综合综合久久综合| 成人免费一区二区三区在线观看| 欧美三级电影网站| 国产精品正在播放| 亚洲大片精品永久免费| 国产欧美日产一区| 欧美一区二区三区影视| 91丝袜美腿高跟国产极品老师| 日韩高清欧美激情| 日韩美女久久久| 2021中文字幕一区亚洲| 欧美性猛交xxxxxxxx| 国产99久久久国产精品潘金 | 国产iv一区二区三区| 亚洲动漫第一页| 综合久久一区二区三区| 精品国产亚洲在线| 91.com视频| 欧美日韩精品一区二区天天拍小说 | 91网上在线视频| 国产精品综合久久| 日本亚洲天堂网| 亚洲色图视频免费播放| 国产欧美一区二区三区在线老狼| 欧美午夜一区二区三区免费大片| 国产高清在线观看免费不卡| 日韩成人一级大片| 亚洲不卡在线观看| 亚洲一区二区三区视频在线播放| 国产精品青草久久| 国产视频一区二区三区在线观看| 日韩一区二区三区在线视频| 欧美日韩精品欧美日韩精品| 91激情五月电影| 97精品电影院| 91视频精品在这里| 99久久久久免费精品国产| 成人精品视频网站| 99久久久久久| 97se狠狠狠综合亚洲狠狠| 成人开心网精品视频| 成人免费毛片高清视频| 国产精品99久久久久久久女警| 精品系列免费在线观看| 激情欧美一区二区| 韩国欧美一区二区| 国v精品久久久网| 国产风韵犹存在线视精品| 国产精品1区二区.| 成人成人成人在线视频| 97久久人人超碰| 一本色道久久综合亚洲精品按摩| 91黄色免费版| 欧美日韩国产综合一区二区三区 | 色婷婷亚洲一区二区三区| 97久久超碰精品国产| 一本一道久久a久久精品综合蜜臀| 色婷婷综合五月| 欧美三片在线视频观看| 678五月天丁香亚洲综合网| 在线不卡免费av| 久久夜色精品国产噜噜av| 中文字幕成人av| 1024国产精品| 秋霞电影网一区二区| 国产一区中文字幕| 色94色欧美sute亚洲线路一ni| 欧美日韩国产综合草草| 日韩一区二区高清| 国产精品国产三级国产普通话蜜臀 | 中文子幕无线码一区tr| 一级日本不卡的影视| 免费看黄色91| 99久久久久免费精品国产| 欧美日韩免费高清一区色橹橹| 精品剧情在线观看| 亚洲欧美区自拍先锋| 老司机午夜精品99久久| 99在线视频精品| 91精品国产综合久久精品性色| 国产欧美日韩视频在线观看| 亚洲成av人片一区二区梦乃| 韩国一区二区视频| 欧美视频日韩视频| 久久久99免费| 三级欧美韩日大片在线看| 成人免费高清在线观看| 日韩一区二区在线观看视频播放| 日本一区二区三区视频视频| 视频一区中文字幕国产| 99久久99久久精品国产片果冻 | 成人精品一区二区三区中文字幕|