]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 16 Sep 2011 01:37:07 +0000 (01:37 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 16 Sep 2011 01:37:07 +0000 (01:37 +0000)
MagickCore/transform.c

index e87b40bf7d58528efdd1df62ca8ed210d7abdbd7..02a5c33e9a02c8e23309ea9c10a18683c4e3f6ac 100644 (file)
@@ -716,12 +716,12 @@ MagickExport Image *CropImage(const Image *image,const RectangleInfo *geometry,
 %                                                                             %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %
-%  CropImageToTiles() will crop a single image, into a possible list of tiles.
+%  CropImageToTiles() crops a single image, into a possible list of tiles.
 %  This may include a single sub-region of the image.  This basically applies
 %  all the normal geometry flags for Crop.
 %
-%      Image *CropImageToTiles(const Image *image,const RectangleInfo
-%         *crop_geometry, ExceptionInfo *exception)
+%      Image *CropImageToTiles(const Image *image,
+%         const RectangleInfo *crop_geometry, ExceptionInfo *exception)
 %
 %  A description of each parameter follows:
 %
@@ -795,8 +795,8 @@ MagickExport Image *CropImageToTiles(const Image *image,
           width+=(geometry.x < 0 ? -1 : 1)*geometry.x;
           height+=(geometry.y < 0 ? -1 : 1)*geometry.y;
         }
-      delta.x=(double) width/geometry.width;
-      delta.y=(double) height/geometry.height;
+      delta.x=(double) (width+geometry.width >> 1)/geometry.width;
+      delta.y=(double) (height+geometry.height >> 1)/geometry.height;
       for (offset.y=0; offset.y < (double) height; )
       {
         if ((flags & AspectValue) == 0)