Lines Matching refs:geometry
532 MagickExport Image *CropImage(const Image *image,const RectangleInfo *geometry, in CropImage() argument
567 assert(geometry != (const RectangleInfo *) NULL); in CropImage()
576 page=(*geometry); in CropImage()
630 if ((geometry->width != 0) && (page.width > geometry->width)) in CropImage()
631 page.width=geometry->width; in CropImage()
634 if ((geometry->height != 0) && (page.height > geometry->height)) in CropImage()
635 page.height=geometry->height; in CropImage()
792 geometry; in CropImageToTiles() local
800 flags=ParseGravityGeometry(image,crop_geometry,&geometry,exception); in CropImageToTiles()
819 if (geometry.width == 0) in CropImageToTiles()
820 geometry.width=1; in CropImageToTiles()
821 if (geometry.height == 0) in CropImageToTiles()
822 geometry.height=1; in CropImageToTiles()
825 width-=(geometry.x < 0 ? -1 : 1)*geometry.x; in CropImageToTiles()
826 height-=(geometry.y < 0 ? -1 : 1)*geometry.y; in CropImageToTiles()
830 width+=(geometry.x < 0 ? -1 : 1)*geometry.x; in CropImageToTiles()
831 height+=(geometry.y < 0 ? -1 : 1)*geometry.y; in CropImageToTiles()
833 delta.x=(double) width/geometry.width; in CropImageToTiles()
834 delta.y=(double) height/geometry.height; in CropImageToTiles()
844 (geometry.y > 0 ? 0 : geometry.y))); in CropImageToTiles()
847 (geometry.y < 0 ? 0 : geometry.y))); in CropImageToTiles()
852 (geometry.y > 0 ? geometry.y : 0))); in CropImageToTiles()
855 (offset.y+(geometry.y < -1 ? geometry.y : 0))); in CropImageToTiles()
864 (geometry.x > 0 ? 0 : geometry.x))); in CropImageToTiles()
867 (geometry.x < 0 ? 0 : geometry.x))); in CropImageToTiles()
872 (geometry.x > 0 ? geometry.x : 0))); in CropImageToTiles()
875 (geometry.x < 0 ? geometry.x : 0))); in CropImageToTiles()
887 if (((geometry.width == 0) && (geometry.height == 0)) || in CropImageToTiles()
893 crop_image=CropImage(image,&geometry,exception); in CropImageToTiles()
896 crop_image->page.width=geometry.width; in CropImageToTiles()
897 crop_image->page.height=geometry.height; in CropImageToTiles()
898 crop_image->page.x-=geometry.x; in CropImageToTiles()
899 crop_image->page.y-=geometry.y; in CropImageToTiles()
903 if ((image->columns > geometry.width) || (image->rows > geometry.height)) in CropImageToTiles()
924 width=geometry.width; in CropImageToTiles()
927 height=geometry.height; in CropImageToTiles()
935 geometry.width=width; in CropImageToTiles()
936 geometry.height=height; in CropImageToTiles()
937 geometry.x=x; in CropImageToTiles()
938 geometry.y=y; in CropImageToTiles()
939 next=CropImage(image,&geometry,exception); in CropImageToTiles()
981 const RectangleInfo *geometry,ExceptionInfo *exception) in ExcerptImage() argument
1008 assert(geometry != (const RectangleInfo *) NULL); in ExcerptImage()
1011 excerpt_image=CloneImage(image,geometry->width,geometry->height,MagickTrue, in ExcerptImage()
1039 p=GetCacheViewVirtualPixels(image_view,geometry->x,geometry->y+y, in ExcerptImage()
1040 geometry->width,1,exception); in ExcerptImage()
1127 const RectangleInfo *geometry,ExceptionInfo *exception) in ExtentImage() argument
1139 assert(geometry != (const RectangleInfo *) NULL); in ExtentImage()
1142 if ((image->columns == geometry->width) && in ExtentImage()
1143 (image->rows == geometry->height) && in ExtentImage()
1144 (geometry->x == 0) && (geometry->y == 0)) in ExtentImage()
1146 extent_image=CloneImage(image,geometry->width,geometry->height,MagickTrue, in ExtentImage()
1152 -geometry->x,-geometry->y,exception); in ExtentImage()
1650 geometry; in ShaveImage() local
1659 SetGeometry(image,&geometry); in ShaveImage()
1660 geometry.width-=2*shave_info->width; in ShaveImage()
1661 geometry.height-=2*shave_info->height; in ShaveImage()
1662 geometry.x=(ssize_t) shave_info->width+image->page.x; in ShaveImage()
1663 geometry.y=(ssize_t) shave_info->height+image->page.y; in ShaveImage()
1664 shave_image=CropImage(image,&geometry,exception); in ShaveImage()
1704 const RectangleInfo *geometry,ExceptionInfo *exception) in SpliceImage() argument
1735 assert(geometry != (const RectangleInfo *) NULL); in SpliceImage()
1738 splice_geometry=(*geometry); in SpliceImage()
2086 geometry; in TransformImage() local
2117 (void) ParseRegionGeometry(transform_image,image_geometry,&geometry,exception); in TransformImage()
2118 if ((transform_image->columns == geometry.width) && in TransformImage()
2119 (transform_image->rows == geometry.height)) in TransformImage()
2121 resize_image=ResizeImage(transform_image,geometry.width,geometry.height, in TransformImage()
2456 geometry; in TrimImage() local
2462 geometry=GetImageBoundingBox(image,exception); in TrimImage()
2463 if ((geometry.width == 0) || (geometry.height == 0)) in TrimImage()
2479 geometry.x+=image->page.x; in TrimImage()
2480 geometry.y+=image->page.y; in TrimImage()
2481 return(CropImage(image,&geometry,exception)); in TrimImage()