Summary of the invention
Embodiments of the invention provide a kind of image display method and device.The clear not effective problem of the just list that mobile phone operating system shows can be solved.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, a kind of image display method, is applied to mobile phone operating system, comprising:
Obtain space transformation matrix instruction, described space transformation matrix instruction comprises the first predetermined number and the anglec of rotation, and the described anglec of rotation is 90 degree;
Obtain a transverse area in list interface, described transverse area is that in described list interface walks crosswise region;
Described transverse area is laterally divided into walking crosswise of the first predetermined number, and walking crosswise for one in described transverse area is a unit horizontal palace lattice;
According to described space transformation matrix instruction, in described transverse area, horizontal for the unit of described first predetermined number palace lattice are obtained unit longitudinal palace lattice of the first predetermined number around the equidirectional 90-degree rotation of central point of described transverse area, described unit longitudinal palace lattice are the region in described transverse area shared by a file;
Adjust the width of described unit longitudinal palace lattice, make the unit of described first predetermined number longitudinal palace lattice fill up described transverse area;
In unit longitudinal palace lattice of described first predetermined number, picture is preset in display, and wherein, described unit longitudinal palace lattice show a described default picture.
In conjunction with first aspect, in the implementation that the first is possible,
Described space transformation matrix instruction also comprises coordinate transform coefficient;
Described according to described space transformation matrix instruction, in described transverse area, horizontal for the unit of described first predetermined number palace lattice are obtained unit longitudinal palace lattice of the first predetermined number around the equidirectional 90-degree rotation of central point of described transverse area, comprising:
In the coordinate system of described list interface, obtain the coordinate that each point is concentrated in the horizontal lattice preset, palace of described unit;
Concentrate the coordinate of each point to carry out affine matrix conversion horizontal for described unit lattice preset, palace according to described coordinate transform coefficient and the described anglec of rotation and obtain the coordinate that each point is concentrated in the longitudinal lattice preset, palace of described unit;
The coordinate of each point is concentrated to obtain unit longitudinal palace lattice of described first predetermined number according to the longitudinal lattice preset, palace of described unit.
In conjunction with first aspect, in the implementation that the second is possible, before the instruction of described acquisition space transformation matrix, also comprise:
Obtain picture showing information, described picture showing information comprises the quantity of described default picture;
Using the quantity of described default picture as described first predetermined number, and generate described space transformation matrix instruction.
In conjunction with first aspect, in the implementation that the third is possible, in the described unit at described first predetermined number longitudinal palace lattice, picture is preset in display, comprising:
Obtain the described default picture of the first predetermined number;
Do not change the length of described default picture and the ratio of height, described default picture is carried out convergent-divergent, makes the length sum of the described default picture of described first predetermined number be less than or equal to the length of described transverse area;
In the unit of described first predetermined number longitudinal palace lattice, show described default picture, and adjust the width of the longitudinal palace lattice of unit described in each and the length of described default picture and width, the default picture of described first predetermined number is shown completely.
In conjunction with arbitrary implementation in first aspect to the third possible implementation of first aspect, in the 4th kind of possible implementation, described before list interface obtains transverse area, also comprise:
The described transverse area of the second predetermined number is marked off in described list interface.
Second aspect, a kind of image display apparatus, is applied to mobile phone operating system, comprising:
Acquiring unit, for obtaining space transformation matrix instruction, described space transformation matrix instruction comprises the first predetermined number and the anglec of rotation, and the described anglec of rotation is 90 degree;
Described acquiring unit, also for obtaining a transverse area in list interface, described transverse area is that in described list interface walks crosswise region;
District management unit, is laterally divided into walking crosswise of the first predetermined number for the described transverse area obtained by described acquiring unit, and walking crosswise for one in described transverse area is a unit horizontal palace lattice;
Described district management unit, described space transformation matrix instruction also for obtaining according to described acquiring unit, in described transverse area, horizontal for the unit of described first predetermined number palace lattice are obtained unit longitudinal palace lattice of the first predetermined number around the equidirectional 90-degree rotation of central point of described transverse area, described unit longitudinal palace lattice are the region in described transverse area shared by a file;
Described district management unit, also for adjusting the width of described unit longitudinal palace lattice, makes the unit of described first predetermined number longitudinal palace lattice fill up described transverse area;
Display unit, presets picture for display in unit longitudinal palace lattice of described first predetermined number, and wherein, described unit longitudinal palace lattice show a described default picture.
In conjunction with second aspect, in the implementation that the first is possible,
Described space transformation matrix instruction also comprises coordinate transform coefficient;
Described acquiring unit, also in the coordinate system of described list interface, obtains the coordinate that each point is concentrated in the horizontal lattice preset, palace of described unit;
Described district management unit, described unit also for being obtained by described acquiring unit according to described coordinate transform coefficient and the described anglec of rotation concentrates horizontal lattice preset, palace the coordinate of each point to carry out affine matrix conversion and obtains the coordinate that each point is concentrated in the longitudinal lattice preset, palace of described unit, and concentrates the coordinate of each point to obtain unit longitudinal palace lattice of described first predetermined number according to the longitudinal lattice preset, palace of described unit.
In conjunction with second aspect, in the implementation that the second is possible,
Described acquiring unit, also for obtaining picture showing information, described picture showing information comprises the quantity of described default picture, using the quantity of described default picture as described first predetermined number, and generates described space transformation matrix instruction.
In conjunction with second aspect, in the implementation that the third is possible,
Described acquiring unit, also for obtaining the described default picture of the first predetermined number;
Described display unit, also for not changing length and the ratio highly of the described default picture of the first predetermined number that described acquiring unit obtains, the described default picture of described first predetermined number is carried out convergent-divergent, the length sum of described default picture is made to be less than or equal to the length of described transverse area, described default picture is shown in unit longitudinal palace lattice of described first predetermined number, and adjust the width of the longitudinal palace lattice of unit described in each and the length of described default picture and width, the described default picture of described first predetermined number is shown completely.
In conjunction with arbitrary implementation in second aspect to the third possible implementation of second aspect, in the 4th kind of possible implementation,
Described district management unit, also for marking off the described transverse area of the second predetermined number in described list interface.
The image display method that embodiments of the invention provide and device, by obtaining space transformation matrix instruction, a transverse area is obtained in list interface, transverse area is laterally divided into walking crosswise of the first predetermined number, according to space transformation matrix instruction, in the lateral zones, horizontal for the unit of the first predetermined number palace lattice are obtained unit longitudinal palace lattice of the first predetermined number around the equidirectional 90-degree rotation of central point of transverse area, the width of unit of adjustment's longitudinal palace lattice, the unit of the first predetermined number longitudinal palace lattice are made to fill up transverse area, in unit longitudinal palace lattice of the first predetermined number, picture is preset in display, solve the clear not effective problem of the just list that mobile phone operating system shows.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments of the invention provide a kind of image display method, are applied to mobile phone operation platform, with reference to shown in Fig. 1, comprise the following steps:
101, space transformation matrix instruction is obtained.
Wherein, space transformation matrix instruction comprises the first predetermined number and the anglec of rotation, and in the present invention, the anglec of rotation is 90 degree.
102, a transverse area is obtained in list interface.
Transverse area is that in this list interface walks crosswise region.In existing mobile phone operating system, list interface can only be shown as the list of a row multirow, and transverse area one of referring in list interface walks crosswise region herein.
103, transverse area is laterally divided into walking crosswise of the first predetermined number.
Concrete, walking crosswise for one in transverse area is a unit horizontal palace lattice.Be different from and walk crosswise region in above-mentioned list interface, lattice one of referring in transverse area in unit horizontal palace walks crosswise herein, and the region of walking crosswise namely in list interface is divided into walking crosswise of the first predetermined number.
104, according to space transformation matrix instruction, in the lateral zones, horizontal for the unit of the first predetermined number palace lattice are obtained unit longitudinal palace lattice of the first predetermined number around the equidirectional 90-degree rotation of central point of transverse area.
Unit longitudinal palace lattice are the region in transverse area shared by a file.Optionally, by horizontal for the unit of the first predetermined number palace lattice around transverse area central point counterclockwise or dextrorotation turn 90 degrees, just can obtain the unit longitudinal direction palace lattice of the first predetermined number.That is the unit laterally divided in transverse area horizontal palace lattice are become the unit longitudinal palace lattice longitudinally divided by rotation, in transverse area, the distribution pattern of row three row becomes the distribution pattern that a line three arranges.
Concrete optional, space transformation matrix instruction also comprises coordinate transform coefficient.Realize unit horizontal palace lattice to rotate to obtain unit longitudinal palace lattice by affine matrix conversion:
In the coordinate system of list interface, obtain the coordinate that each point is concentrated in the horizontal lattice preset, palace of unit.
Concentrate the coordinate of each point to carry out affine matrix conversion horizontal for unit lattice preset, palace according to coordinate transform coefficient and the anglec of rotation and obtain the coordinate that each point is concentrated in the longitudinal lattice preset, palace of unit.
The coordinate of each point is concentrated to obtain unit longitudinal palace lattice of the first predetermined number according to the longitudinal lattice preset, palace of unit.
Certainly; affine matrix conversion is a kind of conventional preferred version that the present embodiment provides, if realize same effect by other means, also belongs to protection scope of the present invention; for specifically how realizing, unit horizontal palace lattice 90-degree rotation is obtained unit longitudinal palace lattice, the present invention does not limit.Horizontal tabulation and longitudinal palace lattice can be changed by space transformation matrix, realize horizontal tabulation control and longitudinally Showed Picture.
105, the width of unit of adjustment longitudinal palace lattice, makes the unit of the first predetermined number longitudinal palace lattice fill up transverse area.
Preferably, can the width of unit of adjustment's longitudinal palace lattice, unit longitudinal palace lattice are uniformly distributed in the lateral zones, and the width of each unit longitudinal palace lattice is identical.
106, in unit longitudinal palace lattice of the first predetermined number, picture is preset in display.
Wherein, unit longitudinal palace lattice show a default picture.
Optionally, specifically comprise: the default picture obtaining the first predetermined number.Do not change the length of default picture and the ratio of height, the default picture of described first predetermined number is carried out convergent-divergent, makes the length sum of the described default picture of the first predetermined number be less than or equal to the length of transverse area.Preferably, convergent-divergent is carried out to default picture, make the length sum of the default picture of the first predetermined number equal the length of transverse area, and make the height of default picture be less than or equal to the height of transverse area.
In the unit of the first predetermined number longitudinal palace lattice, picture is preset in display, and adjusts the width of each unit longitudinal palace lattice and the length of default picture and width, and default picture is shown completely.
Optionally, before step 101, this list interface can also be marked off the transverse area of the second predetermined number, then each transverse area is performed the method described by step 101-105, so just can mark off the list to multiple lines and multiple rows, picture is shown with the tabular form of multiple lines and multiple rows.And because the display of list in mobile phone operation platform can only laterally divide, therefore by said method, first laterally divide, then 90-degree rotation makes it to become the stability that the pattern longitudinally divided farthest ensure that system.By said method, mobile phone clearly can Show Picture, and because the display mode of multiple lines and multiple rows, a lot of picture can be shown at a page, facilitate user to search.
The image display method that embodiments of the invention provide, by obtaining space transformation matrix instruction, a transverse area is obtained in list interface, transverse area is laterally divided into walking crosswise of the first predetermined number, according to space transformation matrix instruction, in the lateral zones, horizontal for the unit of the first predetermined number palace lattice are obtained unit longitudinal palace lattice of the first predetermined number around the equidirectional 90-degree rotation of central point of transverse area, the width of unit of adjustment's longitudinal palace lattice, the unit of the first predetermined number longitudinal palace lattice are made to fill up transverse area, in unit longitudinal palace lattice of the first predetermined number, picture is preset in display, solve the clear not effective problem of the just list that mobile phone operating system shows.
Based on the embodiment that above-mentioned Fig. 1 is corresponding, embodiments of the invention provide a kind of concrete implementation, and scheme is as follows:
S1, list interface is divided into the transverse area of the second predetermined number.
Optionally, the second predetermined number can sets itself, and with reference to shown in Fig. 2, the present embodiment is described with 3 behavior examples, but the second predetermined number do not represented in the present embodiment can only be 3.
S2, a transverse area is divided into the unit horizontal palace lattice of the first predetermined number.And by horizontal for the unit of the first predetermined number palace lattice around this transverse area central point counterclockwise or dextrorotation turn 90 degrees the unit longitudinal palace lattice obtaining the first predetermined number.
Concrete optional, obtain the coordinate that each point is concentrated in the horizontal lattice preset, palace of unit, preferably, using four summits on horizontal for unit lattice border, palace as preset, according to coordinate transform coefficient and the anglec of rotation, the coordinate on horizontal for unit lattice four summits, palace is carried out affine matrix conversion, corresponding four apex coordinates that can obtain unit longitudinal palace lattice, can obtain unit longitudinal palace lattice of the first predetermined number according to the coordinate on longitudinal lattice four summits, palace of unit.
Certainly; affine matrix conversion is a kind of conventional preferred version that the present embodiment provides, if realize same effect by other means, also belongs to protection scope of the present invention; for specifically how realizing, unit horizontal palace lattice 90-degree rotation is obtained unit longitudinal palace lattice, the present invention does not limit.
The width of unit of adjustment's longitudinal palace lattice, makes the unit of the first predetermined number longitudinal palace lattice fill up transverse area.
Concrete, with reference to shown in Fig. 2, the first transverse area can be divided into 3 row, wherein, solid line is divided into the division of transverse area, and dotted line is divided into the division of unit horizontal palace lattice.With reference to shown in Fig. 3, by unit horizontal palace lattice clockwise or obtain 3 units longitudinal palace lattice after being rotated counterclockwise 90 degree, wherein, solid line is divided into the division of transverse area, and dotted line is divided into the division of unit longitudinal palace lattice.
S3, in unit longitudinal palace lattice display preset picture.Comprise following two schemes.
First scheme:
Obtain and preset picture, do not change the length of default picture and the ratio of height, convergent-divergent is carried out to default picture, makes the length sum of default picture be less than or equal to the length of its place transverse area.
Preferably, make the length sum of default picture equal the length of its place transverse area, and make the height of default picture be less than or equal to the height of its place transverse area.
The width of unit of adjustment's longitudinal palace lattice and the length of default picture and width, make default picture show completely.
Alternative plan:
Obtain and preset picture, do not change the length of default picture and the ratio of height, convergent-divergent is carried out to default picture, makes the height of default picture equal the height of unit longitudinal palace lattice of its correspondence and the length presetting picture is greater than or equal to the width of longitudinal palace lattice of its correspondence; Or make the length of default picture equal the width of unit longitudinal palace lattice of its correspondence and the height presetting picture is greater than or equal to the height of unit longitudinal palace lattice of its correspondence.
Adjustment Pictures location, clips the part of the unit longitudinal palace lattice not being presented at its correspondence in picture.
Like this, carry out suitable convergent-divergent to picture, the part only Showed Picture in unit longitudinal palace lattice, also ensure that the sharpness of picture.
The above is two kinds of processing modes to picture that the present embodiment provides, and do not represent the present invention and only comprise this two kinds of modes, can certainly have other modes, what obtain identical or similar effect by other means also belongs to protection scope of the present invention.
S4, the method described by S2, S3 is all performed to 3 transverse areas divided in S1, certainly, each transverse area is divided into the quantity of unit horizontal palace lattice can be different, with reference to shown in Fig. 3, first transverse area is divided into 3 units longitudinal palace lattice, second transverse area is divided into 2 units longitudinal palace lattice, and the 3rd transverse area is divided into 3 units longitudinal palace lattice.
The image display method that embodiments of the invention provide, by obtaining space transformation matrix instruction, a transverse area is obtained in list interface, transverse area is laterally divided into walking crosswise of the first predetermined number, according to space transformation matrix instruction, in the lateral zones, horizontal for the unit of the first predetermined number palace lattice are obtained unit longitudinal palace lattice of the first predetermined number around the equidirectional 90-degree rotation of central point of transverse area, the width of unit of adjustment's longitudinal palace lattice, the unit of the first predetermined number longitudinal palace lattice are made to fill up transverse area, in unit longitudinal palace lattice of the first predetermined number, picture is preset in display, solve the clear not effective problem of the just list that mobile phone operating system shows.
Based on the embodiment that above-mentioned Fig. 1 is corresponding, embodiments of the invention provide a kind of image display apparatus, be applied to mobile phone operating system, for implementing the image display method described in embodiment corresponding to above-mentioned Fig. 1, preferably, this image display apparatus can be a mobile phone, certainly, also can be the device of application mobile phone operating system, with reference to shown in Fig. 4, this image display apparatus 401 comprises: acquiring unit 4011, district management unit 4012 and display unit 4013.
Wherein, acquiring unit 4011, for obtaining space transformation matrix instruction, space transformation matrix instruction comprises the first predetermined number and the anglec of rotation, and the anglec of rotation is 90 degree.
Acquiring unit 4011, also for obtaining a transverse area in list interface, transverse area is that in list interface walks crosswise region.
District management unit 4012, is laterally divided into walking crosswise of the first predetermined number for the transverse area obtained by acquiring unit 4011, and walking crosswise for one in transverse area is a unit horizontal palace lattice.
District management unit 4012, space transformation matrix instruction also for obtaining according to acquiring unit 4011, in the lateral zones, horizontal for the unit of the first predetermined number palace lattice are obtained unit longitudinal palace lattice of the first predetermined number around the equidirectional 90-degree rotation of central point of transverse area, unit longitudinal palace lattice are the region in transverse area shared by a file.
District management unit 4012, also for the width of unit of adjustment's longitudinal palace lattice, makes the unit of the first predetermined number longitudinal palace lattice fill up transverse area.
Display unit 4013, presets picture for display in unit longitudinal palace lattice of the first predetermined number, and wherein, unit longitudinal palace lattice show a default picture.
The image display apparatus that embodiments of the invention provide, by obtaining space transformation matrix instruction, a transverse area is obtained in list interface, transverse area is laterally divided into walking crosswise of the first predetermined number, according to space transformation matrix instruction, in the lateral zones, horizontal for the unit of the first predetermined number palace lattice are obtained unit longitudinal palace lattice of the first predetermined number around the equidirectional 90-degree rotation of central point of transverse area, the width of unit of adjustment's longitudinal palace lattice, the unit of the first predetermined number longitudinal palace lattice are made to fill up transverse area, in unit longitudinal palace lattice of the first predetermined number, picture is preset in display, solve the clear not effective problem of the just list that mobile phone operating system shows.
Optionally, in a kind of concrete application scenarios, space transformation matrix instruction also comprises coordinate transform coefficient.
Acquiring unit 4011, also in the coordinate system of list interface, obtains the coordinate that each point is concentrated in the horizontal lattice preset, palace of unit.
District management unit 4012, unit also for being obtained by acquiring unit 4011 according to coordinate transform coefficient and the anglec of rotation concentrates horizontal lattice preset, palace the coordinate of each point to carry out affine matrix conversion and obtains the coordinate that each point is concentrated in the longitudinal lattice preset, palace of unit, and concentrates the coordinate of each point to obtain unit longitudinal palace lattice of the first predetermined number according to the longitudinal lattice preset, palace of unit.
Optionally, acquiring unit 4011, also for obtaining picture showing information, picture showing information comprises the quantity of default picture, using the quantity of default picture as the first predetermined number, and span matrixing instruction.
Optionally, acquiring unit 4011, also for obtaining the default picture of the first predetermined number.
Display unit 4013, also for not changing length and the ratio highly of the described default picture of the first predetermined number that acquiring unit 4011 obtains, described default picture is carried out convergent-divergent, the length sum of the described default picture of described first predetermined number is made to be less than or equal to the length of transverse area, in unit longitudinal palace lattice of the first predetermined number, picture is preset in display, and adjust the width of each unit longitudinal palace lattice and the length of default picture and width, the default picture of described first predetermined number is shown completely.
Optionally, district management unit 4012, also for marking off the transverse area of the second predetermined number in list interface.
The image display apparatus that embodiments of the invention provide, by obtaining space transformation matrix instruction, a transverse area is obtained in list interface, transverse area is laterally divided into walking crosswise of the first predetermined number, according to space transformation matrix instruction, in the lateral zones, horizontal for the unit of the first predetermined number palace lattice are obtained unit longitudinal palace lattice of the first predetermined number around the equidirectional 90-degree rotation of central point of transverse area, the width of unit of adjustment's longitudinal palace lattice, the unit of the first predetermined number longitudinal palace lattice are made to fill up transverse area, in unit longitudinal palace lattice of the first predetermined number, picture is preset in display, solve the clear not effective problem of the just list that mobile phone operating system shows.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.