CN103186638B - A kind of picture layout method and device - Google Patents

A kind of picture layout method and device Download PDF

Info

Publication number
CN103186638B
CN103186638B CN201110460355.5A CN201110460355A CN103186638B CN 103186638 B CN103186638 B CN 103186638B CN 201110460355 A CN201110460355 A CN 201110460355A CN 103186638 B CN103186638 B CN 103186638B
Authority
CN
China
Prior art keywords
picture
height
width
viewing area
shown picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201110460355.5A
Other languages
Chinese (zh)
Other versions
CN103186638A (en
Inventor
王伟超
李佳
谢倩倩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New Founder Holdings Development Co ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201110460355.5A priority Critical patent/CN103186638B/en
Publication of CN103186638A publication Critical patent/CN103186638A/en
Application granted granted Critical
Publication of CN103186638B publication Critical patent/CN103186638B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to technical field of communication, particularly relate to picture layout method and device, for obtaining viewing area size, being shown the original size of picture and the quantity of shown picture, the original size of each described shown picture is identical; According to described viewing area size, the size of each described shown picture is adjusted by same adjustment mode, until the size of each described shown picture reaches maximum, and the whole overall widths being shown picture after adjustment are not more than the width of described viewing area size, overall height is not more than the height of described viewing area size.The picture layout method using the embodiment of the present invention to provide and device, by viewing area size, picture number, the size of adaptive adjustment picture, guarantee all complete displays of energy of all pictures, and reach possible full-size, thus, when picture is less, the size of picture display is comparatively large, ensures sharpness; When picture is more, picture can completely show, and guarantees monitor speed.

Description

A kind of picture layout method and device
Technical field
The present invention relates to technical field of communication, particularly relate to a kind of picture layout method and device.
Background technology
At present in space of a whole page supervisory system, mobile terminal and large-size screen monitors terminal applies are more and more extensive, and when these two kinds of terminals show identical space of a whole page picture, how reaching respective optimal effectiveness is very important problem.In prior art, the layout of the space of a whole page picture mode adopting batch to download, once show, namely download the picture of some, then calculating chart chip size, finally presents at terminal display screen at every turn more.And picture number and the dimension of picture of each display are all changeless, or the optional but size of picture number is fixed.Due to different display terminals size may picture size needed for different, different monitor staff also can be different, therefore fix picture number and size and then can have a strong impact on and present effect, then affect monitored results.Such as, when one piece of very large screen shows less picture, because dimension of picture is always equally large, screen also has very large white space and is wasted; And when picture is more, having again a lot of picture cannot completely show.
Summary of the invention
Embodiments provide a kind of picture layout method and device, both can ensure the integrality shown that Shows Picture, and not waste again the space of viewing area, there is higher dirigibility and controllability.
Embodiments provide a kind of picture layout method, comprising:
Obtain viewing area size, be shown the original size of picture and the quantity of shown picture, the original size of each described shown picture is identical;
According to described viewing area size, the size of each described shown picture is adjusted by same adjustment mode, until the size of each described shown picture reaches maximum, and the whole overall widths being shown picture after adjustment are not more than the width of described viewing area size, overall height is not more than the height of described viewing area size.
Accordingly, embodiments provide a kind of picture placement device, comprising:
Acquisition module, for obtaining viewing area size, being shown the original size of picture and the quantity of shown picture, the original size of each described shown picture is identical;
Adjusting module, for according to described viewing area size, the size of each described shown picture is adjusted by same adjustment mode, until the size of each described shown picture reaches maximum, and the whole overall widths being shown picture after adjustment are not more than the width of described viewing area size, overall height is not more than the height of described viewing area size.
Embodiments provide picture layout method and device, for obtaining viewing area size, being shown the original size of picture and the quantity of shown picture, the original size of each described shown picture is identical; According to described viewing area size, the size of each described shown picture is adjusted by same adjustment mode, until the size of each described shown picture reaches maximum, and the whole overall widths being shown picture after adjustment are not more than the width of described viewing area size, overall height is not more than the height of described viewing area size.The picture layout method using the embodiment of the present invention to provide and device, by viewing area size, picture number, the size of adaptive adjustment picture, guarantee all complete displays of energy of all pictures, and reach possible full-size, thus, when picture is less, the size of picture display is comparatively large, ensures sharpness; When picture is more, picture can completely show, and guarantees monitor speed.
Accompanying drawing explanation
Fig. 1 is picture layout method schematic flow sheet in the embodiment of the present invention;
Fig. 2 is picture layout method schematic flow sheet in another embodiment of the present invention;
Fig. 3 is the schematic flow sheet that in the embodiment of the present invention, adjustment is shown dimension of picture;
Fig. 4 is picture placement device schematic diagram in the embodiment of the present invention.
Embodiment
Below in conjunction with each accompanying drawing, the main of embodiment of the present invention technical scheme is realized principle, embodiment and set forth in detail the beneficial effect that should be able to reach.
In order to solve prior art Problems existing, embodiments providing a kind of picture layout method, as shown in Figure 1, comprising the following steps:
Step 101, acquisition viewing area size, the shown original size of picture and the quantity of shown picture, the original size of each shown picture is identical;
Step 102, according to viewing area size, the size of each shown picture is adjusted by same adjustment mode, until the size of each shown picture reaches maximum, and the whole overall widths being shown picture after adjustment are not more than the width of viewing area size, overall height is not more than the height of viewing area size.
Concrete, obtain the viewing area size of display terminal, this size is made a reservation for by the operating system of display terminal, such as, under screen mode toggle, can obtain the size of whole display screen; Under non-screen mode toggle, the current available display screen size of display terminal operating system can be obtained.
Further, obtain and be shown the original size of picture and the quantity of shown picture, wherein, the original size of each shown picture is identical.During in order to Show Picture in viewing area, can the size of accommodation picture, such as, when picture is few, the size of picture is tuned up; When picture is many, the size of picture is turned down, provide in the embodiment of the present invention as under type, can according to viewing area size, adjustment is shown the size of picture, until the size being shown picture reaches maximum, and the whole overall widths being shown picture after adjustment are not more than the width of viewing area size, and overall height is not more than the height of viewing area size.
Mode one: according to viewing area size, the original size being shown picture, determine the picture columns that viewing area holds; When the overall width being all shown picture is not more than the width of viewing area size, adjust the height of each shown picture, until the overall height being all shown picture equals the height of viewing area size.
Mode two: according to viewing area size, the original size being shown picture, determine the picture line number that viewing area holds; When the overall height being all shown picture is not more than the height of viewing area size, adjust the width of each shown picture, until the overall width being all shown picture equals the width of viewing area size.
Aforesaid way one and mode two all adopt determines picture edge length, the mode of another edge length that stretches, after namely determining often to go to place how many pictures, adjusts the height of often row picture, make shown picture entirety all can be positioned at viewing area, and reach the full-size under this kind of condition.
Mode three: when being shown the Ratio invariableness of the height and the width of picture, adopts the width means being shown picture to be all shown overall width and the overall height of picture; By all the shown overall height of picture and the height of viewing area compare; When the overall height being all shown picture is less than the height of viewing area, the original width of each shown picture is started to increase with 1 unit picture element, until the overall width being all shown picture is greater than the width of viewing area size, and this overall width being all shown picture before increasing unit picture element is not more than the width of viewing area size, or the overall height being all shown picture is greater than the height of viewing area size, and this overall height being all shown picture before increasing unit picture element is not more than the height of viewing area size; Be shown the width of picture before this being increased unit picture element, be defined as the width of the shown picture after adjusting; According to the ratio of the height and the width of shown picture, and the width of shown picture after adjustment, determine the height of shown picture; When the overall height being all shown picture is greater than the height of viewing area, the original width of shown picture is started to reduce with 1 unit picture element, until the overall height being all shown picture is not more than the height of viewing area size, and this overall height being all shown picture before reducing unit picture element is greater than the height of viewing area size; By the width of this shown picture, be defined as the width of the shown picture after adjusting; According to the ratio of the height and the width of shown picture, and the width of shown picture after adjustment, determine the height of shown picture.
Wherein, according to the original width of shown picture and the width of viewing area size, determine the picture columns that viewing area holds; According to the original width of picture columns and shown picture, represent the overall width being all shown picture; According to the quantity of shown picture, and the picture columns that viewing area holds, determine the wish arrangement line number of picture; According to the original width for arrangement line number and shown picture, determine the overall height being all shown picture.
Mode four: when being shown the Ratio invariableness of the height and the width of picture, adopts the height of described shown picture to represent overall width and the overall height of all shown pictures, the described all shown overall width of picture and the width of described viewing area are compared, when the described overall width being all shown picture is less than the width of described viewing area, the original height of each shown picture is started to increase with 1 unit picture element, until the described overall width being all shown picture is greater than the width of described viewing area size, and the overall width of this described all shown picture before increasing unit picture element is not more than the width of described viewing area size, or the overall height being all shown picture is greater than the height of described viewing area size, and the overall height of this described all shown picture before increasing unit picture element is not more than the height of described viewing area size, be shown the height of picture before this being increased unit picture element, be defined as the height of the shown picture after adjusting, according to the ratio of the height and the width of described shown picture, and the height of shown picture after adjustment, determine the width of described shown picture, when the overall width of described shown picture is greater than the width of described viewing area, the original height of each shown picture is started to reduce with 1 unit picture element, until the overall width being all shown picture is not more than the width of described viewing area size, and the overall width of this described all shown picture before reducing unit picture element is greater than the width of described viewing area size, by the height of this shown picture, be defined as the height of the shown picture after adjusting, according to the ratio of the height and the width of described shown picture, and the height of shown picture after adjustment, determine the width of described shown picture.
Wherein, according to the original height of shown picture and the height of viewing area size, determine the picture line number that viewing area holds; According to the original height of picture columns and shown picture, represent the overall height being all shown picture; According to the quantity of shown picture, and the picture line number that viewing area holds, determine the wish arrangement columns of picture; According to the original height for arrangement columns and shown picture, determine the overall width being all shown picture.
When shown picture cannot one direction stretch time, be namely shown the Ratio invariableness of height and the width of picture, then can adopt aforesaid way three and mode four.The width being shown picture or the overall width and the overall height that highly represent all shown pictures is used in mode three and mode four, like this by adjustment parameter, the height that the overall width being all shown picture is less than the width of viewing area, overall height is less than viewing area can be made, and make the maximal value being resized to permission of shown picture as much as possible.Such as, supposing that viewing area is of a size of: width is 1000 pixels, is highly 500 pixels; The original size being shown picture is: width is 100 pixels, is highly 75 pixels, and the quantity being shown picture is 100; Then use the original width being shown picture, the picture columns that can obtain viewing area accommodation is 1000/100=10 row, and the overall width being shown picture is 1000 pixels; The wish arrangement line number of picture is that 100/10=10 is capable, the overall height being shown picture is 10*75=750, now, the overall height being shown picture is greater than the height of viewing area, then the original width of each shown picture is started to reduce with 1 unit picture element, until the overall height being shown picture is not more than the height of viewing area size, and this overall height being shown picture before reducing unit picture element is greater than the height of viewing area size.
After adjusting the width and height being shown picture, due to the adjacent placement of picture, white space may be there is in viewing area, in order to strengthen aesthetic property, can by the width of the white space of the viewing area of acquisition, the average often row that arrive are shown picture, as the lateral separation that adjacent picture arranges; By the height of the white space of the viewing area of acquisition, average to often going shown picture, as the longitudinal separation that adjacent picture is capable.
Pass through foregoing description, can find out, use the picture layout method that the embodiment of the present invention provides, by viewing area size, picture number, the size of adaptive adjustment picture, guarantee all complete displays of energy of all pictures, and reach possible full-size, thus, when picture is less, the size of picture display is comparatively large, ensures sharpness; When picture is more, picture can completely show, and guarantees monitor speed.
Below by specific embodiment, the picture layout method that the embodiment of the present invention provides is described in detail, as shown in Figure 2, when being shown the Ratio invariableness of the height and the width of picture, comprises the following steps:
Step 201, basis are shown the original height of picture and the height of viewing area size, determine the picture line number that viewing area holds;
Step 202, original height according to picture columns and shown picture, represent the overall height being all shown picture;
Step 203, basis are shown the quantity of picture, and the picture line number that viewing area holds, and determine the wish arrangement columns of picture;
Step 204, according to for arrangement columns and the original height of shown picture, determine the overall width being all shown picture;
Step 205, to compare being all shown the overall width of picture and the width of viewing area, if be less than, execution step 206; If be greater than, perform step 208; If equal, be then shown the original width of picture and be highly defined as the width after adjusting and height, performing step 210.
Step 206, by the original height of shown picture with 1 unit picture element start increase, until the overall width being all shown picture is greater than the width of viewing area size, and this overall width being all shown picture before increasing unit picture element is not more than the width of viewing area size, or the overall height being all shown picture is greater than the height of viewing area size, and this overall height being all shown picture before increasing unit picture element is not more than the height of viewing area size;
Step 207, this is increased the height being shown picture before unit picture element, be defined as the height of the shown picture after adjusting; According to the ratio of the height and the width of shown picture, and the height of shown picture after adjustment, determine the width of shown picture, perform step 210;
Step 208, by the original height of shown picture with 1 unit picture element start reduce, until the overall width being all shown picture is not more than the width of viewing area size, and this overall width being shown picture before reducing unit picture element is greater than the width of viewing area size;
Step 209, by the height of this shown picture, be defined as the height of shown picture after adjusting; According to the ratio of the height and the width of shown picture, and the height of shown picture after adjustment, determine the width of shown picture;
Step 210, the width of white space of viewing area that will obtain, be on average shown picture, as the lateral separation of adjacent picture row to every row; By the height of the white space of the viewing area of acquisition, average to often going shown picture, as the longitudinal separation that adjacent picture is capable.
Use the width means overall width of shown picture identical with the process that above-mentioned steps 201 to 210 describes with the principle of overall height, do not repeat them here.
Wherein, when performing step 206, comparatively realized by a recycle ratio, detailed process as shown in Figure 3, comprises the following steps:
Step 301, by the original height of shown picture with 1 unit picture element start increase; The pixel count of each increase can according to circumstances set, such as, increase by 1 unit picture element at every turn.
Step 302, increase are shown the height of picture, obtain the height after being shown this increase of picture;
Step 303, the overall height after increasing and the height of viewing area to be compared, if be less than, perform step 304; If be greater than, then the height before this being increased, as the shown picture height after adjustment, performs step 305;
Step 304, according to increase after height, determine increase after overall width, the width of overall width and viewing area is compared; If be less than, perform step 302; If be greater than, then the height before this being increased is as the shown picture height after adjustment;
Step 305, according to the height of shown picture after adjustment, determine the width of the shown picture after adjusting.
Pass through foregoing description, can find out, use the picture layout method that the embodiment of the present invention provides, by viewing area size, picture number, the size of adaptive adjustment picture, guarantee all complete displays of energy of all pictures, and reach possible full-size, thus, when picture is less, the size of picture display is comparatively large, ensures sharpness; When picture is more, picture can completely show, and guarantees monitor speed.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of picture placement device, as shown in Figure 4, comprising:
Acquisition module 401, for obtaining viewing area size, being shown the original size of picture and the quantity of shown picture, the original size of each described shown picture is identical;
Adjusting module 402, for according to described viewing area size, the size of each described shown picture is adjusted by same adjustment mode, until the size of each described shown picture reaches maximum, and the whole overall widths being shown picture after adjustment are not more than the width of described viewing area size, overall height is not more than the height of described viewing area size.
Preferably, described acquisition module 401, specifically under screen mode toggle, obtains the size of whole display screen; Under non-screen mode toggle, obtain the current available display screen size of display terminal operating system.
Preferably, described adjusting module 402, for the original size according to described viewing area size, described shown picture, determines the picture columns that viewing area holds; When the overall width being all shown picture is not more than the width of described viewing area size, adjust the height of each described shown picture, until the overall height being all shown picture equals the height of described viewing area size; Or
According to the original size of described viewing area size, described shown picture, determine the picture line number that viewing area holds; When the overall height being all shown picture is not more than the height of described viewing area size, adjust the width of each described shown picture, until the overall width being all shown picture equals the width of described viewing area size; Or
During the Ratio invariableness of the height and the width of described shown picture, the width means of described shown picture is adopted all to be shown overall width and the overall height of picture;
The described all shown overall height of picture and the height of described viewing area are compared;
When the described overall height being all shown picture is less than the height of described viewing area,
The original width of each shown picture is started to increase with 1 unit picture element, until the overall width being all shown picture is greater than the width of described viewing area size, and the overall width of this described all shown picture before increasing unit picture element is not more than the width of described viewing area size, or the overall height being all shown picture is greater than the height of described viewing area size, and the overall height of this described all shown picture before increasing unit picture element is not more than the height of described viewing area size; Be shown the width of picture before this being increased unit picture element, be defined as the width of the shown picture after adjusting; According to the ratio of the height and the width of described shown picture, and the width of shown picture after adjustment, determine the height of described shown picture;
When the overall height of described shown picture is greater than the height of described viewing area,
The original width of each shown picture is started to reduce with 1 unit picture element, until the overall height being all shown picture is not more than the height of described viewing area size, and the overall height of this described all shown picture before reducing unit picture element is greater than the height of described viewing area size; By the width of this shown picture, be defined as the width of the shown picture after adjusting; According to the ratio of the height and the width of described shown picture, and the width of shown picture after adjustment, determine the height of described shown picture; Or
During the Ratio invariableness of the height and the width of described shown picture, the overall width and overall height that adopt the height of described shown picture to represent all to be shown picture;
The described all shown overall width of picture and the width of described viewing area are compared;
When the described overall width being all shown picture is less than the width of described viewing area,
The original height of each shown picture is started to increase with 1 unit picture element, until the described overall width being all shown picture is greater than the width of described viewing area size, and the overall width of this described all shown picture before increasing unit picture element is not more than the width of described viewing area size, or the overall height being all shown picture is greater than the height of described viewing area size, and the overall height of this described all shown picture before increasing unit picture element is not more than the height of described viewing area size; Be shown the height of picture before this being increased unit picture element, be defined as the height of the shown picture after adjusting; According to the ratio of the height and the width of described shown picture, and the height of shown picture after adjustment, determine the width of described shown picture;
When the overall width of described shown picture is greater than the width of described viewing area,
The original height of each shown picture is started to reduce with 1 unit picture element, until the overall width being all shown picture is not more than the width of described viewing area size, and the overall width of this described all shown picture before reducing unit picture element is greater than the width of described viewing area size; By the height of this shown picture, be defined as the height of the shown picture after adjusting; According to the ratio of the height and the width of described shown picture, and the height of shown picture after adjustment, determine the width of described shown picture.
Preferably, said apparatus also comprises:
Characterization module 403, for according to the original width of described shown picture and the width of described viewing area size, determines the picture columns that described viewing area holds; According to the original width of described picture columns and shown picture, represent the overall width being all shown picture; According to the quantity of described shown picture, and the picture columns that described viewing area holds, determine the wish arrangement line number of picture; According to the described original width for arranging line number and described shown picture, determine the overall height being all shown picture; Or
According to the original height of described shown picture and the height of described viewing area size, determine the picture line number that described viewing area holds; According to the original height of described picture columns and shown picture, represent the overall height being all shown picture; According to the quantity of described shown picture, and the picture line number that described viewing area holds, determine the wish arrangement columns of picture; According to the described original height for arranging columns and described shown picture, determine the overall width being all shown picture.
Preferably, said apparatus also comprises:
Processing module 404, for the width of white space of viewing area that will obtain, is on average shown picture, as the lateral separation of adjacent picture row to every row; By the height of the white space of the viewing area of acquisition, average to often going shown picture, as the longitudinal separation that adjacent picture is capable.
Pass through foregoing description, can find out, the picture layout method using the embodiment of the present invention to provide and device, by viewing area size, picture number, the size of adaptive adjustment picture, guarantee all complete displays of energy of all pictures, and reach possible full-size, thus, when picture is less, the size of picture display is comparatively large, ensures sharpness; When picture is more, picture can completely show, and guarantees monitor speed.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (11)

1. a picture layout method, is characterized in that, the method comprises:
Obtain viewing area size, be shown the original size of picture and the quantity of shown picture, the original size of each described shown picture is identical;
During the Ratio invariableness of the height and the width of described shown picture, the width means of described shown picture is adopted all to be shown overall width and the overall height of picture;
The described all shown overall height of picture and the height of described viewing area are compared;
When the described overall height being all shown picture is less than the height of described viewing area,
The original width of each shown picture is started to increase with 1 unit picture element, until the overall width being all shown picture is greater than the width of described viewing area size, and the overall width of this described all shown picture before increasing unit picture element is not more than the width of described viewing area size, or the overall height being all shown picture is greater than the height of described viewing area size, and the overall height of this described all shown picture before increasing unit picture element is not more than the height of described viewing area size; Be shown the width of picture before this being increased unit picture element, be defined as the width of the shown picture after adjusting; According to the ratio of the height and the width of described shown picture, and the width of shown picture after adjustment, determine the height of described shown picture;
When the overall height of described shown picture is greater than the height of described viewing area,
The original width of each shown picture is started to reduce with 1 unit picture element, until the overall height being all shown picture is not more than the height of described viewing area size, and the overall height of this described all shown picture before reducing unit picture element is greater than the height of described viewing area size; By the width of this shown picture, be defined as the width of the shown picture after adjusting; According to the ratio of the height and the width of described shown picture, and the width of shown picture after adjustment, determine the height of described shown picture.
2. the method for claim 1, is characterized in that, described acquisition viewing area size, comprising: under screen mode toggle, obtain the size of whole display screen; Under non-screen mode toggle, obtain the current available display screen size of display terminal operating system.
3. method as claimed in claim 2, is characterized in that, during the Ratio invariableness of the height and the width of described shown picture, adopts the width of described shown picture, represents the overall width and overall height that are all shown picture, comprising:
According to the original width of described shown picture and the width of described viewing area size, determine the picture columns that described viewing area holds; According to the original width of described picture columns and shown picture, represent the overall width being all shown picture;
According to the quantity of described shown picture, and the picture columns that described viewing area holds, determine the wish arrangement line number of picture; According to the described original width for arranging line number and described shown picture, determine the overall height being all shown picture.
4. the method for claim 1, is characterized in that, also comprises: by the width of the white space of the viewing area of acquisition, average to often arranging shown picture, as the lateral separation that adjacent picture arranges;
By the height of the white space of the viewing area of acquisition, average to often going shown picture, as the longitudinal separation that adjacent picture is capable.
5. a picture layout method, is characterized in that, the method comprises:
Obtain viewing area size, be shown the original size of picture and the quantity of shown picture, the original size of each described shown picture is identical;
During the Ratio invariableness of the height and the width of described shown picture, the overall width and overall height that adopt the height of described shown picture to represent all to be shown picture;
The described all shown overall width of picture and the width of described viewing area are compared;
When the described overall width being all shown picture is less than the width of described viewing area,
The original height of each shown picture is started to increase with 1 unit picture element, until the described overall width being all shown picture is greater than the width of described viewing area size, and the overall width of this described all shown picture before increasing unit picture element is not more than the width of described viewing area size, or the overall height being all shown picture is greater than the height of described viewing area size, and the overall height of this described all shown picture before increasing unit picture element is not more than the height of described viewing area size; Be shown the height of picture before this being increased unit picture element, be defined as the height of the shown picture after adjusting; According to the ratio of the height and the width of described shown picture, and the height of shown picture after adjustment, determine the width of described shown picture;
When the overall width of described shown picture is greater than the width of described viewing area,
The original height of each shown picture is started to reduce with 1 unit picture element, until the overall width being all shown picture is not more than the width of described viewing area size, and the overall width of this described all shown picture before reducing unit picture element is greater than the width of described viewing area size; By the height of this shown picture, be defined as the height of the shown picture after adjusting; According to the ratio of the height and the width of described shown picture, and the height of shown picture after adjustment, determine the width of described shown picture.
6. method as claimed in claim 5, is characterized in that, during the Ratio invariableness of the height and the width of described shown picture, adopts the height of described shown picture, represents the overall width and overall height that are all shown picture, comprising:
According to the original height of described shown picture and the height of described viewing area size, determine the picture line number that described viewing area holds; According to the original height of described picture columns and shown picture, represent the overall height being all shown picture;
According to the quantity of described shown picture, and the picture line number that described viewing area holds, determine the wish arrangement columns of picture; According to the described original height for arranging columns and described shown picture, determine the overall width being all shown picture.
7. method as claimed in claim 5, is characterized in that, also comprise: by the width of the white space of the viewing area of acquisition, and the average often row that arrive are shown picture, as the lateral separation that adjacent picture arranges;
By the height of the white space of the viewing area of acquisition, average to often going shown picture, as the longitudinal separation that adjacent picture is capable.
8. a picture placement device, is characterized in that, comprising:
Acquisition module, for obtaining viewing area size, being shown the original size of picture and the quantity of shown picture, the original size of each described shown picture is identical;
Adjusting module, during Ratio invariableness for the height and the width according to described shown picture, adopts the width means of described shown picture to be all shown overall width and the overall height of picture;
The described all shown overall height of picture and the height of described viewing area are compared;
When the described overall height being all shown picture is less than the height of described viewing area,
The original width of each shown picture is started to increase with 1 unit picture element, until the overall width being all shown picture is greater than the width of described viewing area size, and the overall width of this described all shown picture before increasing unit picture element is not more than the width of described viewing area size, or the overall height being all shown picture is greater than the height of described viewing area size, and the overall height of this described all shown picture before increasing unit picture element is not more than the height of described viewing area size; Be shown the width of picture before this being increased unit picture element, be defined as the width of the shown picture after adjusting; According to the ratio of the height and the width of described shown picture, and the width of shown picture after adjustment, determine the height of described shown picture;
When the overall height of described shown picture is greater than the height of described viewing area,
The original width of each shown picture is started to reduce with 1 unit picture element, until the overall height being all shown picture is not more than the height of described viewing area size, and the overall height of this described all shown picture before reducing unit picture element is greater than the height of described viewing area size; By the width of this shown picture, be defined as the width of the shown picture after adjusting; According to the ratio of the height and the width of described shown picture, and the width of shown picture after adjustment, determine the height of described shown picture; Or
During the Ratio invariableness of the height and the width of described shown picture, the overall width and overall height that adopt the height of described shown picture to represent all to be shown picture;
The described all shown overall width of picture and the width of described viewing area are compared;
When the described overall width being all shown picture is less than the width of described viewing area,
The original height of each shown picture is started to increase with 1 unit picture element, until the described overall width being all shown picture is greater than the width of described viewing area size, and the overall width of this described all shown picture before increasing unit picture element is not more than the width of described viewing area size, or the overall height being all shown picture is greater than the height of described viewing area size, and the overall height of this described all shown picture before increasing unit picture element is not more than the height of described viewing area size; Be shown the height of picture before this being increased unit picture element, be defined as the height of the shown picture after adjusting; According to the ratio of the height and the width of described shown picture, and the height of shown picture after adjustment, determine the width of described shown picture;
When the overall width of described shown picture is greater than the width of described viewing area,
The original height of each shown picture is started to reduce with 1 unit picture element, until the overall width being all shown picture is not more than the width of described viewing area size, and the overall width of this described all shown picture before reducing unit picture element is greater than the width of described viewing area size; By the height of this shown picture, be defined as the height of the shown picture after adjusting; According to the ratio of the height and the width of described shown picture, and the height of shown picture after adjustment, determine the width of described shown picture.
9. device as claimed in claim 8, is characterized in that, described acquisition module, specifically under screen mode toggle, obtains the size of whole display screen; Under non-screen mode toggle, obtain the current available display screen size of display terminal operating system.
10. device as claimed in claim 9, is characterized in that, also comprise:
Characterization module, for according to the original width of described shown picture and the width of described viewing area size, determines the picture columns that described viewing area holds; According to the original width of described picture columns and shown picture, represent the overall width being all shown picture; According to the quantity of described shown picture, and the picture columns that described viewing area holds, determine the wish arrangement line number of picture; According to the described original width for arranging line number and described shown picture, determine the overall height being all shown picture; Or
According to the original height of described shown picture and the height of described viewing area size, determine the picture line number that described viewing area holds; According to the original height of described picture columns and shown picture, represent the overall height being all shown picture; According to the quantity of described shown picture, and the picture line number that described viewing area holds, determine the wish arrangement columns of picture; According to the described original height for arranging columns and described shown picture, determine the overall width being all shown picture.
11. devices as claimed in claim 10, is characterized in that, also comprise:
Processing module, for the width of white space of viewing area that will obtain, is on average shown picture, as the lateral separation of adjacent picture row to every row; By the height of the white space of the viewing area of acquisition, average to often going shown picture, as the longitudinal separation that adjacent picture is capable.
CN201110460355.5A 2011-12-31 2011-12-31 A kind of picture layout method and device Expired - Fee Related CN103186638B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110460355.5A CN103186638B (en) 2011-12-31 2011-12-31 A kind of picture layout method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110460355.5A CN103186638B (en) 2011-12-31 2011-12-31 A kind of picture layout method and device

Publications (2)

Publication Number Publication Date
CN103186638A CN103186638A (en) 2013-07-03
CN103186638B true CN103186638B (en) 2015-12-02

Family

ID=48677807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110460355.5A Expired - Fee Related CN103186638B (en) 2011-12-31 2011-12-31 A kind of picture layout method and device

Country Status (1)

Country Link
CN (1) CN103186638B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104867103A (en) * 2014-02-24 2015-08-26 腾讯科技(深圳)有限公司 Photograph display processing method and device
CN104932871B (en) * 2014-03-18 2019-08-23 腾讯科技(北京)有限公司 A kind of method and device showing multimedia messages
CN104408077B (en) * 2014-11-03 2018-07-24 宇龙计算机通信科技(深圳)有限公司 Picture shows method, shows system and terminal
CN105260351B (en) * 2015-09-10 2018-05-01 武汉改图网技术有限公司 A kind of online self-help design method of printed matter based on adaptive masterplate
CN105373308B (en) * 2015-11-09 2019-06-25 形山科技(深圳)有限公司 A kind of image processing method and carry equipment
CN105426475A (en) * 2015-11-18 2016-03-23 Tcl集团股份有限公司 Media file synchronization method and device
CN105578268B (en) * 2015-12-17 2019-03-01 深圳Tcl数字技术有限公司 Image display method and device
CN106056651A (en) * 2016-06-03 2016-10-26 北京金山安全软件有限公司 Picture layout management method and device and electronic equipment
CN107861788A (en) * 2017-11-23 2018-03-30 深圳市雷鸟信息科技有限公司 Picture layout method, terminal and computer-readable recording medium
CN109710121B (en) * 2019-01-10 2020-07-03 环球雅途集团有限公司 Typesetting display method capable of adapting to screen size
CN112862693B (en) * 2021-04-08 2023-07-04 上海哔哩哔哩科技有限公司 Picture processing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1728145A (en) * 2004-07-29 2006-02-01 佳能株式会社 Information management apparatus, information presentation method, image processing apparatus, and image processing method
CN101632062A (en) * 2007-03-15 2010-01-20 皇家飞利浦电子股份有限公司 Generate the method and apparatus of album of images

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008527539A (en) * 2005-01-05 2008-07-24 ヒルクレスト・ラボラトリーズ・インコーポレイテッド Scaling and layout method and system for processing one to many objects

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1728145A (en) * 2004-07-29 2006-02-01 佳能株式会社 Information management apparatus, information presentation method, image processing apparatus, and image processing method
CN101632062A (en) * 2007-03-15 2010-01-20 皇家飞利浦电子股份有限公司 Generate the method and apparatus of album of images

Also Published As

Publication number Publication date
CN103186638A (en) 2013-07-03

Similar Documents

Publication Publication Date Title
CN103186638B (en) A kind of picture layout method and device
CN103337086B (en) picture editing method and device for mobile terminal
TWI490772B (en) Method and apparatus for adapting custom control components to a screen
CN103531175B (en) Splicing display device screen intensity uniformity tuning method and system
CN104793945A (en) Large-batch picture displaying method for preventing memory overflow and device thereof
US10802680B2 (en) Pixel-aligned layout grids
CN104267887B (en) Five application page self-adaption typesetting display methods based on application widget dimensional parameters
CN106296622B (en) Automatic layout jigsaw method and device
CN105468617B (en) Adjust the method and device of web page contents color
CN112055244B (en) Image acquisition method and device, server and electronic equipment
CN109361947A (en) Internet resources batch loading method, smart television, storage medium and device
CN105243399B (en) A kind of method and apparatus that realizing image convolution, the method and apparatus for realizing caching
CN103914213A (en) Method and device for eliminating page dithering
CN104104995A (en) Image display method and device
CN109429085B (en) Display device and image processing method thereof
KR102189647B1 (en) Display apparatus, system and controlling method thereof
CN105373373B (en) Method and device for quickly generating icon
CN111104077B (en) Multi-screen display control method, device and equipment and readable storage medium
WO2014026623A1 (en) Method, device and terminal for adjusting widget
CN105224538B (en) The dithering process method and apparatus of image
CN104461280A (en) Information processing method and electronic device
US10706501B2 (en) Method and apparatus for stretching image
CN114222074B (en) Spliced screen driving method and device, server and storage medium
CN104517273A (en) Image super-resolution processing method and apparatus
CN103139632A (en) Image processing method and image processing device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220627

Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031

Patentee after: New founder holdings development Co.,Ltd.

Patentee after: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

Address before: 100871, Beijing, Haidian District Cheng Fu Road 298, founder building, 9 floor

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20151202

CF01 Termination of patent right due to non-payment of annual fee