Patent ID: 8638345

Claim:
A program generation device comprising: a first input unit that inputs image data; a display controller that causes a first display to display a screen area of a second display, the second display corresponding to a client terminal; a second input unit that receives a designation of a first area within the screen area of the second display that is displayed in the first display, wherein the image is allocated to the first area; a third input unit that inputs a screen size of the second display; a calculation unit that calculates a position and size of a second area in which the image is located within the second display, the position and size of the second area calculated based on a position and size of the first area and the screen size of the second display; a determination unit that determines a reference size of the image based on the size of the second area calculated by the calculation unit; a converter that converts the image data to generate reference image data whose size is equivalent to the reference size determined by the determination unit; a generator that generates a program that includes an instruction for the terminal, the instruction including rendering a plurality of images on the first display based only on the reference image data according to the position and size calculated by the calculation unit; and a setting unit that sets degrees of priority for image quality, speed, and amount of data, and a number of reference image size(s) determined by the determination unit and an amount of each of the reference image size(s) determined by the determination unit are variable depending on the degrees of priority for image quality, speed, and amount of data set by the setting unit.