% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
-% 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:
%
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)