A kind of custom resolution display packing and deviceTechnical field
The present invention relates to mobile device and optimize field, in particular it relates to a kind of custom resolution display sideMethod and device.
Background technology
Display resolution (screen resolution) is the precision of screen picture, refers to that display can showPixel have how many.Owing to the point on screen, line dough-making powder are all made up of pixel, display can showPixel the most, picture is the finest, and the information that can show in same screen area is the most, soResolution is one of one very important performance indications of mobile phone.
Fig. 1 is conventional resolution and displaying ratio schematic diagram.High-resolution is to ensure that color display is clearThe important prerequisite of degree.The point of display away from being one of high-resolution basis, large screen color displayPoint is away from generally 0.28,0.26,0.25.High-resolution another aspect refers to that display in level and hangs downThe maximum pixel point that straight display aspect can reach, typically has 320 × 240,640 × 480,1024 × 768,1280 × 1024 etc. several, and good giant-screen colour display screen can be normally reached the resolution of 1600 × 1280.Higher resolution does not mean only that higher definition, and also implying that can in same viewing areaShow more content.Such as under 640 × 480 resolution, it is only able to display one page of content, 1600 ×Then can show page two under 1280 resolution simultaneously.
Resolution is the how many parameter of data volume in tolerance bitmap images.It is often expressed as per inch pictureElement (PPI) and per inch point (DPI).The data comprised are the most, and the length of graphic file is the biggest,Also more rich details can be showed.But bigger file needs to consume more computer resource, moreInternal memory, bigger hard drive space etc..If the data that image comprises are not fully (graphics resolution is relatively low),Will seem the most coarse, the when of particularly image being enlarged into a large-size viewing.SoDuring picture creates, we must determine correct resolution according to the purposes that image is final.Here skillIt is to ensure that image comprises abundant data ingeniously, the needs of final output can be met.Want appropriate simultaneously,Take the resource of some computers less as far as possible.
Generally, " resolution " is expressed as the pixel quantity on each direction, and such as 640 × 480 etc.." per inch pixel " (PPI) and the length and width of figure can also be expressed as in some cases simultaneously.Such as 72PPI, and 8 × 6 inches.
Along with the screen of mobile phone and flat board is increasing, although part mobile phone and flat board have supported one handPattern, but what existing scheme one hand model resolution was all fixed, the hobby according to user can not be supportedIt is big that the size of self-defined singlehanded model resolution and non-singlehanded pattern Customize User Interface that (UI) showLittle.
The problems referred to above there is no good solution in the prior art.
Summary of the invention
It is an object of the invention to provide a kind of custom resolution display packing and device, the method can spiritLive and the display resolution of mobile device is set.
To achieve these goals, the present invention provides a kind of custom resolution display packing, the method bagInclude:
Determine and will adjust display resolution;
It is received from definition resolution data;And
Custom resolution data according to being received show.
Further, the step being received from definition resolution data described in includes: receives and draws picture frame;WithThe drafting picture frame that rectangle picture frame matching is received;Determine the coordinate data of described rectangle picture frame;And according toDetermined by coordinate data obtain described custom resolution data.
Further, the method also includes: after determining the coordinate data of described rectangle picture frame, preservesDetermined by coordinate data.
Further, the step being received from definition resolution data described in includes: receive coordinate data;WithAnd obtain described custom resolution data according to the coordinate data received.
Further, described coordinate data is rectangle picture frame coordinate data.
Further, described coordinate data is the coordinate data at diagonal angle of described rectangle picture frame.
Further, described diagonal angle be the upper left corner of described rectangle picture frame and the lower right corner or the lower left corner andThe upper right corner.
Correspondingly, the present invention also provides for a kind of custom resolution display device, and this device includes: adjustModule, is used for determining and will adjust display resolution;Receiver module, is used for receiving custom resolution numberAccording to;And display module, for showing according to the custom resolution data received.
Wherein, described receiver module includes: picture frame receiver module, is used for receiving drafting picture frame;Matching mouldBlock, for the drafting picture frame received with rectangle picture frame matching;Coordinate determines module, is used for determining describedThe coordinate data of rectangle picture frame;And data obtaining module, obtain for coordinate data determined by basisDescribed custom resolution data.
Wherein, described receiver module includes: coordinate receiver module, is used for receiving coordinate data;And numberAccording to obtaining module, for obtaining described custom resolution data according to the coordinate data received.
By technique scheme, the custom resolution data according to receiving show, can arrange flexiblyThe display resolution of mobile device.
Other features and advantages of the present invention will be described in detail in detailed description of the invention part subsequently.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and constitutes the part of description, withDetailed description below is used for explaining the present invention together, but is not intended that limitation of the present invention.?In accompanying drawing:
Fig. 1 is conventional resolution and displaying ratio schematic diagram;
Fig. 2 is the custom resolution display packing flow chart that embodiment of the present invention provides;
Fig. 3 is the custom resolution display packing flow chart that the preferred embodiment for the present invention provides;
Fig. 4 is the citing operation interface implementing the method that the present invention provides;
Fig. 5 is that the custom resolution of example arranges result schematic diagram;
Fig. 6 is that the custom resolution of another example arranges result schematic diagram;
The structural representation of a kind of custom resolution display device that Fig. 7 provides for the present invention;
The structure of one embodiment of a kind of custom resolution display device that Fig. 8 provides for the present invention is shownIt is intended to;And
Another embodiment of a kind of custom resolution display device that Fig. 9 provides for the present invention knotStructure schematic diagram.
Detailed description of the invention
Below in conjunction with accompanying drawing, the detailed description of the invention of the present invention is described in detail.It should be appreciated thatDetailed description of the invention described herein is merely to illustrate and explains the present invention, is not limited to thisBright.
Fig. 2 is the custom resolution display packing flow chart that embodiment of the present invention provides.Such as Fig. 2 instituteShow that the custom resolution display packing that the present invention provides may include that
Determine and will adjust display resolution;
It is received from definition resolution data;And
Custom resolution data according to being received show.
In said method step, the step being received from definition resolution data may include that reception is drawnPicture frame;The drafting picture frame received with rectangle picture frame matching;Determine the coordinate data of described rectangle picture frame;And according to determined by coordinate data obtain described custom resolution data.
In actual use, said process can be defined as " Freehandhand-drawing mode ", the i.e. use of mobile terminalFamily can draw a rectangle picture frame with arbitrary resolution on screen, and operating system can use squareThe picture frame that shape picture frame matching user is drawn on the touchscreen, and rectangle picture frame is converted to one group of display pointResolution data, then, such as after user confirms to use this resolution, can be by this User DefinedThis group display resolution data be saved in the mobile device of such as mobile phone, mobile phone will be made by oneself according to userThe resolution of justice shows.Display effect can be as shown in Figure 5.
In another embodiment, the step being received from definition resolution data may include that reception is satMark data;And obtain described custom resolution data according to the coordinate data received.Wherein, instituteStating coordinate data can be histogram frame coordinate data.Described coordinate data can be described rectangle picture frameThe coordinate data at diagonal angle.Such as, described diagonal angle be the upper left corner of described rectangle picture frame and the lower right corner orThe lower left corner and the upper right corner.
Said process can be defined as " setting coordinated manner ", in this process, need user to inputCoordinate figure after original resolution offsets, the coordinate data that user inputs can be preserved by system, andShow according to the coordinate of user setup.The most original resolution is 960x1280, and user can specify upper leftAngle is [0,240] and the lower right corner is [720,1280], and the now display of UI can keep left downside, and resolutionFor 720x960.Display effect can be as shown in Figure 6.
Fig. 4 shows the citing operation interface implementing the method that the present invention provides.
Wherein, for domestic consumer, user only need to draw a rectangle frame on screen, can arrange handsMachine one hand pattern and the display resolution of non-singlehanded pattern.
For professional user, user can arrange mobile phone one hand mould by arranging coordinate position in arrangingFormula and the display resolution of non-singlehanded pattern.
Mobile phone screen is increasing, and increasing mobile phone uses full glass screen and Rimless to setPutting, the unexpected broken screen probability of mobile phone is more and more higher, and time most, broken screen is not that whole screen is the most broken, mayA simply angle or a little local.In order to prevent user's hands scratch or user operation obstacle, can makeBy user's Freehandhand-drawing self-defined UI resolution as an interim emergency scheme.
The structural representation of a kind of custom resolution display device that Fig. 7 provides for the present invention.Such as Fig. 7Shown in, correspondingly, the present invention also provides for a kind of custom resolution display device, and this device includes: adjustMould preparation block 10, is used for determining and will adjust display resolution;Receiver module 20, is used for being received from definitionResolution data;And display module 30, for showing according to the custom resolution data received.
The structure of one embodiment of a kind of custom resolution display device that Fig. 8 provides for the present invention is shownIt is intended to.As shown in Figure 8, described receiver module 20 comprises the steps that picture frame receiver module 21, is used for receivingDraw picture frame;Fitting module 22, for the drafting picture frame received with rectangle picture frame matching;Coordinate determinesModule 23, for determining the coordinate data of described rectangle picture frame;And data obtaining module 24, it is used forCoordinate data determined by according to obtains described custom resolution data.
Another embodiment of a kind of custom resolution display device that Fig. 9 provides for the present invention knotStructure schematic diagram.As it is shown in figure 9, described receiver module comprises the steps that coordinate receiver module 25, it is used for receivingCoordinate data;And data obtaining module 26, make by oneself described in obtaining according to the coordinate data receivedJustice resolution data.
About detail and the benefit of custom resolution display device, see above-mentioned for self-definedThe description of resolution display packing, repeats no more in this.
By technique scheme, the custom resolution data according to receiving show, can arrange flexiblyThe display resolution of mobile device.
The preferred embodiment of the present invention is described in detail above in association with accompanying drawing, but, the present invention does not limitDetail in above-mentioned embodiment, in the technology concept of the present invention, can be to the present inventionTechnical scheme carry out multiple simple variant, these simple variant belong to protection scope of the present invention.
It is further to note that each the concrete technology described in above-mentioned detailed description of the invention is specialLevy, in the case of reconcilable, can be combined by any suitable means.In order to avoid need notThe repetition wanted, various possible compound modes are illustrated by the present invention the most separately.
Additionally, combination in any can also be carried out between the various different embodiment of the present invention, as long as itsWithout prejudice to the thought of the present invention, it should be considered as content disclosed in this invention equally.