CN106648510A - Display method and device for display resolution - Google Patents
Display method and device for display resolution Download PDFInfo
- Publication number
- CN106648510A CN106648510A CN201611169649.1A CN201611169649A CN106648510A CN 106648510 A CN106648510 A CN 106648510A CN 201611169649 A CN201611169649 A CN 201611169649A CN 106648510 A CN106648510 A CN 106648510A
- Authority
- CN
- China
- Prior art keywords
- resolution
- display
- under
- ratio
- display elements
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2340/00—Aspects of display data processing
- G09G2340/04—Changes in size, position or resolution of an image
Abstract
The invention discloses a display method and device for a display resolution. The method comprises the following steps of obtaining a reference resolution; obtaining the practical resolution of a display screen; according to the reference resolution and the practical resolution, calculating a scaling ratio; determining a display element which needs to be displayed under the practical resolution of the display screen, and obtaining the dimension of the display element under the reference resolution; according to the dimension of the display element under the reference resolution, and the scaling ratio, calculating the display dimension of the display element under the practical resolution of the display screen; determining the display position of the display element under the practical resolution of the display screen; and according to the display dimension and the display position, displaying the display element under the practical resolution of the display screen. By use of the display method and device, adaptive display can be carried out according to the practical resolution of the display screen, a display effect is good, and distortion is avoided.
Description
Technical field
The present invention relates to intelligent terminal technical field, the display methods and device of more particularly to a kind of display resolution.
Background technology
Display resolution, refers to resolution ratio of the display in display image, and resolution ratio is weighed with point, on display
This " point " just refers to pixel (pixel).The numerical value of display resolution refers to level picture in all effective areas of whole display
The quantity of element and vertical pixel.For example:800 × 600 resolution ratio, refers to that across the screen level shows 800 pixels, hangs down
Directly show 600 pixels.
With the popularization of intelligent terminal, the equipment of various display resolutions is more and more, except some it is conventional as 720P,
1080P etc. is outer, the resolution ratio of also some other ratios, and wide high proportion and these conventional resolution ratio are inconsistent, then such as
Where can preferably be shown in the equipment of various different resolutions, be become the disaster faced for R&D work instantly
Topic.
In prior art, when being shown on the equipment of different resolution, generally solved using following two modes:
Mode one:Zoom in or out according to reference resolution equal proportion, maximum matching, is not surpassing under target resolution
In the case of going out target resolution, redundance is intercepted, be then shown centered on, although which can keep all units
Element all equal proportion scalings, but due to being displayed in full screen, unnecessary viewing area is left, and display effect is unsatisfactory.
Mode two:Screen divides in proportion grid (grid), all display elements according to grid ratio match, i.e., according to
Reference resolution, shows under target resolution, but the various elements that this kind of mode shows on screen, with reference resolution
Under the different resolution ratio of the ratio of width to height, distortion can be produced, and proportional jitter is bigger, and distortion situation is more obvious.
In summary, or display mode commonly used in the prior art can not be displayed in full screen, or distortion can be produced, all without
Method meets actual demand.
The content of the invention
The embodiment of the present invention provides a kind of display methods and device of display resolution, can.
On the one hand, the embodiment of the present invention provides a kind of display methods of display resolution, including:
Obtain reference resolution;
Obtain the true resolution of display screen;
According to the reference resolution and the true resolution, pantograph ratio is calculated;
It is determined that needing the display elements shown under the true resolution of the display screen, and obtain the display
Size of the element under the reference resolution;
Size and the pantograph ratio according to the display elements under the reference resolution, calculates the display elements
Display size under the true resolution of the display screen;
Determine display location of the display elements under the true resolution of the display screen;
According to the display size and the display location, show described aobvious under the true resolution of the display screen
Show element.
Optionally, the height of width and reference resolution of the reference resolution at least including reference resolution, described
The height of width and the true resolution of the true resolution at least including the true resolution, it is described according to the benchmark
Resolution ratio and the true resolution, calculate pantograph ratio, including:
The width ratio between the width of the true resolution and the width of the reference resolution is calculated respectively, and
Height ratio between the height of the height of the true resolution and the reference resolution;
According to the width ratio and the height ratio, the pantograph ratio is calculated.
Optionally, it is described according to the width ratio and the height ratio, pantograph ratio is calculated, including:
The mean value of the width ratio and the height ratio is calculated, using the mean value as the pantograph ratio;Or
Person,
The relatively size of the width ratio and the height ratio, by the width ratio and the height ratio compared with
Little ratio, as the pantograph ratio.
Optionally, the display location for determining the display elements under the true resolution of the display screen, bag
Include:
According to the display renderings being pre-designed, determine the anchor point of the display elements, the display renderings with it is described
Reference resolution is adapted;
Determine the reference point of the display screen, and record coordinate value of the reference point under the reference resolution;
Obtain the anchor point of the display elements under the reference resolution with the coordinate difference between the reference point;
The anchor point of coordinate value and the display elements according to the reference point under the reference resolution is described
With the coordinate difference between the reference point under reference resolution, actual resolution of the display elements in the display screen is calculated
Anchor point coordinate under rate;
According to the anchor point coordinate, display position of the display elements under the true resolution of the display screen is determined
Put.
Optionally, the coordinate value according to the reference point under the reference resolution and the display elements
Anchor point under the reference resolution with the coordinate difference between the reference point, calculate the display elements in the display screen
True resolution under anchor point coordinate, including:
X=XReference+XDistanceBase*Scale;
Y=YReference+YDistanceBase*Scale;
Wherein, x refers to the abscissa of anchor point of the display elements under the true resolution, and y refers to the display elements
The ordinate of the anchor point under the true resolution;Scale represents pantograph ratio;XReference refers to the reference point described
Abscissa under reference resolution, YReference refers to ordinate of the reference point under the reference resolution;
XDistanceBase refer to the anchor point of the display elements under the reference resolution with the abscissa between the reference point
Difference, YDistanceBase refers to vertical seat of the anchor point of the display elements under the reference resolution between the reference point
Mark is poor.
On the other hand, the embodiment of the present invention provides a kind of display device of display resolution, including:
First acquisition unit, for obtaining reference resolution;
Second acquisition unit, for obtaining the true resolution of display screen;
First computing unit, for according to the reference resolution and the true resolution, calculating pantograph ratio;
First determining unit, for determining the display unit for needing to be shown under the true resolution of the display screen
Element;
3rd acquiring unit, for obtaining size of the display elements under the reference resolution;
Second computing unit, for size and the scaling according to the display elements under the reference resolution
Than calculating display size of the display elements under the true resolution of the display screen;
Second determining unit, for determining display position of the display elements under the true resolution of the display screen
Put;
Display unit, for according to the display size and the display location, in the actual resolution of the display screen
The display elements are shown under rate.
Optionally, the height of width and reference resolution of the reference resolution at least including reference resolution, described
The height of width and the true resolution of the true resolution at least including the true resolution, described first calculates single
Unit, including:
First computing module, for calculate respectively the width of the true resolution and the reference resolution width it
Between width ratio, and the height ratio between the height of the true resolution and the height of the reference resolution;
Second computing module, for according to the width ratio and the height ratio, calculating the pantograph ratio.
Optionally, second computing module, for calculating the mean value of the width ratio and the height ratio, will
The mean value is used as the pantograph ratio;Or,
Second computing module, for the size of the relatively width ratio and the height ratio, by the width
Less ratio in ratio and the height ratio, as the pantograph ratio.
Optionally, second determining unit, including:
First determining module, it is described for according to the display renderings being pre-designed, determining the anchor point of the display elements
Display renderings are adapted with the reference resolution;
Second determining module, for determining the reference point of the display screen;
Logging modle, for recording coordinate value of the reference point under the reference resolution;
Acquisition module, for obtaining the anchor point of the display elements under the reference resolution between the reference point
Coordinate difference;
Computing module, for coordinate value and the display elements according to the reference point under the reference resolution
Anchor point under the reference resolution with the coordinate difference between the reference point, calculate the display elements in the display screen
Anchor point coordinate under the true resolution of curtain;
3rd determining module, for according to the anchor point coordinate, determining reality of the display elements in the display screen
Display location under the resolution ratio of border.
Optionally, the coordinate value according to the reference point under the reference resolution and the display elements
Anchor point under the reference resolution with the coordinate difference between the reference point, calculate the display elements in the display screen
True resolution under anchor point coordinate, including:
X=XReference+XDistanceBase*Scale;
Y=YReference+YDistanceBase*Scale;
Wherein, x refers to the abscissa of anchor point of the display elements under the true resolution, and y refers to the display elements
The ordinate of the anchor point under the true resolution;Scale represents pantograph ratio;XReference refers to the reference point described
Abscissa under reference resolution, YReference refers to ordinate of the reference point under the reference resolution;
XDistanceBase refer to the anchor point of the display elements under the reference resolution with the abscissa between the reference point
Difference, YDistanceBase refers to vertical seat of the anchor point of the display elements under the reference resolution between the reference point
Mark is poor.
The display methods and device of display resolution provided in an embodiment of the present invention, by obtaining reference resolution and display
The true resolution of screen;According to reference resolution and true resolution, pantograph ratio is calculated;It is determined that needing the reality in display screen
The display elements shown under the resolution ratio of border, and obtain size of the display elements under reference resolution;According to display elements
Size and pantograph ratio under reference resolution, calculates display size of the display elements under the true resolution of display screen;
Determine display location of the display elements under the true resolution of display screen;According to display size and display location, showing
Display elements are shown under the true resolution of screen.The method and device, can be adaptive according to the true resolution of display screen
Should show, display effect is good, distortion will not occur.
Other features and advantages of the present invention will be illustrated in the following description, also, the partly change from specification
Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations write
Specifically noted structure is realizing and obtain in book, claims and accompanying drawing.
Below by drawings and Examples, technical scheme is described in further detail.
Description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and constitutes a part for specification, the reality with the present invention
Applying example is used to explain the present invention together, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the display methods of display resolution provided in an embodiment of the present invention;
Fig. 2 is a kind of block diagram of the display device of display resolution provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of the multiple reference points on a kind of display screen provided in an embodiment of the present invention;
Fig. 4 is the signal of the position coordinates of a kind of anchor point of display elements provided in an embodiment of the present invention and a reference point
Figure;
Fig. 5 is a kind of schematic diagram of relative position of the anchor point provided in an embodiment of the present invention in display elements;
Fig. 6 is the display effect schematic diagram after a kind of self adaptation provided in an embodiment of the present invention shows.
Specific embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that preferred reality described herein
Apply example and be merely to illustrate and explain the present invention, be not intended to limit the present invention.
The embodiment of the present invention provides a kind of display methods of display resolution, as shown in figure 1, comprising the following steps S101-
S107:
Step S101:Obtain reference resolution;
Step S102:Obtain the true resolution of display screen;
Step S103:According to reference resolution and true resolution, pantograph ratio is calculated;
Step S104:It is determined that needing the display elements shown under the true resolution of display screen, and obtain aobvious
Show size of the element under reference resolution;
Step S105:Size and pantograph ratio according to display elements under reference resolution, calculates display elements and is showing
Display size under the true resolution of screen;
Step S106:Determine display location of the display elements under the true resolution of the display screen;
Step S107:According to display size and display location, under the true resolution of display screen display elements are shown.
In another embodiment, said reference resolution ratio is at least including the width and reference resolution of reference resolution
Height, true resolution at least including the true resolution width and true resolution height, according to benchmark differentiate
Rate and true resolution, calculate pantograph ratio, including:
The width ratio between the width and the width of reference resolution of true resolution, and actual resolution are calculated respectively
Height ratio between the height of rate and the height of reference resolution;
According to width ratio and height ratio, pantograph ratio is calculated.
In another embodiment, according to width ratio and height ratio, pantograph ratio is calculated, including:
The mean value of width ratio and height ratio is calculated, using mean value as pantograph ratio;Or,
Compare the size of width ratio and height ratio, by less ratio in width ratio and height ratio, as contracting
Put ratio.
In another embodiment, determine display location of the display elements under the true resolution of display screen, wrap
Include:
According to the display renderings being pre-designed, the anchor point of display elements, display renderings and reference resolution phase are determined
Adapt to;
Determine the reference point of display screen, and record coordinate value of the reference point under the reference resolution;
Obtain coordinate difference of the anchor point of display elements under reference resolution between reference point;
The anchor point of coordinate value and display elements according to reference point under reference resolution under reference resolution with ginseng
Coordinate difference between examination point, calculates anchor point coordinate of the display elements under the true resolution of display screen;
According to anchor point coordinate, display location of the display elements under the true resolution of display screen is determined.
In another embodiment, according to reference point under reference resolution coordinate value and the anchor point of display elements
Coordinate difference under reference resolution between reference point, calculates anchor point of the display elements under the true resolution of display screen
Coordinate, including:
X=XReference+XDistanceBase*Scale;
Y=YReference+YDistanceBase*Scale;
Wherein, x refers to the abscissa of anchor point of the display elements under true resolution, and y refers to display elements in true resolution
Under anchor point ordinate;Scale represents pantograph ratio;XReference refers to abscissa of the reference point under reference resolution,
YReference refers to ordinate of the reference point under reference resolution;XDistanceBase refers to the anchor point of display elements in benchmark
Diff E under resolution ratio between reference point, YDistanceBase refer to the anchor point of display elements under reference resolution with
Diff N between reference point.
In embodiments of the present invention, a reference resolution can be preset, wherein, reference resolution can be current
The resolution ratio of market main flow such as 720P etc., and record the width and height of reference resolution, such as it is 720P feelings in resolution ratio
Under condition, width is 1280, is highly 720.
After application program launching, the true resolution of the display screen of the intelligent terminal for needing application is obtained, and remembered
Its width and height are recorded, such that it is able to easily calculate the width ratio and height ratio of true resolution and reference resolution,
And pantograph ratio (Scale) is calculated according to width ratio and height radiometer.
In addition to background stretching scaling, all display elements to each display interface scene all do following process:
The size of the display elements under reference resolution is obtained, above-mentioned calculated Scale is multiplied by, obtains showing unit
Display size of the element under the true resolution of display screen;
The display renderings that acquisition is pre-designed, according to display renderings, determine the anchor point (aligned position) of display elements,
Wherein, display renderings are the displays being adapted with reference resolution that art designer is pre-designed under reference resolution
Picture;
One or more reference points are determined on screen, wherein, reference point for example can be chosen by upper, middle and lower, and
Left, center, right are intersected, and nine points of formation in the present embodiment can be as a reference point by centrally located central point;
According to art effect figure, determine that anchor point of the display elements under the true resolution of the display screen is (right
Neat point), the relative position of reference point in true resolution, wherein, transverse and longitudinal spacing is in relative position:Reference resolution spacing
It is multiplied by Scale;
By each interface of application and scene, adaptation is completed according to above-mentioned, and when resolution ratio changes, held again
OK, the resolution ratio self adaptation of whole application is completed.Application and development once, perfect can be adapted on all of equipment, show
Effect is good, undistorted.
The particular content that the embodiment of the present invention is designed is described in detail referring to Fig. 3-Fig. 6:
Display resolution adaptation mechanism in the present embodiment, step mainly includes:Using self adaptation and scene adaptive,
Wherein, the scene adaptive of all scenes is included using self adaptation.
Wherein, it is as follows using adaptive key step:
Step S301:Setting reference resolution, the resolution ratio (such as 720P) of general setting current market main flow, records it wide
For WBase, a height of HBase;
Step S302:Art designer, with resources, such as jpg, png such as reference resolution, design display renderings,
As shown in Figure 4;
Step S303:After startup, the true resolution of current device is obtained, record its a width of WReal, it is a height of
HReal, and width ratio and height ratio with reference resolution are calculated respectively;WScale=WReal/WBase;HScale
=HReal/HBase;Then the minimum of a value in the two width ratios and height ratio is used as pantograph ratio Scale, Scale
=Min (WScale, HScale);
Step S304:Selected current scene;
Step S305:Self-adaptive processing is carried out to current scene;
Step S306:Each scene of traversal applications, judges whether all scenes are disposed, and if it is goes to
S308, terminates application resolution self-adaptive processing, otherwise to S307;
Step S307:To later scene, later scene is chosen to be into current resolution self-adaptive processing scene;
Step S308:Application resolution self-adaptive processing terminates.
Wherein, scene resolution ratio self adaptation, in addition to background stretching scaling, all displays unit of each display interface scene
Element, does following process:
Step S401:Scene resolution ratio self-adaptive processing starts;
Step S402:Selected current display element;
Step S403:Display elements size is multiplied by calculated Scale in above-mentioned S303;
Step S404:The anchor point of current display element is set, with reference to the fine arts display renderings are provided, set display elements
Aligned position (anchor point), that is, select this element where do snap point, such as its central point or left upper apex, element
The position proportional of internal anchor point, following relative scale ys in relative scale xs on the horizontal left side and longitudinal direction, value between 0~1,
Wherein, the schematic diagram of anchor point is as shown in Figure 5;
Step S405:Reference point is selected, typically can be chosen by upper, middle and lower, and left, center, right are intersecting, the nine of formation
It is individual, it is illustrated in fig. 3 shown below;
Step S406:Select and the closest reference point of screen, its abscissa and ordinate be XReference,
YReference, and set the position of display elements anchor point, i.e. x and y coordinates;It is assumed that in reference resolution is design sketch,
It is abscissa XDistanceBase, ordinate YDistanceBase with the distance of reference point;Then calculate and arrange x and y to sit
Mark is as follows:
X=XReference+XDistanceBase*Scale
Y=YReference+YDistanceBase*Scale
Wherein, the effect diagram after the self adaptation adaptation of display resolution provided in an embodiment of the present invention is as shown in Figure 6.
Step S407:In judging currently displaying scene, whether all elements are disposed, if it is, jumping to step
S409;Otherwise, step S408 is jumped to;
Step S408:To next element, next element is set as into current resolution self-adaptive processing element;
Step S409:Current scene resolution ratio is used and is disposed certainly;
The adaptive approach of display resolution provided in an embodiment of the present invention, by obtaining reference resolution and display screen
True resolution;According to reference resolution and true resolution, pantograph ratio is calculated;It is determined that needing the reality point in display screen
The display elements shown under resolution, and obtain size of the display elements under reference resolution;According to display elements in base
Size and pantograph ratio under quasi- resolution ratio, calculates display size of the display elements under the true resolution of display screen;It is determined that
Display location of the display elements under the true resolution of display screen;According to display size and display location, in display screen
True resolution under show display elements.The method can show according to the true resolution of display screen, self adaptation, show
Effect is good, and distortion will not occur.
The embodiment of the present invention provides in addition a kind of display device of display resolution, as shown in Fig. 2 including:
First acquisition unit 201, for obtaining reference resolution;
Second acquisition unit 202, for obtaining the true resolution of display screen;
First computing unit 203, for according to reference resolution and true resolution, calculating pantograph ratio;
First determining unit 204, for determining the display unit for needing to be shown under the true resolution of display screen
Element;
3rd acquiring unit 205, for obtaining size of the display elements under reference resolution;
Second computing unit 206, for size and pantograph ratio according to display elements under reference resolution, calculates and shows
Display size of the element under the true resolution of display screen;
Second determining unit 207, for determining display location of the display elements under the true resolution of display screen;
Display unit 208, for according to display size and display location, showing aobvious under the true resolution of display screen
Show element.
In another embodiment, said reference resolution ratio is at least including the width and reference resolution of reference resolution
Height, true resolution at least including true resolution width and true resolution height, above-mentioned first computing unit,
Including:
First computing module, for calculating the width between the width of true resolution and the width of reference resolution respectively
Height ratio between ratio, and the height of true resolution and the height of reference resolution;
Second computing module, for according to width ratio and height ratio, calculating pantograph ratio.
Wherein, above-mentioned second computing module, for calculating the mean value of width ratio and height ratio, by the mean value
As pantograph ratio;Or,
Above-mentioned second computing module, for comparing the size of width ratio and height ratio, width ratio and height is compared
Less ratio in value, as pantograph ratio.
In another embodiment, above-mentioned second determining unit, including:
First determining module, for according to the display renderings being pre-designed, determining the anchor point of display elements, display effect
Figure is adapted with reference resolution;
Second determining module, for determining the reference point of display screen;
Logging modle, for recording coordinate value of the reference point under reference resolution;
Acquisition module, for obtaining coordinate difference of the anchor point of display elements under reference resolution between reference point;
Computing module, for the coordinate value according to reference point under reference resolution and display elements anchor point in benchmark
Coordinate difference under resolution ratio between reference point, calculates anchor point coordinate of the display elements under the true resolution of display screen;
3rd determining module, for according to anchor point coordinate, determining display elements under the true resolution of display screen
Display location.
In another embodiment, above-mentioned coordinate value and display elements according to reference point under reference resolution
Coordinate difference of the anchor point under reference resolution between reference point, calculating display elements are under the true resolution of display screen
Anchor point coordinate, including:
X=XReference+XDistanceBase*Scale;
Y=YReference+YDistanceBase*Scale;
Wherein, x refers to the abscissa of anchor point of the display elements under true resolution, and y refers to display elements in true resolution
Under anchor point ordinate;Scale represents pantograph ratio;XReference refers to abscissa of the reference point under reference resolution,
YReference refers to ordinate of the reference point under reference resolution;XDistanceBase refers to the anchor point of display elements in benchmark
Diff E under resolution ratio between reference point, YDistanceBase refer to the anchor point of display elements under reference resolution with
Diff N between reference point.
The self-reacting device of display resolution provided in an embodiment of the present invention, by obtaining reference resolution and display screen
True resolution;According to reference resolution and true resolution, pantograph ratio is calculated;It is determined that needing the reality point in display screen
The display elements shown under resolution, and obtain size of the display elements under reference resolution;According to display elements in base
Size and pantograph ratio under quasi- resolution ratio, calculates display size of the display elements under the true resolution of display screen;It is determined that
Display location of the display elements under the true resolution of display screen;According to display size and display location, in display screen
True resolution under show display elements.The device, can show according to the true resolution of display screen, self adaptation, show
Show that effect is good, distortion will not occur.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using complete hardware embodiment, complete software embodiment or with reference to the reality in terms of software and hardware
Apply the form of example.And, the present invention can be adopted and wherein include the computer of computer usable program code at one or more
The shape of the computer program implemented in usable storage medium (including but not limited to magnetic disc store and optical memory etc.)
Formula.
The present invention is the flow process with reference to method according to embodiments of the present invention, equipment (system) and computer program
Figure and/or block diagram are describing.It should be understood that can be by computer program instructions flowchart and/or each stream in block diagram
The combination of journey and/or square frame and flow chart and/or the flow process in block diagram and/or square frame.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices
The device of the function of specifying in present one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy
In determining the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory is produced to be included referring to
Make the manufacture of device, the command device realize in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or
The function of specifying in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented process, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow process of flow chart or multiple flow processs and/or block diagram one
The step of function of specifying in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without deviating from the present invention to the present invention
God and scope.So, if these modifications of the present invention and modification belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising these changes and modification.
Claims (10)
1. a kind of display methods of display resolution, it is characterised in that include:
Obtain reference resolution;
Obtain the true resolution of display screen;
According to the reference resolution and the true resolution, pantograph ratio is calculated;
It is determined that needing the display elements shown under the true resolution of the display screen, and obtain the display elements
Size under the reference resolution;
Size and the pantograph ratio according to the display elements under the reference resolution, calculates the display elements in institute
State the display size under the true resolution of display screen;
Determine display location of the display elements under the true resolution of the display screen;
According to the display size and the display location, the display unit is shown under the true resolution of the display screen
Element.
2. method according to claim 1, it is characterised in that the reference resolution is at least including the width of reference resolution
The height of degree and reference resolution, width and the actual resolution of the true resolution at least including the true resolution
The height of rate, it is described according to the reference resolution and the true resolution, pantograph ratio is calculated, including:
The width ratio between the width of the true resolution and the width of the reference resolution is calculated respectively, and it is described
Height ratio between the height of the height of true resolution and the reference resolution;
According to the width ratio and the height ratio, the pantograph ratio is calculated.
3. method according to claim 2, it is characterised in that described according to the width ratio and the height ratio,
Pantograph ratio is calculated, including:
The mean value of the width ratio and the height ratio is calculated, using the mean value as the pantograph ratio;Or,
Compare the size of the width ratio and the height ratio, will be less in the width ratio and the height ratio
Ratio, as the pantograph ratio.
4. method according to claim 1, it is characterised in that the determination display elements are in the display screen
Display location under true resolution, including:
According to the display renderings being pre-designed, the anchor point of the display elements, the display renderings and the benchmark are determined
Resolution ratio is adapted;
Determine the reference point of the display screen, and record coordinate value of the reference point under the reference resolution;
Obtain the anchor point of the display elements under the reference resolution with the coordinate difference between the reference point;
The anchor point of coordinate value and the display elements according to the reference point under the reference resolution is in the benchmark
With the coordinate difference between the reference point under resolution ratio, the calculating display elements are under the true resolution of the display screen
Anchor point coordinate;
According to the anchor point coordinate, display location of the display elements under the true resolution of the display screen is determined.
5. method according to claim 4, it is characterised in that it is described according to the reference point under the reference resolution
Coordinate value and the display elements anchor point under the reference resolution with the coordinate difference between the reference point, calculate
Anchor point coordinate of the display elements under the true resolution of the display screen, including:
X=XReference+XDistanceBase*Scale;
Y=YReference+YDistanceBase*Scale;
Wherein, x refers to the abscissa of anchor point of the display elements under the true resolution, and y refers to the display elements in institute
State the ordinate of the anchor point under true resolution;Scale represents pantograph ratio;XReference refers to the reference point in the benchmark
Abscissa under resolution ratio, YReference refers to ordinate of the reference point under the reference resolution;
XDistanceBase refer to the anchor point of the display elements under the reference resolution with the abscissa between the reference point
Difference, YDistanceBase refers to vertical seat of the anchor point of the display elements under the reference resolution between the reference point
Mark is poor.
6. a kind of display device of display resolution, it is characterised in that include:
First acquisition unit, for obtaining reference resolution;
Second acquisition unit, for obtaining the true resolution of display screen;
First computing unit, for according to the reference resolution and the true resolution, calculating pantograph ratio;
First determining unit, for determining the display elements for needing to be shown under the true resolution of the display screen;
3rd acquiring unit, for obtaining size of the display elements under the reference resolution;
Second computing unit, for size and the pantograph ratio according to the display elements under the reference resolution, meter
Calculate display size of the display elements under the true resolution of the display screen;
Second determining unit, for determining display location of the display elements under the true resolution of the display screen;
Display unit, for according to the display size and the display location, under the true resolution of the display screen
Show the display elements.
7. device according to claim 6, it is characterised in that the reference resolution is at least including the width of reference resolution
The height of degree and reference resolution, width and the actual resolution of the true resolution at least including the true resolution
The height of rate, first computing unit, including:
First computing module, for calculating respectively between the width of the true resolution and the width of the reference resolution
Height ratio between width ratio, and the height of the true resolution and the height of the reference resolution;
Second computing module, for according to the width ratio and the height ratio, calculating the pantograph ratio.
8. device according to claim 7, it is characterised in that:
Second computing module, for calculating the mean value of the width ratio and the height ratio, by the mean value
As the pantograph ratio;Or,
Second computing module, for the size of the relatively width ratio and the height ratio, by the width ratio
With less ratio in the height ratio, as the pantograph ratio.
9. device according to claim 6, it is characterised in that second determining unit, including:
First determining module, for according to the display renderings being pre-designed, determining the anchor point of the display elements, the display
Design sketch is adapted with the reference resolution;
Second determining module, for determining the reference point of the display screen;
Logging modle, for recording coordinate value of the reference point under the reference resolution;
Acquisition module, for obtain the anchor point of the display elements under the reference resolution with the seat between the reference point
Mark is poor;
Computing module, for the coordinate value according to the reference point under the reference resolution and the anchor of the display elements
Point under the reference resolution with the coordinate difference between the reference point, calculate the display elements in the display screen
Anchor point coordinate under true resolution;
3rd determining module, for according to the anchor point coordinate, determining reality point of the display elements in the display screen
Display location under resolution.
10. device according to claim 9, it is characterised in that it is described according to the reference point in the reference resolution
Under coordinate value and the display elements anchor point under the reference resolution with the coordinate difference between the reference point, meter
Anchor point coordinate of the display elements under the true resolution of the display screen is calculated, including:
X=XReference+XDistanceBase*Scale;
Y=YReference+YDistanceBase*Scale;
Wherein, x refers to the abscissa of anchor point of the display elements under the true resolution, and y refers to the display elements in institute
State the ordinate of the anchor point under true resolution;Scale represents pantograph ratio;XReference refers to the reference point in the benchmark
Abscissa under resolution ratio, YReference refers to ordinate of the reference point under the reference resolution;
XDistanceBase refer to the anchor point of the display elements under the reference resolution with the abscissa between the reference point
Difference, YDistanceBase refers to vertical seat of the anchor point of the display elements under the reference resolution between the reference point
Mark is poor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611169649.1A CN106648510B (en) | 2016-12-16 | 2016-12-16 | The display methods and device of a kind of display resolution |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611169649.1A CN106648510B (en) | 2016-12-16 | 2016-12-16 | The display methods and device of a kind of display resolution |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106648510A true CN106648510A (en) | 2017-05-10 |
CN106648510B CN106648510B (en) | 2018-06-12 |
Family
ID=58823850
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611169649.1A Active CN106648510B (en) | 2016-12-16 | 2016-12-16 | The display methods and device of a kind of display resolution |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106648510B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107423055A (en) * | 2017-06-30 | 2017-12-01 | 百度在线网络技术(北京)有限公司 | Method, apparatus, equipment and the storage medium of adaptive terminal device resolution |
CN108334391A (en) * | 2017-12-31 | 2018-07-27 | 广州金十信息科技有限公司 | A kind of multisystem shows adaptation method, electronic equipment and storage medium |
CN108647069A (en) * | 2018-04-16 | 2018-10-12 | 腾讯科技(深圳)有限公司 | interface display method and device, storage medium and electronic device |
CN109408165A (en) * | 2018-09-19 | 2019-03-01 | 浙江省测绘科学技术研究院 | The multiple terminal self-adapting method and system of data visualisation system |
CN110162362A (en) * | 2019-04-15 | 2019-08-23 | 腾讯科技(深圳)有限公司 | Dynamic controlware position detection and test method, device, equipment and storage medium |
CN110383811A (en) * | 2018-06-29 | 2019-10-25 | 深圳市大疆创新科技有限公司 | Image processing method and device, the first electronic equipment and image processing system |
CN111727424A (en) * | 2018-02-28 | 2020-09-29 | 微软技术许可有限责任公司 | Adaptive interface conversion across display screens |
CN114756190A (en) * | 2022-06-14 | 2022-07-15 | 统信软件技术有限公司 | Method and device for adjusting zoom based on resolution and computing equipment |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013068687A (en) * | 2011-09-21 | 2013-04-18 | Casio Comput Co Ltd | Image display method, server, and image display system |
CN102902535A (en) * | 2012-09-18 | 2013-01-30 | 深圳市融创天下科技股份有限公司 | Picture self-adaption method, system and terminal equipment |
CN105225201B (en) * | 2015-09-06 | 2018-07-06 | 网易(杭州)网络有限公司 | A kind of method and system for showing object adaptive resolution and showing |
CN105760178B (en) * | 2016-03-17 | 2019-03-26 | 网易(杭州)网络有限公司 | The method and device that interface control is adapted to |
CN105912318A (en) * | 2016-04-01 | 2016-08-31 | 北京京东尚科信息技术有限公司 | Self-adaptive display method of terminal screen, terminal, server and system |
-
2016
- 2016-12-16 CN CN201611169649.1A patent/CN106648510B/en active Active
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107423055A (en) * | 2017-06-30 | 2017-12-01 | 百度在线网络技术(北京)有限公司 | Method, apparatus, equipment and the storage medium of adaptive terminal device resolution |
CN108334391A (en) * | 2017-12-31 | 2018-07-27 | 广州金十信息科技有限公司 | A kind of multisystem shows adaptation method, electronic equipment and storage medium |
CN111727424A (en) * | 2018-02-28 | 2020-09-29 | 微软技术许可有限责任公司 | Adaptive interface conversion across display screens |
CN111727424B (en) * | 2018-02-28 | 2024-03-08 | 微软技术许可有限责任公司 | Adaptive interface conversion across display screens |
CN108647069A (en) * | 2018-04-16 | 2018-10-12 | 腾讯科技(深圳)有限公司 | interface display method and device, storage medium and electronic device |
CN108647069B (en) * | 2018-04-16 | 2022-07-29 | 腾讯科技(深圳)有限公司 | Interface display method and device, storage medium and electronic device |
CN110383811A (en) * | 2018-06-29 | 2019-10-25 | 深圳市大疆创新科技有限公司 | Image processing method and device, the first electronic equipment and image processing system |
WO2020000393A1 (en) * | 2018-06-29 | 2020-01-02 | 深圳市大疆创新科技有限公司 | Image processing method and apparatus, first electronic device, and image processing system |
CN109408165A (en) * | 2018-09-19 | 2019-03-01 | 浙江省测绘科学技术研究院 | The multiple terminal self-adapting method and system of data visualisation system |
CN110162362A (en) * | 2019-04-15 | 2019-08-23 | 腾讯科技(深圳)有限公司 | Dynamic controlware position detection and test method, device, equipment and storage medium |
CN110162362B (en) * | 2019-04-15 | 2023-07-25 | 腾讯科技(深圳)有限公司 | Dynamic control position detection and test method, device, equipment and storage medium |
CN114756190A (en) * | 2022-06-14 | 2022-07-15 | 统信软件技术有限公司 | Method and device for adjusting zoom based on resolution and computing equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106648510B (en) | 2018-06-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106648511A (en) | Self-adaptive display method and device of display resolutions | |
CN106648510B (en) | The display methods and device of a kind of display resolution | |
US20210074051A1 (en) | Systems and methods for displaying representative images | |
US8953048B2 (en) | Information processing apparatus and control method thereof | |
JP6186415B2 (en) | Stereoscopic image display method and portable terminal | |
US11562717B2 (en) | Image processing apparatus, image processing method, and storage medium | |
CN109992226A (en) | Image display method and device and spliced display screen | |
US8531481B2 (en) | Image display apparatus, image display method and program | |
JP2005073013A (en) | Device and method for stereo image display, program for making computer execute the method, and recording medium recording the program | |
US11303871B2 (en) | Server and display apparatus, and control methods thereof | |
KR20090132484A (en) | Information display apparatus, information displaying method, and computer readable medium | |
JP2000242807A (en) | Three-dimensional polygon display device | |
US11521296B2 (en) | Image size triggered clarification to maintain image sharpness | |
CN105021181B (en) | A kind of drawing electronic map area determination method, device and navigation equipment | |
CN107526576B (en) | Method and device for displaying view components of page | |
CN105007436B (en) | Display device and image display method thereof | |
KR20160135661A (en) | Method and device for bounding an object in a video | |
EP4125044A2 (en) | Image processing apparatus, image processing method, and program | |
CN106873963B (en) | Method and device for forming background of computer video desktop | |
CN111034193A (en) | Multi-source video stabilization | |
CN114494527A (en) | Test image editing method, editing device and image signal generator | |
CN110347392B (en) | Method and device for self-adaptive typesetting and refreshing of data visualization large-screen display page | |
CN104639969A (en) | Full screen page display method and device | |
JP2018097310A (en) | Display control program, display control method and display control device | |
CN109284456B (en) | Space positioning method of webpage control in AR and AR system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |