CPC G09G 5/373 (2013.01) [G06T 3/40 (2013.01)] | 13 Claims |
1. A method for the display of an image in an image area of a display area of a display screen, the image area having a logical dimension being the number of logical pixels across a horizontal or vertical dimension of the image area, the display area having a pixel density, the image being stored on a server in a plurality of versions, and each version of the image having a respective image size, the method comprising:
detecting the pixel density of the display area, the pixel density being the number of physical pixels of the display area of the display screen that are used to display one logical pixel;
calculating a desired image dimension by multiplying the pixel density of the display area by the logical dimension of the image area;
determining a first version of the image to request from the server based on the desired image dimension, the first version of the image having a first image size;
requesting the first version of the image;
receiving the first version of the image;
displaying the first version of the image in the display area; and
calculating a predefined amount as the smaller value of a fixed value and a fraction of the desired image dimension,
wherein:
the determining of the first version of the image to request from the server comprises selecting, from the plurality of versions of the image, a version of the image:
such that the first image size has an image dimension greater than the desired image dimension by the predefined amount; and
that is the next largest version of the image that is larger than the desired image dimension added to the predefined amount; and
displaying the first version of the image in the display area comprises resizing the first version of the image to fit the image area.
|