[0017] Example one
[0018] This embodiment provides a method for displaying large format pictures on small screen devices, such as figure 1 As shown, the method includes:
[0019] Step 11. Determine the area to be displayed according to the index map on the small screen device.
[0020] Step 12: Using the area to be displayed as the center of the small screen device, calculate the tiles needed for display. The tiles are divided into large-format pictures and can be completely displayed on the small screen device at one time.
[0021] Step 13. Display the calculated blocks on the small screen device.
[0022] It can be seen from the above that the present invention divides a large-format picture into several tiles that can be completely displayed on the small screen device at one time, and determines an index number for each tile according to a first predetermined rule (the first predetermined rule will Describe in step 33). Then the pixel coordinate center point of the large-format picture is taken as the pixel coordinate of the center point of the small screen, and the index map of the large-format picture is displayed. Then calculate which tiles need to be used for display according to the screen size of the small screen device, the tile size and the second predetermined rule. The second predetermined rule corresponds to the first predetermined rule, and the second predetermined rule will be described later. . Finally, display these blocks according to the index numbers of the blocks that need to be used for display.
[0023] In step 11, the index image may be thinned out from the large-format image, such as figure 2 As shown, the thinning step includes the following steps:
[0024] Step 21. Thinning the large-format picture, such as reducing the large-format picture to a quarter of the original picture.
[0025] The progressive scan method can be used to segment large-format images. First, the large-format picture is thinned out, that is, the picture is scaled according to the specified ratio of pixels to reduce the original picture. Such as thinning a large picture into a quarter of the original picture.
[0026] Step 22. Determine whether the thinned out picture is sufficiently displayed on the small screen device. If not, go back to Step 21: Follow step 21 to continue shrinking and thinning out the large-format picture until it can be fully displayed on the small screen device, and Keep the result of each thinning, if yes, go to step 23: End.
[0027] Before displaying a large-format picture, you first need to divide the large-format picture into multiple small-screen devices that can be completely displayed at one time, and determine the index number of each block. Such as image 3 As shown, the process of segmenting large images includes the following steps:
[0028] Step 31: Divide the large-scale picture. For example, the large-scale picture is divided by the quarter method, that is, the large-scale picture is divided into four blocks of equal size.
[0029] Step 32: Determine whether the divided tiles can be completely displayed on the small screen device, if not, return to step 31: Follow step 31 to segment all the tiles again, until all the tiles can be completely displayed on the small screen On the screen device, record the pixel height and width of each tile, if yes, go to step 33.
[0030] After performing this step, you can repeat step 31 to divide all the blocks again in order to change the blocks into smaller blocks. In this embodiment, preferably, after performing this step, You can also repeat step 31 to divide all the blocks again. In this way, the large picture is divided into smaller screen size smaller tiles, so that when the small screen displays multiple small tiles, the sum of the multiple small tiles to be displayed will be smaller, which can be more effectively improved Display speed.
[0031] Step 33: Determine an index number for each tile according to the first predetermined rule. The first predetermined rule is a specific rule for determining an index number for the tiles, and the index number is to determine a unique identifier for each tile, and the first predetermined rule may be any rule. For example, to divide a large-format picture into four blocks, the first predetermined rule may be: number the upper left, upper right, lower left, and lower right as 0, 1, 2, and 3 respectively, and then divide the sub-blocks of block 0 respectively According to the order of upper left, upper right, lower left, and lower right, they are numbered 00, 01, 02, and 03, and the sub-blocks after the division of block 1 are numbered as 10, 11, 12 in the order of upper left, upper right, lower left, and lower right. And 13, for the sub-tiles after the segmentation of the 00 tile, they are numbered 000, 001, 002, 003, 004 and so on in the order of upper left, upper right, lower left, and lower right, which are determined in this way for all the tiles The index number.
[0032] Such as Figure 4 As shown, in step 12, the following takes a large picture with a height of 640 pixels, a width of 480 pixels, a small screen device with a resolution of 220X176, and any point of the selected area to be displayed is 300X200 as an example to illustrate the calculation and display needs Method of the blocks used:
[0033] Step 41: Calculate the block number in the upper left corner of the small screen device.
[0034] Use the selected pixel coordinates (320, 200) to subtract half of the screen height and width (220/2=110, 176/2=88) to calculate the pixel coordinates (210, 152) of the upper left corner of the screen, according to The second predetermined rule calculates the index number of the tile where the point on the upper left corner of the screen is located. The second predetermined rule is: firstly, calculate the first index number, and divide the height and width of the first divided picture with the coordinates of the upper left corner of the screen. Since the size of the first divided picture is 320X240, 210\320=0 , 152\240=0, so the index number of the first divided block is 0. Next, calculate the second index number, divide the upper left corner coordinates by the remainder of the height and width of the first segmented picture, and divide by the height and width of the second segmented picture, respectively. The second segmented picture The block size is 160X120, 210\160=1, 152\120=1, that is, the block is located in the second row and second column of the 4 pictures divided in the second time, because the second row and second column correspond to the block The index number is 3, so the index number of the tile in the upper left corner of the screen is 03.
[0035] Step 42: Calculate the block number in the lower right corner of the small screen device.
[0036] Use the selected pixel coordinates (320, 200) plus half of the screen height and width (220/2=110, 176/2=88) to calculate the pixel coordinates (430, 328) of the lower right corner of the screen, follow The second predetermined rule calculates that the index number of the block in the lower right corner of the screen is 30;
[0037] Step 43: According to the block number in the upper left corner of the screen and the block number in the lower right corner of the screen, obtain the required blocks for display.
[0038] As shown in Table 1, the index number of the block in the upper left corner of the screen is 03, and the index number of the block in the lower right corner is 30, so the index numbers of the blocks contained in the screen are 03, 12, 21, 30
[0039] Table 1
[0040] 00
[0041] In order to display the surrounding conditions of the determined area in more detail, in this embodiment, preferably, the determined area is displayed in the central area of the small screen device. In order to display the surroundings of the determined area in the central area of the small screen device, firstly determine any point from the selected area, and display the calculated block with the determined point as the center. In this way, you can use this point as the center to display the calculated tiles on the small screen device.
[0042] In addition, when calculating the tiles needed for display, the pixel coordinates of the small screen device corresponding to any point in the tiles are also calculated. Then, the pixel coordinates of the point in the block are corresponding to the screen coordinates on the small screen device, and the calculated block is displayed. In this way, the area to be displayed is determined as the center, and each block is seamlessly displayed on the small screen, so that the surrounding conditions of the area to be displayed can be displayed in detail.