Lines Matching defs:bounding_box
559 bounding_box,
575 bounding_box=image->page;
576 if ((bounding_box.width == 0) || (bounding_box.height == 0))
578 bounding_box.width=image->columns;
579 bounding_box.height=image->rows;
583 page.width=bounding_box.width;
585 page.height=bounding_box.height;
586 if (((bounding_box.x-page.x) >= (ssize_t) page.width) ||
587 ((bounding_box.y-page.y) >= (ssize_t) page.height) ||
588 ((page.x-bounding_box.x) > (ssize_t) image->columns) ||
589 ((page.y-bounding_box.y) > (ssize_t) image->rows))
602 crop_image->page=bounding_box;
609 if ((page.x < 0) && (bounding_box.x >= 0))
611 page.width+=page.x-bounding_box.x;
616 page.width-=bounding_box.x-page.x;
617 page.x-=bounding_box.x;
621 if ((page.y < 0) && (bounding_box.y >= 0))
623 page.height+=page.y-bounding_box.y;
628 page.height-=bounding_box.y-page.y;
629 page.y-=bounding_box.y;
641 bounding_box.x+=page.x;
642 bounding_box.y+=page.y;
657 offset.x=(ssize_t) (bounding_box.x+bounding_box.width);
658 offset.y=(ssize_t) (bounding_box.y+bounding_box.height);
662 crop_image->page.width=bounding_box.width;
663 crop_image->page.height=bounding_box.height;
665 crop_image->page.x=bounding_box.x;
666 crop_image->page.y=bounding_box.y;