CN110509769B - Fade-in and fade-out switching method - Google Patents
Fade-in and fade-out switching method Download PDFInfo
- Publication number
- CN110509769B CN110509769B CN201910794991.8A CN201910794991A CN110509769B CN 110509769 B CN110509769 B CN 110509769B CN 201910794991 A CN201910794991 A CN 201910794991A CN 110509769 B CN110509769 B CN 110509769B
- Authority
- CN
- China
- Prior art keywords
- transparency
- picture
- layer
- fade
- display
- 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.)
- Active
Links
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60K—ARRANGEMENT OR MOUNTING OF PROPULSION UNITS OR OF TRANSMISSIONS IN VEHICLES; ARRANGEMENT OR MOUNTING OF PLURAL DIVERSE PRIME-MOVERS IN VEHICLES; AUXILIARY DRIVES FOR VEHICLES; INSTRUMENTATION OR DASHBOARDS FOR VEHICLES; ARRANGEMENTS IN CONNECTION WITH COOLING, AIR INTAKE, GAS EXHAUST OR FUEL SUPPLY OF PROPULSION UNITS IN VEHICLES
- B60K35/00—Arrangement of adaptations of instruments
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Abstract
The invention provides a fade-in fade-out switching method, wherein display contents comprise a first picture positioned on a first layer and a second picture positioned on a second layer, the first layer covers the second layer, data of the first picture has first transparency, data of the second picture does not have transparency, the display contents further comprise a third picture positioned on a third layer between the first layer and the second layer, the third picture has third transparency, and the fade-in fade-out switching is realized by adjusting the third transparency and the first transparency. According to the fade-in and fade-out switching method provided by the invention, under the condition that the data of the picture of one layer to be switched does not contain transparency data, the auxiliary switching layer is arranged, so that the picture of the meter which is just faded out in the fade-in and fade-out switching process can be prevented from being flashed again, and the switching effect is improved.
Description
Technical Field
The invention relates to the field of automobiles, in particular to a fade-in and fade-out switching method.
Background
In order to improve the customer experience, the pictures of the infotainment system are displayed on the instrument, so that the information entertainment system is convenient for a driver to check. Data from a picture of an infotainment system may not have transparency data, e.g., in the format 565, no Alpha channel, i.e., no transparency data; and the gauge screen is in the format of 8888 with transparency data.
If a fade-in/fade-out switching of the screen is required in the display of the meter, as shown in fig. 1, this can be achieved only by modifying the transparency of the meter screen (first screen).
Specifically, when switching from the meter screen to the screen of the infotainment system, the meter screen fades out, i.e., t1 to t2 gradually change from the display state to the hidden state, the first screen being displayed with a parallelogram filled with squares, and hidden with a parallelogram filled with a dotted frame in light gray squares.
Arrow A at t3 shows that the second image layer is updated to be a fade-in image (second image) of the infotainment system, and fade-in is realized by changing the display state of the instrument image into a hidden state at t4 to t5, so that the instrument image which is just faded out flashes again at t4, the switching effect is influenced, and the user experience is poor.
Disclosure of Invention
The invention provides a fade-in and fade-out switching method, aiming at solving the problems in the prior art, and aiming at the condition that the data of the picture of one layer to be switched does not contain transparency data, by arranging an auxiliary switching layer, the problem that the picture of an instrument which is just faded out in the fade-in and fade-out switching is prevented from being flashed again is solved, and the switching effect is improved.
The invention provides a fade-in fade-out switching method, wherein display contents comprise a first picture positioned on a first layer and a second picture positioned on a second layer, the first layer covers the second layer, data of the first picture has first transparency, data of the second picture does not have transparency, the display contents further comprise a third picture positioned on a third layer between the first layer and the second layer, the third picture has third transparency, and the fade-in fade-out switching is realized by adjusting the third transparency and the first transparency.
Further, all pixels of the third picture are dark.
Further, all pixels of the third picture are the same color or form a pattern.
Further, when a first picture in the first picture layer is switched to a second picture, the first transparency is gradually changed from the set display transparency to the set hiding transparency, the first picture layer is switched to the second picture, the first transparency is set to be the set hiding transparency, the first transparency is from the set hiding transparency to the set display transparency, and the third transparency keeps the set display transparency.
Further, a first second image in the second image layer is switched to a second image, the third transparency is gradually changed from the set hiding transparency to the set display transparency, the second image layer is switched to the second image, the third transparency is gradually changed from the set display transparency to the set hiding transparency, and the first transparency keeps the set hiding transparency.
Further, when the first image in the first image layer is switched to the second image in the second image layer, the third transparency is set to be the display transparency, the first transparency is gradually changed from the set display transparency to the set hiding transparency, the second image layer is updated to be the second image, and the third transparency is gradually changed from the set display transparency to the set hiding transparency.
Further, a second picture of the second layer is switched to a first picture of the first layer, the third transparency is gradually reduced from the set display transparency to the set hiding transparency, the first layer is updated to the first picture, and the first transparency is gradually increased from the set hiding transparency to the set display transparency.
Furthermore, the first picture is an instrument picture, and the second picture is an infotainment system picture.
Compared with the prior art, the fade-in and fade-out switching method provided by the invention has the following beneficial effects: for the condition that the data of the picture of one layer needing to be switched does not contain transparency data, the auxiliary switching layer is arranged, so that the phenomenon that the picture of the instrument which is just faded out in the fade-in fade-out switching can be flashed again is avoided, and the switching effect is improved.
Drawings
Fig. 1 is a schematic diagram of a conventional method for implementing a cross fade by adjusting a first transparency;
FIG. 2 is a diagram illustrating a fade-in/fade-out switching between two first pictures in a first layer;
FIG. 3 is a diagram illustrating a fade-in/fade-out switching between two second pictures in a second layer;
FIG. 4 is a schematic diagram of a first picture in a first layer fading out a second picture in a second layer fading in;
fig. 5 is a schematic diagram of a second picture in a second layer fading out a first picture in a first layer fading in.
Detailed Description
As shown in fig. 2, the display content includes a first picture in a first layer and a second picture in a second layer, the first layer covers the second layer, data of the first picture has a first transparency, data of the second picture does not have a transparency, the display content further includes a third picture in a third layer between the first layer and the second layer, the third picture has a third transparency, and the fade-in and fade-out switching is implemented by adjusting the third transparency and the first transparency.
The background color of the meter is usually black, in this embodiment, all pixels of the third screen are dark and have the same color, for example, all pixels are black. Of course in other embodiments the pixels of the third picture may be patterned as desired.
Fig. 2 shows fade-in and fade-out switching of two first images in the first image layer, when the first image in the first image layer is switched to the second first image, i.e. switching of two instrument images, the first transparency changes gradually from the set display transparency to the set hiding transparency from t1 to t2, and the first image fades out; and at t3, the first image layer is replaced by a second first image, the first transparency is set to be the set hidden transparency, the first transparency is increased from the set hidden transparency to the display transparency at t4 to t5, the second first image is faded in, and the third transparency keeps the set display transparency.
Specifically shown below: displaying a first picture at t 1; when the images are from t2 to t4, the first transparency of the first image and the first transparency of the second image are set hidden transparencies, namely, the first transparency and the second transparency are transparent, so that the images are displayed as a third image; and at t5, displaying a second first picture to realize switching between the two pictures.
In this embodiment, the value range of the transparency is [0, 255], the set hiding transparency is 0, and the set display transparency is 255, but other values may be selected, for example, the set hiding transparency is 10, and the set display transparency is 249. The display transparency which is larger than or equal to the set display transparency represents that the corresponding picture is completely displayed, and the hiding transparency which is smaller than or equal to the set hiding transparency represents that the corresponding picture is completely hidden.
FIG. 3 shows a fade-in-fade transition of two second pictures in the second layer, i.e. a transition of two infotainment system pictures, e.g. from a navigation picture to a radio picture, a first second picture (navigation picture) in the second layer being switched to a second picture (radio picture), the third transparency being gradually changed from a set hidden transparency to a set displayed transparency at t1 to t2, the first second picture (navigation picture) fading out; and at t3, the second image layer is replaced by a second image (radio image), the third transparency is gradually changed from the set display transparency to the set hiding transparency at t4 to t5, the second image (radio image) is faded in, and the first transparency keeps the set hiding transparency.
Specifically shown below: the first transparency keeps the set hidden transparency, and a first picture of the first image layer is not displayed; displaying a first second picture (navigation picture) at t 1; when the third transparency is the set display transparency from t2 to t4, the third picture is displayed; and at t5, displaying a second picture to realize switching between the two pictures.
Fig. 4 shows that the first picture in the first layer fades out of the second picture in the second layer fades in, the third transparency is set as the display transparency when the first picture in the first layer is switched to the second picture (radio picture) in the second layer, the first transparency is gradually changed from the set display transparency to the set hidden transparency at t1 to t2, and the first picture fades out; and at t3, the second image layer is updated to the second image (radio image), and the third transparency is gradually changed from the set display transparency to the set hiding transparency from t4 to t 5.
Specifically shown below: the third transparency is set as the display transparency, and the first picture is displayed at t 1; when the third transparency is the set display transparency from t2 to t4, the third picture is displayed; and a second screen (radio screen) is displayed at t 5.
Fig. 5 shows that when the second picture in the second layer fades out of the first picture in the first layer fades in, the second picture in the second layer (radio picture) is switched to the first picture in the first layer, the first transparency is set as hidden transparency, the third transparency is gradually changed from the set hidden transparency to the set display transparency at t1 to t2, and the second picture (radio picture) fades out; and at t3, the first image layer is updated to be a first image, the first transparency is gradually changed from the set hiding transparency to the set display transparency from t4 to t5, and the first image is faded in.
The specific display is as follows: the first transparency is set as a hidden transparency, and a second picture (radio picture) is displayed at t 1; when the third transparency is the set display transparency from t2 to t4, the third picture is displayed; and t5, displaying the first picture.
Although the present invention has been described with reference to the preferred embodiments, it is not limited thereto. Various changes and modifications within the spirit and scope of the present invention will become apparent to those skilled in the art from this disclosure, and it is intended that the scope of the present invention be defined by the appended claims.
Claims (6)
1. A fade-in fade-out switching method is characterized in that display contents comprise a first picture positioned on a first layer and a second picture positioned on a second layer, the first layer covers the second layer, data of the first picture has first transparency, data of the second picture does not have transparency, the display contents further comprise a third picture positioned on a third layer between the first layer and the second layer, the third picture has third transparency, and fade-in fade-out switching is realized by adjusting the third transparency and the first transparency;
a second picture of the second picture layer is switched to a first picture of the first picture layer, the third transparency is gradually changed from the set display transparency to the set hiding transparency, the first picture layer is updated to the first picture, and the first transparency is gradually changed from the set hiding transparency to the set display transparency;
when the first picture of the first picture layer is switched to the second picture of the second picture layer, the third transparency is set as the display transparency, the first transparency is gradually changed from the set display transparency to the set hiding transparency, the second picture layer is updated to the second picture, and the third transparency is gradually changed from the set display transparency to the set hiding transparency.
2. The cross fade of claim 1 wherein all pixels of the third picture are dark colored.
3. A cross fade method according to claim 1 wherein all pixels of the third picture are the same color or are patterned.
4. The fade-in and fade-out switching method according to claim 1, wherein when a first picture in the first layer is switched to a second first picture, the first transparency is gradually changed from the set display transparency to the set hiding transparency, the first layer is changed to the second first picture, and the first transparency is set to the set hiding transparency, the first transparency is from the set hiding transparency to the set display transparency, and the third transparency maintains the set display transparency.
5. The fade-in and fade-out switching method according to claim 1, wherein a first second picture in the second layer is switched to a second picture, the third transparency is gradually changed from the set hiding transparency to the set display transparency, the second layer is changed to the second picture, the third transparency is gradually changed from the set display transparency to the set hiding transparency, and the first transparency maintains the set hiding transparency.
6. The method of claim 1, wherein the first picture is a dashboard picture and the second picture is an infotainment system picture.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910794991.8A CN110509769B (en) | 2019-08-27 | 2019-08-27 | Fade-in and fade-out switching method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910794991.8A CN110509769B (en) | 2019-08-27 | 2019-08-27 | Fade-in and fade-out switching method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110509769A CN110509769A (en) | 2019-11-29 |
CN110509769B true CN110509769B (en) | 2022-07-08 |
Family
ID=68627965
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910794991.8A Active CN110509769B (en) | 2019-08-27 | 2019-08-27 | Fade-in and fade-out switching method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110509769B (en) |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1166751A (en) * | 1996-04-27 | 1997-12-03 | 日本胜利株式会社 | Picture switching apparatus |
JP4116853B2 (en) * | 2002-09-26 | 2008-07-09 | 富士フイルム株式会社 | Image editing device |
DE102013002891A1 (en) * | 2013-03-22 | 2014-09-25 | Volkswagen Aktiengesellschaft | An information reproduction system for a vehicle and method for providing information to the user of a vehicle |
KR20150026565A (en) * | 2013-09-03 | 2015-03-11 | 엘지전자 주식회사 | Mobile terminal and control method thereof |
CN106792083B (en) * | 2016-12-09 | 2020-06-09 | 深圳Tcl数字技术有限公司 | Television picture quality demonstration method and system |
CN109859328B (en) * | 2017-11-30 | 2023-06-23 | 百度在线网络技术(北京)有限公司 | Scene switching method, device, equipment and medium |
-
2019
- 2019-08-27 CN CN201910794991.8A patent/CN110509769B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN110509769A (en) | 2019-11-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8947469B2 (en) | Display device and display control device | |
US20070132572A1 (en) | Instrument panel image display device, instrument panel image changing method, vehicle, server, instrument panel image changing system, instrument panel image display program, computer-readable storage medium storing instrument panel image display program | |
EP2273781A1 (en) | Method and apparatus for displaying electric program guide | |
US10304410B2 (en) | System that displays an image based on a color-by-color pixel count and method thereof | |
US20080297464A1 (en) | Display device and display method | |
JP2007248936A (en) | Image processor and image processing method, program, recording medium and integrated circuit | |
US11807096B2 (en) | Display device for vehicle | |
WO2019204178A1 (en) | Seamlessly integrated instrument panel display | |
CN108469976A (en) | Mode switching method, mode-changeover device, mobile unit and vehicle | |
CN100463004C (en) | Method for shading model afterimage effect | |
CN110509769B (en) | Fade-in and fade-out switching method | |
EP1783725A2 (en) | Technique for improving the readability of graphics on a display | |
CN110377377A (en) | Display methods and device, electronic equipment and storage medium | |
US20230137121A1 (en) | Vehicle display control device | |
US20220028360A1 (en) | Method, computer program and apparatus for generating an image | |
US11861763B2 (en) | Contrast ratio color picker | |
CN113763895B (en) | Display screen control method, device, equipment and storage medium | |
EP1263219A2 (en) | Generation of Text on a Display Screen | |
CN108668110B (en) | Method for reducing duration of driver eye adaptation and vehicle device | |
US20110096098A1 (en) | Low luminance readability improvement system and method for liquid crystal displays | |
US20110134324A1 (en) | Television receiver and method for driving television receiver | |
CN110609390B (en) | Backlight brightness adjusting method for head-up display | |
KR20190016464A (en) | Display device and method for producing a display device, device, method and computer-readable storage medium with information for controlling a display device | |
US20230382225A1 (en) | Method for content-based adjustment of the visibility of content on a display unit | |
CN216562305U (en) | Sectional type color display device for automobile instrument panel |
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 |