Patent ID: 8363064

Claim:
A non-transitory computer-readable medium storing a program that causes a computer to execute image processing, the image processing comprising: drawing a first image element within a drawing space, the first image element drawn at a first coordinate position within a coordinate system of the drawing space; drawing a second image element within the drawing space, the second image element drawn at a second coordinate position within the coordinate system of the drawing space; receiving a command to form a blank space within the drawing space, the blank space comprising a portion of the drawing space within which no image elements are drawn, and the command comprising a blank-space forming position that indicates a third coordinate position within the coordinate system of the drawing space at which the blank space is to be formed within the drawing space; calculating (i) a first new coordinate position of the first image element that does not overlap with the blank-space forming position based on the first coordinate position and the blank-space forming position and (ii) a second new coordinate position of the second image element that does not overlap with the blank-space forming position based on the second coordinate position and the blank-space forming position; displaying within the drawing space the first image element at the first new coordinate position, the second image element at the second new coordinate position, and the blank space at the blank-space forming position, wherein the calculating comprises: determining a first center position of the first image element based on the first coordinate position and a second center position of the second image element based on the second coordinate position; calculating an average center position of the first center position and the second center position, based on the determined first center position and the second center position; determining a scaling parameter for scaling the average center position; scaling a difference between the average center position and the blank-space forming position by the scaling parameter; determining a new average center position as a sum of the scaled difference and the average center position; calculating a vector difference that is a difference between the new average center position and the average center position; and calculating (i) the first new coordinate position of the first image element as a first sum of the first coordinate position and the vector difference and (ii) the second new coordinate position of the second image element as a second sum of the second coordinate position and the vector difference.