CN112051976A - Method for self-adapting optimal resolution and text size of display - Google Patents
Method for self-adapting optimal resolution and text size of display Download PDFInfo
- Publication number
- CN112051976A CN112051976A CN202010857631.0A CN202010857631A CN112051976A CN 112051976 A CN112051976 A CN 112051976A CN 202010857631 A CN202010857631 A CN 202010857631A CN 112051976 A CN112051976 A CN 112051976A
- Authority
- CN
- China
- Prior art keywords
- display
- resolution
- physical size
- optimal
- text
- 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
Images
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
- G09G2340/0407—Resolution change, inclusive of the use of different resolutions for different screen areas
Abstract
The invention discloses a method for self-adapting to the optimal resolution and text size of a display, which comprises the steps of obtaining display equipment connected with a computer; acquiring a resolution list which can be supported by display equipment; acquiring the physical size of the display; calculating the optimal resolution of the display; the resolution of the display is set to the optimal resolution. Calculating an optimal text zoom ratio for the display; the text zoom ratio of the display is set to the optimal text zoom ratio. The invention improves the influence of inconvenient use caused by high resolution when the high resolution display is connected into the computer, improves the comfort of the user, reduces the times of manually adjusting the resolution and the text size by the user and improves the use experience of the user to the maximum extent.
Description
Technical Field
The invention relates to a method for self-adapting to the optimal resolution and the text size of a display, belonging to the technical field of adjustment of the resolution and the text size of the display.
Background
At present, with the development of medical technology, medical displays are increasingly popularized in hospital radiology departments, and are also widely applied to remote consultation and parallel imaging, with the development of science and technology, display devices of different models are more and more, when the display devices are connected with a computer, the computer can automatically give a supportable maximum resolution, which often causes that a user uses display devices of various models, the visual effect of displaying characters and images is too small due to too small display pictures, the focus identification is inaccurate due to too small characters or images during reading, the workload of doctors is increased, and the working efficiency of the doctors is reduced. A method for self-adapting the optimal resolution and text size of a display is to automatically convert the optimal resolution and text size to ensure that a user can have the optimal display picture when using different display devices.
Disclosure of Invention
The purpose is as follows: in order to overcome the defects in the prior art, the invention provides a method for self-adapting the optimal resolution and text size of a display.
The technical scheme is as follows: in order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a method for adapting optimal resolution and text size of a display, comprising the steps of:
acquiring display equipment connected with a computer;
acquiring a resolution list which can be supported by display equipment;
acquiring the physical size of the display;
calculating the optimal resolution of the display;
the resolution of the display is set to the optimal resolution.
Preferably, the method further comprises the following steps:
calculating an optimal text zoom ratio for the display;
the text zoom ratio of the display is set to the optimal text zoom ratio.
Preferably, the display device connected with the computer is acquired in real time through a windows system function EnumDisplayDevices.
Preferably, the list of resolutions supportable by the display is enumerated by the EnumAdapter models of DirectX.
Preferably, the method for calculating the optimal resolution of the display comprises the following steps:
if the width of the physical size of the display is multiplied by the height of the physical size of the display<=140000mm2,
Then the best resolution is high = INT (physical size height value x 3);
best resolution wide = INT (physical size width value × 3);
if the width of the physical size of the display is multiplied by the height of the physical size of the display>140000mm2And is<256000mm2,
The optimal resolution is high = INT (physical size height value x 5),
best resolution wide = INT (physical size width value × 5);
if the width of the physical size of the display is multiplied by the height of the physical size of the display>256000mm2,
The optimal resolution is high = INT (physical size height value x 4),
best resolution wide = INT (physical size width value × 2);
wherein INT () is a rounding function, and the best resolution is the resolution closest to the best resolution width and the best resolution in the supportable resolution list.
Preferably, the method for calculating the optimal text zoom ratio of the display comprises the following steps:
if the width of the physical size of the display is multiplied by the height of the physical size of the display<=140000mm2,
The optimal text scaling is 100%;
if the width of the physical size of the display is multiplied by the height of the physical size of the display>140000mm2And is<256000mm2,
Then optimal text scaling = 120%;
if the width of the physical size of the display is multiplied by the height of the physical size of the display>256000mm2,
The best text scaling = 150%.
Preferably, the optimal resolution is set through the windows system function EnumDisplaySettings.
Preferably, the optimal text scaling is set through a windows system function ChangeDisplaySettings.
Has the advantages that: the method for self-adapting the optimal resolution and the text size of the display improves the influence of inconvenient use caused by the high resolution when the high resolution display is connected into a computer, improves the comfort of a user, reduces the times of manually adjusting the resolution and the text size by the user, and improves the use experience of the user to the maximum extent.
Drawings
FIG. 1 is a schematic flow diagram of the process of the present invention.
Detailed Description
The present invention will be further described with reference to the following examples.
As shown in fig. 1, a method for adapting optimal resolution and text size of a display includes obtaining a display device, obtaining a display supportable resolution, obtaining a display physical size, calculating an optimal resolution of the display, calculating an optimal text size of the display, calculating an optimal resolution of the display, and setting a text size.
The examples are illustrated with a giant shark 6M resolution display.
The working principle is as follows:
1. and acquiring the display equipment, namely acquiring the display equipment connected with the computer in real time through a windows system function EnumDisplayDevices.
2. The display can support resolution acquisition, and display adapter information is acquired through GetAdapterDisplayMode of DirectX; acquiring the mode type of the display adapter through GetAdapterModeCount of DirectX; the list of resolutions supportable by the current display is available through the enumeration by the EnumAdapter models of DirectX.
3. And acquiring the physical size of the display, and communicating with the display through a serial port to acquire the physical size of the current display.
4. Calculating the optimal resolution of the display, and calculating the optimal resolution of the display according to the following calculation formula:
the calculation formula is as follows:
if the display physical size width is display physical size height < =140000(mm2),
then theoretically the optimal resolution is high = the physical size is high (number) × 3; (rounding the result of the calculation),
optimal resolution wide = physical size wide (value) × 3; (rounding the result of the calculation),
if the display physical size width display physical size height >140000(mm2) and the display physical size width display physical size height <256000(mm2),
then theoretically the optimal resolution is high = 5 physical size high (rounded to the calculation),
best resolution wide = physical size wide 5 (round the calculation);
if the display physical size width display physical size height >256000(mm2),
then theoretically the optimal resolution is high = physical size 4 higher (rounded to the calculation),
best resolution wide = physical size wide x 2 (rounded to the calculation);
5. calculating the optimal text size of the display to calculate the optimal text scaling ratio of the display, wherein the calculation formula is as follows:
the calculation formula is as follows:
if the display physical size width is display physical size height < =140000(mm2),
the theoretically optimal text scaling is 100%;
if the display physical size width display physical size height >140000(mm2) and the display physical size width display physical size height <256000(mm2),
then theoretically optimal text scaling = 120%;
if the display physical size width display physical size height >256000(mm2),
then theoretically the optimal text scaling = 150%;
6. and setting the optimal resolution and the text size of the display, namely setting the optimal resolution and the optimal text size calculated in the steps 4 and 5 to a 6M resolution display, and setting the optimal resolution and the text size through Windows system functions EnumDisplaySettings and ChangeDisplaySettings so that the 6M resolution display has the optimal display effect.
The invention discloses a method for self-adapting to the optimal resolution and text size of a display, which comprises the steps of obtaining display equipment, obtaining the resolution supported by the display, obtaining the physical size of the display, calculating the optimal resolution of the display, calculating the optimal text size of the display, and setting the optimal resolution of the display and the text size. Compared with the prior art, the invention improves the use experience of users using display equipment with different models.
The above description is only of the preferred embodiments of the present invention, and it should be noted that: it will be apparent to those skilled in the art that various modifications and adaptations can be made without departing from the principles of the invention and these are intended to be within the scope of the invention.
Claims (8)
1. A method for adapting optimal resolution and text size of a display, comprising: the method comprises the following steps:
acquiring display equipment connected with a computer;
acquiring a resolution list which can be supported by display equipment;
acquiring the physical size of the display;
calculating the optimal resolution of the display;
the resolution of the display is set to the optimal resolution.
2. The method of claim 1, wherein the method further comprises: further comprising:
calculating an optimal text zoom ratio for the display;
the text zoom ratio of the display is set to the optimal text zoom ratio.
3. The method of claim 1, wherein the method further comprises: and acquiring the display equipment connected with the computer in real time through a windows system function EnumDisplayDevices.
4. The method of claim 1, wherein the method further comprises: the list of resolutions that the display can support is enumerated by the EnumAdapter models of DirectX.
5. The method of claim 4, wherein the method further comprises: the method for calculating the optimal resolution of the display is as follows:
if the width of the physical size of the display is multiplied by the height of the physical size of the display<=140000mm2,
Then the best resolution is high = INT (physical size height value x 3);
best resolution wide = INT (physical size width value × 3);
if the width of the physical size of the display is multiplied by the height of the physical size of the display>140000mm2And is<256000mm2,
The optimal resolution is high = INT (physical size height value x 5),
best resolution wide = INT (physical size width value × 5);
if the width of the physical size of the display is multiplied by the height of the physical size of the display>256000mm2,
The optimal resolution is high = INT (physical size height value x 4),
best resolution wide = INT (physical size width value × 2);
wherein INT () is a rounding function, and the best resolution is the resolution closest to the best resolution width and the best resolution in the supportable resolution list.
6. The method of claim 2, wherein the method further comprises: the method of calculating the optimal text zoom ratio for a display is as follows:
if the width of the physical size of the display is multiplied by the height of the physical size of the display<=140000mm2,
The optimal text scaling is 100%;
if the width of the physical size of the display is multiplied by the height of the physical size of the display>140000mm2And is<256000mm2,
Then optimal text scaling = 120%;
if the width of the physical size of the display is multiplied by the height of the physical size of the display>256000mm2,
The best text scaling = 150%.
7. The method of claim 1, wherein the method further comprises: the best resolution is set by the windows system function EnumDisplaySettings.
8. The method of claim 2, wherein the method further comprises: the optimal text scaling is set by the windows system function ChangeDisplaySettings.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010857631.0A CN112051976B (en) | 2020-08-24 | 2020-08-24 | Method for self-adapting optimal resolution and text size of display |
PCT/CN2021/098183 WO2022041912A1 (en) | 2020-08-24 | 2021-06-03 | Method for adapting to optimum resolution and text size of display |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010857631.0A CN112051976B (en) | 2020-08-24 | 2020-08-24 | Method for self-adapting optimal resolution and text size of display |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112051976A true CN112051976A (en) | 2020-12-08 |
CN112051976B CN112051976B (en) | 2022-09-30 |
Family
ID=73600904
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010857631.0A Active CN112051976B (en) | 2020-08-24 | 2020-08-24 | Method for self-adapting optimal resolution and text size of display |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112051976B (en) |
WO (1) | WO2022041912A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112799753A (en) * | 2021-01-08 | 2021-05-14 | 杭州雾联科技有限公司 | Full-screen exclusive shielding method, device, equipment and medium |
WO2022041912A1 (en) * | 2020-08-24 | 2022-03-03 | 南京巨鲨显示科技有限公司 | Method for adapting to optimum resolution and text size of display |
CN114756190A (en) * | 2022-06-14 | 2022-07-15 | 统信软件技术有限公司 | Method and device for adjusting zoom based on resolution and computing equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103546689A (en) * | 2013-10-11 | 2014-01-29 | Tcl集团股份有限公司 | Resolution ratio acquiring method and device of external camera of android system |
CN110536176A (en) * | 2019-07-31 | 2019-12-03 | 深圳银澎云计算有限公司 | A kind of video resolution method of adjustment, electronic equipment and storage medium |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4711675B2 (en) * | 2002-04-25 | 2011-06-29 | トムソン ライセンシング | Video resolution control for web browsers and video displays |
CN102662563B (en) * | 2012-03-14 | 2015-03-25 | 广东威创视讯科技股份有限公司 | Window resolution self-adaption processing method and device |
US20140125554A1 (en) * | 2012-11-07 | 2014-05-08 | Shanghai Powermo Information Tech. Co. Ltd. | Apparatus and algorithm to implement smart mirroring for a multiple display system |
CN105511829A (en) * | 2015-12-09 | 2016-04-20 | 广州视睿电子科技有限公司 | Method and system for adjusting display scale of office software in self-adaption manner |
CN106383689B (en) * | 2016-09-20 | 2019-11-29 | 青岛海信电器股份有限公司 | Display font scale adjusting method, device and terminal device |
CN106648511A (en) * | 2016-12-16 | 2017-05-10 | 竞技世界(北京)网络技术有限公司 | Self-adaptive display method and device of display resolutions |
CN112051976B (en) * | 2020-08-24 | 2022-09-30 | 南京巨鲨显示科技有限公司 | Method for self-adapting optimal resolution and text size of display |
-
2020
- 2020-08-24 CN CN202010857631.0A patent/CN112051976B/en active Active
-
2021
- 2021-06-03 WO PCT/CN2021/098183 patent/WO2022041912A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103546689A (en) * | 2013-10-11 | 2014-01-29 | Tcl集团股份有限公司 | Resolution ratio acquiring method and device of external camera of android system |
CN110536176A (en) * | 2019-07-31 | 2019-12-03 | 深圳银澎云计算有限公司 | A kind of video resolution method of adjustment, electronic equipment and storage medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022041912A1 (en) * | 2020-08-24 | 2022-03-03 | 南京巨鲨显示科技有限公司 | Method for adapting to optimum resolution and text size of display |
CN112799753A (en) * | 2021-01-08 | 2021-05-14 | 杭州雾联科技有限公司 | Full-screen exclusive shielding method, device, equipment and 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 |
---|---|
CN112051976B (en) | 2022-09-30 |
WO2022041912A1 (en) | 2022-03-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112051976B (en) | Method for self-adapting optimal resolution and text size of display | |
US8798317B2 (en) | Adjusting print format in electronic device | |
CN101815157B (en) | Image and video amplification method and relevant image processing device | |
CN107621932B (en) | Local amplification method and device for display image | |
CN109993713B (en) | Image distortion correction method and device for vehicle-mounted head-up display system | |
CN108076384B (en) | image processing method, device, equipment and medium based on virtual reality | |
CN113299370B (en) | Medical image display method and device, computer equipment and storage medium | |
CN114287915B (en) | Noninvasive scoliosis screening method and system based on back color images | |
CN105991953B (en) | Video signal processing method and electronic equipment | |
CN104228369B (en) | Printing method and device | |
CN114415826A (en) | Data processing method and equipment thereof | |
KR20150044168A (en) | Processing method of DICOM medical image at Smart Pad Multi-platform environments and its system | |
JP2014064857A (en) | Device and method for setting analysis point, and device and method for detecting body motion | |
CN112862752A (en) | Image processing display method, system electronic equipment and storage medium | |
CN111144506A (en) | Ultrasound image-based hydatid identification method, storage medium and ultrasound equipment | |
US9613434B2 (en) | Visualization of size of objects | |
CN113487562B (en) | Skin glossiness detecting system based on handheld device | |
JP2011123701A (en) | Progress information display device, method of displaying progress information, and progress information display program | |
KR20030078572A (en) | Real Size Image Displaying System and Electronic Commerce System Using It | |
TWM619068U (en) | Portable medical education device and medical education platform | |
CN107087114B (en) | Shooting method and device | |
CN107391905B (en) | Color Doppler ultrasound and ultrasound transcranial Doppler report generation method and device | |
JP2005258634A (en) | Image display size adjustment system and device and computer readable recording medium for recording image display size adjustment program | |
CN116206733B (en) | Image cloud platform assessment method and system for fundus image | |
CN116665615B (en) | Medical display control method, system, equipment and storage medium thereof |
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 |