This slices image.png into 3 tiles horizontally and 4 tiles vertically.
Further, the width of each tile is ( (width of image.png) / 3) + 5 pixels,
and the height of each tile is ( (height of image.png) / 4) - 6 pixels.
In the geometry option NxM+x+y, the x and y offsets can be used to change the size of the tiles.
For example, if you specify 2x3, and the vertical line which splits the image goes through an
interesting part of the image, you could then try 2x3+50, say, to move the vertical line 50 pixels
to the right. This is what I do when printing database schema generated with GraphViz::DBI.
N is the default number of tiles in the horizontal direction.
M is the default number of tiles in the verical direction.
The N and/or M component can be omitted. 2 is assumed for any missing N or M. The 'x' is optional if M is missing. A single value, such as '5', is assumed to be an N value, and M is set to 2.
The '+x+y' component can be omitted. 0 is assumed for any missing x and y adjustments to the width
and height of the tiles. A single value, such as '+5', is assumed to be an x value, and y is set to 0.
Negative or positive values can be used for x and y. Negative values will probably cause extra tiles to be
required to cover the image. That why I used the phrase 'default number of tiles' above.
Australian copyright (c) 2005, Ron Savage. All rights reserved.
All Programs of mine are 'OSI Certified Open Source Software';
you can redistribute them and/or modify them under the terms of
The Artistic License, a copy of which is available at:
http://www.opensource.org/licenses/index.html