A non-transitory computer-readable storage medium storing a set of program instructions executable on a computer, the program instructions, when executed by the computer, comprising:
- setting a plurality of printing regions, a size of each printing region being set based on a size of a recording sheet;
- setting a plurality of image regions for an original image, the plurality of image regions having one-to-one correspondence to the plurality of printing regions, each image region being assigned with a position, at least two image regions partially overlapping with each other;
- generating a plurality of sets of print data each being assigned with one of the plurality of printing regions and indicating an image in the corresponding printing region, the image indicating a part of the original image;
- printing a print image in the corresponding printing region on one of recording sheets based on each set of print data;
- and
- calculating a first length based on a length of the recording sheet in a first direction and a second length based on a length of the recording sheet in a second direction intersecting the first direction,
- wherein each printing region is assigned with at least one of a gluing region and a projecting region, the projecting region being a part of the printing region formed on an edge of the printing region and projecting from an edge of the recording sheet, the gluing region being on the recording sheet, excluded from the printing region, and not assigned with the print data,
- wherein one of two printing regions corresponding to two image regions partially overlapping with each other is assigned with the gluing region, and a remaining one of the two printing regions is assigned with the projecting region, and an image corresponding to the projecting region of the remaining one of the two printing regions corresponds to apart of an image corresponding to the one of the two printing regions,
- wherein the printing performs borderless printing with the image corresponding to the projecting region running off the recording sheet,
- wherein the printing region corresponding to the image region including an edge region is associated with a margin region that is on the recording sheet and excluded from the printing region, the edge region corresponding to at least part of a peripheral edge of the original image,
- wherein each of the printing regions has a first region edge and a second region edge with respect to the first direction, and a third region edge and a fourth region edge with respect to the second direction, the first region edge opposing the second region edge, the third region edge opposing the fourth region edge, each of the first region edge, the second region edge, the third region edge and the fourth region edge being assigned with one of the margin region, the projecting region, and the gluing region,
- wherein the calculating includes obtaining the first length by subtracting from the length of the recording sheet in the first direction a length of at least one of the margin region and the gluing region in the first direction if the at least one of the margin region and the gluing region is assigned to either one of the first region edge and the second region edge, and by adding to the length of the recording sheet a length of the projecting region in the first direction if the projecting region is assigned to one of the first region edge and the second region edge,
- wherein a length of the image region in the first direction is determined based on a length obtained by dividing the first length by a ratio determined from a size of a print image to be printed and a size of the original image,
- wherein the calculating includes obtaining the second length by subtracting from the length of the recording sheet in the second direction a length of at least one of the margin region and the gluing region in the second direction if the at least one of the margin region and the gluing region is assigned to either one of the third region edge and the fourth region edge, and by adding to the length of the recording sheet a length of the projecting region in the second direction if the projecting region is assigned to one of the third region edge and the fourth region edge, and
- wherein a length of the image region in the second direction is determined based on a length obtained by dividing the second length by the ratio.