Patent ID: 7509570

Claim:
A computer-readable storage medium encoded with a layout control program, said layout control program causing a computer to arbitrarily control a layout of image output from an image output device, said layout control program causing the computer to attain: an output range defining function that defines a physical output range on an output medium, in which an image is output; and a layout specifying function that specifies a layout of the image in the defined output range, said layout specifying function having multiple drawing control commands that are provided respectively for a plurality of images to be output in the output range, wherein required pieces of information for outputting the image, which include information for adjusting an output position, are integrated in the drawing control command corresponding to the image, the multiple drawing control commands are arranged in a preset sequence according to an overlapping state of the plurality of images, the overlapping state of the plurality of images defining, when the plurality of images overlap, which of the images is drawn in an overlapping part, and each of the multiple drawing control commands includes, as a parameter, coordinates of two points located at opposing corners of an oblong output frame, which are used to define the output frame for adjusting an output position of the image, with size and aspect ratio of the output frame being determined irrespective of size and aspect ratio of the image; information that is used to identify a method of fitting the image to the output frame when at least one of the size and the aspect ratio of the image is different from the size and the aspect ratio of the output frame, the method of fitting defining a manner in which the image is transformed allowing a change of aspect ratio of the image so that at least a part of the transformed image is disposed within an area defined by the output frame; and information that is used to specify a relative positional relationship between the transformed image and the output frame in a resulting output.