crop              836 ext/gd/libgd/gd.h gdImagePtr gdImageCrop(gdImagePtr src, const gdRectPtr crop);
crop               43 ext/gd/libgd/gd_crop.c gdImagePtr gdImageCrop(gdImagePtr src, const gdRectPtr crop)
crop               50 ext/gd/libgd/gd_crop.c 		dst = gdImageCreateTrueColor(crop->width, crop->height);
crop               56 ext/gd/libgd/gd_crop.c 		dst = gdImageCreate(crop->width, crop->height);
crop               65 ext/gd/libgd/gd_crop.c 	if (crop->x < 0 || crop->x>=src->sx || crop->y<0 || crop->y>=src->sy) {
crop               70 ext/gd/libgd/gd_crop.c 	if ((src->sx - crop->width) < crop->x) {
crop               71 ext/gd/libgd/gd_crop.c 		crop->width = src->sx - crop->x;
crop               73 ext/gd/libgd/gd_crop.c 	if ((src->sy - crop->height) < crop->y) {
crop               74 ext/gd/libgd/gd_crop.c 		crop->height = src->sy - crop->y;
crop               78 ext/gd/libgd/gd_crop.c printf("rect->x: %i\nrect->y: %i\nrect->width: %i\nrect->height: %i\n", crop->x, crop->y, crop->width, crop->height);
crop               80 ext/gd/libgd/gd_crop.c 	y = crop->y;
crop               83 ext/gd/libgd/gd_crop.c 		while (y < (crop->y + crop->height)) {
crop               85 ext/gd/libgd/gd_crop.c 			memcpy(dst->tpixels[dst_y++], src->tpixels[y++] + crop->x, crop->width * 4);
crop               89 ext/gd/libgd/gd_crop.c 		for (y = crop->y; y < (crop->y + crop->height); y++) {
crop               90 ext/gd/libgd/gd_crop.c 			for (x = crop->x; x < (crop->x + crop->width); x++) {
crop               91 ext/gd/libgd/gd_crop.c 				dst->pixels[y - crop->y][x - crop->x] = src->pixels[y][x];
crop              121 ext/gd/libgd/gd_crop.c 	gdRect crop;
crop              123 ext/gd/libgd/gd_crop.c 	crop.x = 0;
crop              124 ext/gd/libgd/gd_crop.c 	crop.y = 0;
crop              125 ext/gd/libgd/gd_crop.c 	crop.width = 0;
crop              126 ext/gd/libgd/gd_crop.c 	crop.height = 0;
crop              173 ext/gd/libgd/gd_crop.c 	crop.y = y -1;
crop              182 ext/gd/libgd/gd_crop.c 		crop.height = height - crop.y + 1;
crop              184 ext/gd/libgd/gd_crop.c 		crop.height = y - crop.y + 2;
crop              189 ext/gd/libgd/gd_crop.c 		for (y = 0; match && y < crop.y + crop.height - 1; y++) {
crop              193 ext/gd/libgd/gd_crop.c 	crop.x = x - 1;
crop              197 ext/gd/libgd/gd_crop.c 		for (y = 0; match &&  y < crop.y + crop.height - 1; y++) {
crop              201 ext/gd/libgd/gd_crop.c 	crop.width = x - crop.x + 2;
crop              202 ext/gd/libgd/gd_crop.c 	if (crop.x <= 0 || crop.y <= 0 || crop.width <= 0 || crop.height <= 0) {
crop              205 ext/gd/libgd/gd_crop.c 	return gdImageCrop(im, &crop);
crop              234 ext/gd/libgd/gd_crop.c 	gdRect crop;
crop              236 ext/gd/libgd/gd_crop.c 	crop.x = 0;
crop              237 ext/gd/libgd/gd_crop.c 	crop.y = 0;
crop              238 ext/gd/libgd/gd_crop.c 	crop.width = 0;
crop              239 ext/gd/libgd/gd_crop.c 	crop.height = 0;
crop              265 ext/gd/libgd/gd_crop.c 	crop.y = y -1;
crop              274 ext/gd/libgd/gd_crop.c 		crop.height = height - crop.y + 1;
crop              276 ext/gd/libgd/gd_crop.c 		crop.height = y - crop.y + 2;
crop              281 ext/gd/libgd/gd_crop.c 		for (y = 0; match && y < crop.y + crop.height - 1; y++) {
crop              285 ext/gd/libgd/gd_crop.c 	crop.x = x - 1;
crop              289 ext/gd/libgd/gd_crop.c 		for (y = 0; match &&  y < crop.y + crop.height - 1; y++) {
crop              293 ext/gd/libgd/gd_crop.c 	crop.width = x - crop.x + 2;
crop              295 ext/gd/libgd/gd_crop.c 	return gdImageCrop(im, &crop);