CN115718636A - Window image display method and device, terminal equipment and storage medium - Google Patents

Window image display method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN115718636A
CN115718636A CN202211477899.7A CN202211477899A CN115718636A CN 115718636 A CN115718636 A CN 115718636A CN 202211477899 A CN202211477899 A CN 202211477899A CN 115718636 A CN115718636 A CN 115718636A
Authority
CN
China
Prior art keywords
control
mark
drawn
parameter
determining
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.)
Pending
Application number
CN202211477899.7A
Other languages
Chinese (zh)
Inventor
王星晖
刘全瑞
辛颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202211477899.7A priority Critical patent/CN115718636A/en
Publication of CN115718636A publication Critical patent/CN115718636A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The disclosure relates to a window image display method, device, equipment and storage medium, wherein the method comprises the following steps: receiving a window image display request sent by an application program; the window image display request comprises a control lightening request; determining a screen lightening parameter and/or a dimming parameter according to the control lightening request; adjusting the backlight brightness of the screen according to the screen brightness improving parameter, drawing a to-be-dimmed control in the window based on the dimming parameter when the control of the application program window is drawn, and drawing other controls based on the original color brightness parameter; and generating a window image based on the control to be dimmed after the drawing processing and other drawn controls, and displaying the window image. According to the technical scheme, the dark control to be pressed can be pressed according to the window image display request, excessive brightening of the dark control to be pressed when the screen brightness is improved is avoided, and the use experience of a user is improved.

Description

Window image display method and device, terminal equipment and storage medium
Technical Field
The present disclosure relates to the field of image rendering technologies, and in particular, to a method and an apparatus for displaying a window image, a terminal device, and a storage medium.
Background
In some usage scenarios of the terminal device (for example, displaying a photo or a video in an HDR (High Dynamic Range) format), it is often necessary to increase the screen brightness to improve the display effect. However, the terminal device generally only has the capability of brightening the whole screen, but does not have the capability of highlighting part of the controls. If only the whole screen is brightened, the control is not required to be brightened excessively, and therefore user experience is affected.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a window image display method, apparatus, terminal device, and storage medium.
According to a first aspect of an embodiment of the present disclosure, there is provided a window image display method including: receiving a window image display request sent by an application program; wherein the window image display request comprises a control brightening request; determining a screen lightening parameter and/or a dimming parameter according to the control lightening request; adjusting the backlight brightness of a screen according to the screen brightness improving parameters, drawing a control to be dimmed in the window based on the dimming parameters when the control of the application program window is drawn, and drawing other controls based on original color brightness parameters; the other controls are controls except the control to be dimmed in the window; and generating a window image based on the to-be-dimmed control subjected to drawing processing and the other controls subjected to drawing processing, and displaying the window image.
In one implementation, the determining, according to the control brightening request, a screen brightening parameter and/or a dimming parameter includes: determining the screen lightening parameters according to the control lightening request; and determining the corresponding dimming parameter according to the screen lightening parameter.
In one implementation, the drawing a control to be dimmed, from among the windows, based on the dimming parameter includes: determining a first mark and a second mark of a control to be drawn; the first mark is used for identifying whether the window needs to be subjected to the dimming processing, and the second mark is used for identifying whether the control to be drawn needs to be subjected to the dimming processing; and determining the control to be drawn as the control to be dimmed according to the first mark and/or the second mark, and drawing the control to be drawn based on the dimming parameter.
In an optional implementation manner, the drawing the control to be drawn based on the dimming parameter includes: determining a first brush color brightness parameter based on the dimming parameter and the original color brightness parameter; and drawing the control to be drawn based on the first brush pen color brightness parameter.
In an optional implementation manner, the drawing the other control based on the original color brightness parameter includes: and determining the control to be drawn as the other control according to the first mark and/or the second mark, and drawing the control to be drawn based on the original color brightness parameter.
In an optional implementation manner, the determining, according to the first mark and/or the second mark, that the control to be drawn is the control to be dimmed includes: and determining the control to be drawn as the control to be dimmed in response to the first mark value being a first preset value and the second mark value being the first preset value.
Optionally, the determining, according to the first mark and/or the second mark, that the control to be drawn is the other control includes: in response to that the value of the first mark is a second preset value, determining that the control to be drawn is the other control; or, in response to that the value of the first mark is a first preset value and the value of the second mark is a second preset value, determining that the control to be drawn is the other control.
According to a second aspect of the embodiments of the present disclosure, there is provided a window image display device including: the receiving module is used for receiving a window image display request sent by an application program; wherein the window image display request comprises a control brightening request; the determining module is used for determining a screen brightening parameter and/or a dimming parameter according to the control brightening request; the processing module is used for adjusting the backlight brightness of the screen according to the screen brightness improving parameters, drawing a control to be dimmed in the window based on the dimming parameters when the control of the application program window is drawn, and drawing other controls based on the original color brightness parameters; the other controls are controls except the control to be dimmed in the window; and the display module is used for generating a window image based on the control to be dimmed after the drawing processing and the other controls after the drawing processing, and displaying the window image.
In one implementation, the determining module is specifically configured to: determining the screen lightening parameters according to the control lightening request; and determining the corresponding dimming parameter according to the screen brightening parameter.
In one implementation, the processing module is specifically configured to: determining a first mark and a second mark of a control to be drawn; the first mark is used for identifying whether the window needs to be subjected to the darkening treatment, and the second mark is used for identifying whether the control to be drawn needs to be subjected to the darkening treatment; and determining the control to be drawn as the control to be dimmed according to the first mark and/or the second mark, and drawing the control to be drawn based on the dimming parameter.
In an optional implementation manner, the processing module is specifically configured to: determining a first brush color brightness parameter based on the dimming parameter and the original color brightness parameter; and drawing the control to be drawn based on the first brush pen color brightness parameter.
In an optional implementation manner, the processing module is specifically configured to: and determining the control to be drawn as the other control according to the first mark and/or the second mark, and drawing the control to be drawn based on the original color brightness parameter.
In an optional implementation manner, the processing module is specifically configured to: and determining the control to be drawn as the control to be dimmed in response to the fact that the value of the first mark is a first preset value and the value of the second mark is the first preset value.
Optionally, the processing module is specifically configured to: in response to that the value of the first mark is a second preset value, determining that the control to be drawn is the other control; or, in response to that the value of the first mark is a first preset value and the value of the second mark is a second preset value, determining that the control to be drawn is the other control.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium storing instructions that, when executed, cause the method according to the first aspect to be implemented.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, performs the steps of the method of the first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the method includes the steps that a screen brightness parameter and/or a dimming parameter are/is determined based on a window image display request sent by an application program, a to-be-dimmed control is drawn according to the dimming parameter, other controls are drawn based on an original color brightness parameter, and therefore a window image is generated and displayed. Therefore, the control to be dimmed is dimmed according to the window image display request, the control which does not need to be dimmed is prevented from being excessively dimmed when the brightness of the screen is improved, and the use experience of a user is improved. And the dimming area can change with the control to be dimmed without other limitations.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart illustrating a window image display method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating another window image display method according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating still another window image display method according to an exemplary embodiment.
Fig. 4 is a drawing flow diagram of a control to be drawn, according to an example embodiment.
Fig. 5 is a block diagram illustrating a window image display apparatus according to an exemplary embodiment.
FIG. 6 is a block diagram illustrating an apparatus in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Where in the description of the present disclosure, "/" indicates an alternative meaning, for example, a/B may indicate a or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. Various numerical numbers of the first, second, etc. referred to in this disclosure are only for convenience of description and distinction, and are not used to limit the scope of the embodiments of the disclosure, nor to indicate a sequential order.
Fig. 1 is a flowchart illustrating a window image display method according to an exemplary embodiment, which may be applied to a terminal device running various Operating systems, such as an android Operating System and an IOS (iPhone Operating System) Operating System. As shown in fig. 1, the method may include, but is not limited to, the following steps.
Step S101: and receiving a window image display request sent by an application program.
In an embodiment of the present disclosure, the window image display request includes a control brightening request.
As an example, the application program may be an album application, the album application may determine a format type of an image to be displayed, and when the format type of the image to be displayed is a preset type (for example, HDR (High Dynamic Range Imaging)), the album application may send a window image display request to request that a control for displaying the image in a window be highlighted to improve a display effect of the image to be displayed.
As another example, the application may be an application newly installed on the terminal device, and when the application is opened by the user for the first time, the application may send a window image display request to request that a specified control in the window image be highlighted to guide the user to be familiar with the operation of the application.
Step S102: and determining a screen lightening parameter and/or a dimming parameter according to the control lightening request.
As an example, a screen brightening parameter for improving the screen backlight brightness is determined according to a control brightening request in the window image display request.
As another example, a dimming parameter for reducing the display brightness of a control that is not required to be brightened in the window image is determined according to a control brightening request in the window image display request.
As still another example, according to a control brightening request in the window image display request, a screen brightening parameter for improving the screen backlight brightness is determined, and a dimming parameter for reducing the display brightness of a control not needing to be brightened in the window image is determined.
In the embodiment of the present disclosure, the dimming parameter may be a dimming matrix (i.e., a color filter matrix), and the dimming matrix may reduce the color of the control that does not need to be brightened by adjusting, so as to reduce the display brightness of the control that does not need to be brightened.
As an example, an application program is taken as an album application, and the album application requests to highlight a control for displaying an image in a window image. After the terminal equipment receives the request, the screen brightening parameters can be determined so as to improve the backlight brightness of the screen according to the parameters, so that the display brightness of the control part for displaying the image is improved, the dimming parameters for reducing the display brightness of the control part which does not need to be brightened are determined, and the reduction of user experience caused by excessive brightening of other control parts is avoided while the display effect of the image to be displayed is improved.
As another example, taking an application as a newly installed application on the terminal device, the application requests to highlight a specified control. After receiving the request, the terminal device may determine a screen brightness increasing parameter to increase the screen brightness according to the parameter, and determine a dimming parameter to decrease the display brightness of the other controls except the designated control.
Step S103: and adjusting the backlight brightness of the screen according to the screen brightness increasing parameter, drawing a to-be-dimmed control in the window based on the dimming parameter when the control of the application program window is drawn, and drawing other controls based on the original color brightness parameter.
In the embodiment of the present disclosure, the other controls are controls other than the control to be dimmed in the window.
For example, the backlight brightness of the screen is adjusted according to the screen brightness enhancement parameter, when a control of an application program window is drawn, the brightness of the control to be dimmed in the window is reduced by using the dimming parameter to perform dimming processing, and meanwhile, other controls except the control to be dimmed in the window are drawn based on a painting brush (namely mllayerpaint) corresponding to the system original color brightness parameter.
As an example, an application program is taken as an album application, and the album application requests to highlight a control for displaying an image in a window image. The terminal equipment adjusts the backlight brightness of the screen according to the screen brightening parameters, when the control of the application program window is drawn, other controls except the control for displaying the image in the window are drawn based on the darkening parameters so as to reduce the display brightness of the other controls, and meanwhile, the control for displaying the image is drawn based on the painting brush corresponding to the original color brightness parameters so as to improve the display brightness of the control for displaying the image, so that the display effect of the image to be displayed is improved, and the reduction of user experience caused by the fact that the control needing darkening is excessively brightened is avoided.
As another example, an application is taken as an application newly installed on the terminal device, and the application requests to highlight a specified control. The terminal equipment adjusts the backlight brightness of the screen according to the screen brightness-increasing parameter, when the control of the application program window is drawn, other controls except the designated control in the window are drawn based on the dimming parameter so as to reduce the display brightness of the other controls, and meanwhile, the control of the designated image is drawn based on the painting brush corresponding to the original color brightness parameter so as to increase the display brightness of the designated control, so that the designated control is highlighted.
Step S104: and generating a window image based on the control to be dimmed after the drawing processing and other drawn controls, and displaying the window image.
For example, the rendered control to be dimmed and the rendered other controls are synthesized to generate a window image, and the generated window image is displayed by a display device of the terminal device.
By implementing the embodiment of the disclosure, the screen brightening parameter and/or the shading parameter can be determined based on the window image display request sent by the application program, so as to draw the to-be-shaded control according to the shading parameter, and draw other controls based on the brush pen corresponding to the original color brightness parameter, so as to generate and display the window image. Therefore, the dark control to be pressed is pressed according to the window image display request, excessive brightening of the dark control to be pressed when the screen brightness is improved is avoided, and the use experience of a user is improved. And the dimming area can change with the control to be dimmed without other limitations.
In one implementation manner of the present disclosure, a screen brightness parameter may be determined, and a corresponding shading parameter is determined according to the screen brightness parameter, so as to perform shading processing based on the shading parameter, as an example, please refer to fig. 2, where fig. 2 is a flowchart of another window image display method according to an exemplary embodiment. As shown in fig. 2, the method may include, but is not limited to, the following steps.
Step S201: and receiving a window image display request sent by an application program.
In the embodiment of the present disclosure, step S201 may be implemented by adopting any one of the embodiments of the present disclosure, and this is not limited in the embodiment of the present disclosure and is not described again.
Step S202: and determining a screen lightening parameter according to the control lightening request.
For example, according to a control brightening request in a window image display request, a brightening parameter of screen brightness required by realizing the request is determined.
Step S203: and determining corresponding dimming parameters according to the screen brightening parameters.
For example, according to the screen brightness parameter, the corresponding darkness parameter is calculated and determined through a darkness parameter calculation formula. The dimming parameter calculation formula can be expressed as follows.
Figure BDA0003960045540000061
Wherein ccolor matrix represents a gauge pressure dark parameter, and F represents a screen lightening parameter.
Step S204: and adjusting the backlight brightness of the screen according to the screen brightness increasing parameter, drawing a to-be-dimmed control in the window based on the dimming parameter when the control of the application program window is drawn, and drawing other controls based on the original color brightness parameter.
In the embodiment of the present disclosure, step S204 may be implemented by any one of the embodiments of the present disclosure, which is not limited in this disclosure and is not described again.
Step S205: and generating a window image based on the drawn control to be dimmed and the drawn other controls, and displaying the window image.
In the embodiment of the present disclosure, step S205 may be implemented by adopting any one of the embodiments of the present disclosure, and this is not limited in the embodiment of the present disclosure and is not described again.
By implementing the embodiment of the disclosure, the screen brightening parameters can be determined based on the window image display request sent by the application program, the dimming parameters can be calculated according to the screen brightening parameters, the control to be dimmed is drawn according to the dimming parameters, and other controls are drawn based on the paintbrush corresponding to the original color brightness parameters, so that the window image is generated and displayed. Therefore, the control to be dimmed is dimmed according to the window image display request, excessive brightening of the control to be dimmed when the screen brightness is improved is avoided, and the user experience is improved. And the dimming area can change with the control to be dimmed without other limitations.
In one implementation manner of the present disclosure, a first mark and a second mark may be set for a control to be drawn, so that whether the control to be drawn needs shading processing may be determined based on the first mark and the second mark, so as to perform subsequent operations. As an example, referring to fig. 3, fig. 3 is a flowchart illustrating still another window image display method according to an exemplary embodiment. As shown in fig. 3, the method may include, but is not limited to, the following steps.
Step S301: and receiving a window image display request sent by an application program.
In the embodiment of the present disclosure, step S301 may be implemented by adopting any one of the embodiments of the present disclosure, and this is not limited in the embodiment of the present disclosure and is not described again.
Step S302: and determining a screen lightening parameter and/or a dimming parameter according to the control lightening request.
In the embodiment of the present disclosure, step S302 may be implemented by any one of the embodiments of the present disclosure, and this is not limited in the embodiment of the present disclosure and is not described again.
Step S303: and adjusting the backlight brightness of the screen according to the screen brightness-improving parameters.
For example, the backlight brightness of the screen is adjusted, so that the adjusted backlight brightness is the same as the screen brightness corresponding to the screen brightness parameter.
Step S304: when the control of the application program window is drawn, a first mark and a second mark of the control to be drawn are determined.
In the embodiment of the disclosure, the first mark is used for identifying whether the window needs to be subjected to the dimming processing, and the second mark is used for identifying whether the control to be drawn needs to be subjected to the dimming processing.
For example, when a control of an application program window is drawn, a first mark for identifying whether the window needs to be dimmed and a second mark for identifying whether the control to be drawn in the window needs to be dimmed are determined.
Step S305: and determining the control to be drawn as a control to be dimmed according to the first mark and/or the second mark, and drawing the control to be drawn based on the dimming parameter.
As an example, in response to that the first mark identification window needs to be subjected to shading processing and the second mark identification to-be-drawn control needs to be subjected to shading processing, the to-be-drawn control is determined to be a to-be-shaded control, and the to-be-drawn control is drawn based on a shading parameter.
As another example, in response to that the first mark identifies that the window requires the dimming process and the second mark identifies that the control to be drawn does not require the dimming process, it is determined that the control to be drawn is not the control to be dimmed.
As yet another example, in response to the first marker identifying that the window does not require the dimming process, it is determined that the control to be drawn is not a control to be dimmed.
In an optional implementation manner, the drawing the control to be drawn based on the dimming parameter includes: determining a first painting brush color brightness parameter based on the dimming parameter and the original color brightness parameter; and drawing the control to be drawn based on the first brush color brightness parameter.
For example, a first brush color brightness parameter is calculated based on the dimming parameter and the original color brightness parameter, and a brush with the brightness corresponding to the first brush color brightness parameter is used for drawing the control to be drawn. The calculation formula of the first brush color brightness parameter is as follows.
mLayerPaint new =mLayerPaint old *colorMatrix
Wherein, mLayerPaint new mLayerPaint, the first paint color intensity parameter old The system defaults to the brush color brightness parameter, colorMatrix is the shading parameter.
In an optional implementation manner, the determining, according to the first mark and/or the second mark, that the control to be drawn is the control to be dimmed may include: and determining the control to be drawn as the control to be dimmed in response to the fact that the value of the first mark is a first preset value and the value of the second mark is a first preset value.
For example, a first preset value is preset, and when the value of the first mark is the first preset value, the window representing the first mark needs to be darkened; and when the value of the second mark is the first preset value, the control to be drawn, which represents the second mark identifier, needs to be subjected to dimming processing. And in response to the fact that the value of the first mark is a first preset value and the value of the second mark is a first preset value, determining that the first mark identifies that the application program window needs to be dimmed, and the second mark identifies that the control to be drawn needs to be dimmed, thereby determining that the control to be drawn is the control to be dimmed.
As an example, an application program is taken as an album application, and the album application requests a control for displaying an image to be highlighted. The terminal device may set a value of a first flag identifying a window of the album application as a first preset value, and set a value of a second flag identifying other controls in the window except for the control displaying the image as the first preset value. When the application program window draws other controls except the control for displaying the image, the window needs to be darkened in response to the first mark value being the first preset value, and the control to be drawn needs to be darkened in response to the second mark value being the first preset value, so that the control to be drawn is determined to be the control to be darkened.
Step S306: and drawing other controls based on the original color brightness parameters.
For example, a brush with brightness corresponding to the system original color brightness parameter is used to draw the controls except the control to be dimmed in the application window.
In an optional implementation manner, the drawing the other control based on the original color brightness parameter may include: and determining the control to be drawn as other controls according to the first mark and/or the second mark, and drawing the control to be drawn based on the original color brightness parameter.
As an example, in response to that the first mark identifies that the window does not need to be dimmed, determining that the to-be-drawn control is another control in the window except for the to-be-dimmed control, and drawing the to-be-drawn control with a brush corresponding to the original color brightness parameter.
As another example, in response to that the first mark identification window needs to be subjected to the dimming processing and the second mark identification to-be-drawn control does not need to be subjected to the dimming processing, the to-be-drawn control is determined to be a control other than the to-be-dimmed control in the window, and the to-be-drawn control is drawn by using a brush corresponding to the original color brightness parameter.
Optionally, the determining, according to the first mark and/or the second mark, that the control to be drawn is another control may include: in response to the fact that the value of the first mark is a second preset value, determining the control to be drawn as other controls; or, in response to that the value of the first mark is the first preset value and the value of the second mark is the second preset value, determining that the control to be drawn is the other control.
For example, different first preset values (e.g., future) and second preset values (e.g., flash) are preset, when the value of the first mark is the first preset value, the window representing the first mark identifier needs to be dimmed, and when the value of the first mark is the second preset value, the window representing the first mark identifier does not need to be dimmed; when the value of the second mark is a first preset value, the control to be drawn representing the second mark identification needs to be subjected to dimming processing, and when the value of the second mark is a second preset value, the control to be drawn representing the second mark identification does not need to be subjected to dimming processing. Responding to the fact that the value of the first mark is a second preset value, the window marked by the first mark does not need to be subjected to darkening processing, and determining the control to be drawn in the window to be other controls which do not need to be subjected to darkening processing; or, in response to the value of the first mark being a first preset value, it is determined that the window needs to be dimmed, and in response to the value of the second mark being a second preset value, it is determined that the control to be drawn identified by the second mark does not need to be dimmed, so as to determine that the control to be drawn is another control except the control to be dimmed in the window.
As an example, an application program is taken as an album application, and the album application requests a control for displaying an image to be highlighted. The terminal device may set a value of a first flag identifying a window of the album application as tune, set a value of a second flag identifying a control other than the control displaying the image in the window as tune, and set a value of the second flag identifying the control displaying the image as flush. When the control of the display image is drawn, the fact that the window of the application program needs to be darkened is determined in response to the fact that the value of the first mark is the first preset value, and the fact that the control to be drawn does not need to be darkened is determined in response to the fact that the value of the second mark is the second preset value, and therefore the control to be drawn is determined to be other controls except the control to be darkened.
As another example, taking an application as a video application, the video application does not need to perform a shading process when playing an HDR video in a full screen mode. The terminal device may set a value of a first flag identifying a window of the album application to a flash. Such that it is determined that the window does not need to be dimmed in response to the value of the first flag being the second preset value. Therefore, when the control in the window is drawn, the control to be drawn is determined to be other controls which do not need to be dimmed.
Step S307: and generating a window image based on the control to be dimmed after the drawing processing and other drawn controls, and displaying the window image.
In the embodiment of the present disclosure, step S307 may be implemented by any one of the embodiments of the present disclosure, which is not limited in this embodiment of the present disclosure and is not described again.
By implementing the embodiment of the disclosure, whether the control to be drawn is the control to be dimmed is determined according to the first mark and/or the second mark, so that the control to be dimmed is drawn according to the dimming parameter, and other controls are drawn based on the brush pen corresponding to the original color brightness parameter, thereby generating and displaying the window image. The backlight brightening only acting on the specific control in the window image is realized, the excessive brightening of the control to be dimmed when the screen brightness is improved is avoided, and the use experience of a user is improved. And the darkened area may follow the shape of the control without other limitations. And the dimming area can change with the control to be dimmed without other limitations.
Referring to fig. 4, fig. 4 is a drawing flow diagram of a control to be drawn according to an exemplary embodiment. As shown in fig. 4, when the control to be rendered is rendered, in the embodiment of the present disclosure, it is first determined whether the whole window to which the current control to be rendered belongs needs to be darkened by determining whether the value of the first identifier (i.e., flag1 shown in fig. 4) is tune (step S401 in fig. 4); in response to the flag1 value not being tune, determining that the window as a whole does not need to be darkened, using the system default brush (i.e., mLayerPaint as shown in FIG. 4) old ) Finishing the drawing of the control in the window; or, in response to the fact that the value of the flag1 is "tune", determining that the whole window needs to be dimmed, and then determining whether the control to be currently drawn needs to be dimmed by judging whether the value of the second identifier (i.e., flag2 shown in fig. 4) is "tune" (step S402 in fig. 4); in response to the fact that the value of the flag2 is not greater than the future, the control to be drawn currently does not need to be darkened, and a system default painting brush mLayerPaint is used old Finishing the drawing of the control to be drawn; or, in response to the fact that the value of flag2 is greater, determining that the current control to be drawn needs to be darkened, and obtaining a new brush (i.e., mlayer paint shown in fig. 4) based on the default brush and the darkening moment of the system new ) And using mLayerPaint new The drawing of the control to be drawn currently is completed (as in step S403 in fig. 4).
Referring to fig. 5, fig. 5 is a block diagram illustrating a window image display apparatus according to an exemplary embodiment. As shown in fig. 5, the apparatus 500 includes: a receiving module 501, configured to receive a window image display request sent by an application program; the window image display request comprises a control lightening request; a determining module 502, configured to determine a screen brightening parameter and/or a dimming parameter according to the control brightening request; the processing module 503 is configured to adjust the backlight brightness of the screen according to the screen brightness enhancement parameter, and when a control of the application program window is drawn, draw a control to be dimmed in the window based on the dimming parameter, and draw other controls based on the original color brightness parameter; wherein, the other controls are controls except for the control to be dimmed in the window; and the display module 504 is configured to generate a window image based on the to-be-dimmed control subjected to the rendering processing and the other controls subjected to the rendering processing, and display the window image.
In one implementation, the determining module 502 is specifically configured to: determining a screen brightening parameter according to the control brightening request; and determining corresponding dimming parameters according to the screen brightening parameters.
In one implementation, the processing module 503 is specifically configured to: determining a first mark and a second mark of a control to be drawn; the first mark is used for identifying whether the window needs to be subjected to the darkening treatment, and the second mark is used for identifying whether the control to be drawn needs to be subjected to the darkening treatment; and determining the control to be drawn as a control to be dimmed according to the first mark and/or the second mark, and drawing the control to be drawn based on the dimming parameter.
In an optional implementation manner, the processing module 503 is specifically configured to: determining a first painting brush color brightness parameter based on the dimming parameter and the original color brightness parameter; and drawing the control to be drawn based on the first brush pen color brightness parameter.
In an optional implementation manner, the processing module 503 is specifically configured to: and determining the control to be drawn as other controls according to the first mark and/or the second mark, and drawing the control to be drawn based on the original color brightness parameter.
In an optional implementation manner, the processing module 503 is specifically configured to: and determining the control to be drawn as the control to be dimmed in response to the fact that the value of the first mark is a first preset value and the value of the second mark is a first preset value.
Optionally, the processing module 503 is specifically configured to: in response to the fact that the value of the first mark is a second preset value, determining the control to be drawn as other controls; or, in response to that the value of the first mark is the first preset value and the value of the second mark is the second preset value, determining that the control to be drawn is the other control.
By the device, the screen brightness parameter and/or the shading parameter can be determined based on the window image display request sent by the application program, so that the to-be-shaded control is drawn according to the shading parameter, and other controls are drawn based on the original color brightness parameter, so that the window image is generated and displayed. Therefore, the control to be dimmed is dimmed according to the window image display request, excessive brightening of the control which does not need to be brightened when the screen brightness is improved is avoided, and the use experience of a user is improved. And the dimming area can change with the control to be dimmed without other limitations.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 6 is a block diagram illustrating an apparatus 600 for window image display according to an example embodiment. For example, the apparatus 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 6, the apparatus 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an interface for input/output (I/O) 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operation at the device 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile and non-volatile storage devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 606 provides power to the various components of device 600. Power components 606 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 600.
The multimedia component 608 includes a screen that provides an output interface between the device 600 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 600 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is configured to output and/or input audio signals. For example, audio component 610 includes a Microphone (MIC) configured to receive external audio signals when apparatus 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing status assessment of various aspects of the apparatus 600. For example, the sensor component 614 may detect the open/closed state of the device 600, the relative positioning of the components, such as a display and keypad of the apparatus 600, the change in position of the apparatus 600 or a component of the apparatus 600, the presence or absence of user contact with the apparatus 600, the orientation or acceleration/deceleration of the apparatus 600, and the change in temperature of the apparatus 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the apparatus 600 and other devices in a wired or wireless manner. The apparatus 600 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 620 of the apparatus 600 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present disclosure also provides a readable storage medium having stored thereon instructions which, when executed by a computer, implement the functionality of any of the above-described method embodiments.
The present disclosure also provides a computer program product which, when executed by a computer, implements the functionality of any of the method embodiments described above.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (16)

1. A window image display method, comprising:
receiving a window image display request sent by an application program; wherein the window image display request comprises a control brightening request;
determining a screen lightening parameter and/or a dimming parameter according to the control lightening request;
adjusting the backlight brightness of a screen according to the screen brightness improving parameters, drawing a control to be dimmed in the window based on the dimming parameters when the control of the application program window is drawn, and drawing other controls based on original color brightness parameters; the other controls are controls except the control to be dimmed in the window;
and generating a window image based on the control to be dimmed after the drawing processing and the other controls after the drawing processing, and displaying the window image.
2. The method of claim 1, wherein determining a screen lightening parameter and/or a dimming parameter according to the control lightening request comprises:
determining the screen lightening parameters according to the control lightening request;
and determining the corresponding dimming parameter according to the screen brightening parameter.
3. The method of claim 1, wherein the drawing the control to be dimmed from among the windows based on the dimming parameter comprises:
determining a first mark and a second mark of a control to be drawn; the first mark is used for identifying whether the window needs to be subjected to the darkening treatment, and the second mark is used for identifying whether the control to be drawn needs to be subjected to the darkening treatment;
and determining the control to be drawn as the control to be dimmed according to the first mark and/or the second mark, and drawing the control to be drawn based on the dimming parameter.
4. The method of claim 3, wherein the rendering the control to be rendered based on the dimming parameter comprises:
determining a first brush color brightness parameter based on the dimming parameter and the original color brightness parameter;
and drawing the control to be drawn based on the first brush pen color brightness parameter.
5. The method of claim 3, wherein the drawing the other controls based on the raw color brightness parameter comprises:
and determining the control to be drawn as the other control according to the first mark and/or the second mark, and drawing the control to be drawn based on the original color brightness parameter.
6. The method according to any one of claims 3 to 5, wherein the determining that the control to be drawn is the control to be dimmed according to the first mark and/or the second mark comprises:
and determining the control to be drawn as the control to be dimmed in response to the first mark value being a first preset value and the second mark value being the first preset value.
7. The method of claim 5, wherein the determining that the control to be drawn is the other control according to the first mark and/or the second mark comprises:
determining the control to be drawn as the other control in response to the first mark value being a second preset value;
or, in response to that the value of the first mark is a first preset value and the value of the second mark is a second preset value, determining that the control to be drawn is the other control.
8. A window image display apparatus, comprising:
the receiving module is used for receiving a window image display request sent by an application program; wherein the window image display request comprises a control brightening request;
the determining module is used for determining a screen brightening parameter and/or a dimming parameter according to the control brightening request;
the processing module is used for adjusting the backlight brightness of the screen according to the screen brightness improving parameters, drawing a control to be dimmed in the window based on the dimming parameters when the control of the application program window is drawn, and drawing other controls based on the original color brightness parameters; the other controls are controls except the control to be dimmed in the window;
and the display module is used for generating a window image based on the control to be dimmed after the drawing processing and the other controls after the drawing processing, and displaying the window image.
9. The apparatus of claim 8, wherein the determination module is specifically configured to:
determining the screen lightening parameters according to the control lightening request;
and determining the corresponding dimming parameter according to the screen brightening parameter.
10. The apparatus of claim 8, wherein the processing module is specifically configured to:
determining a first mark and a second mark of a control to be drawn; the first mark is used for identifying whether the window needs to be subjected to the dimming processing, and the second mark is used for identifying whether the control to be drawn needs to be subjected to the dimming processing;
and determining the control to be drawn as the control to be dimmed according to the first mark and/or the second mark, and drawing the control to be drawn based on the dimming parameter.
11. The apparatus of claim 10, wherein the processing module is specifically configured to:
determining a first brush color brightness parameter based on the dimming parameter and the original color brightness parameter;
and drawing the control to be drawn based on the first brush pen color brightness parameter.
12. The apparatus of claim 10, wherein the processing module is specifically configured to:
and determining the control to be drawn as the other control according to the first mark and/or the second mark, and drawing the control to be drawn based on the original color brightness parameter.
13. The apparatus according to any one of claims 10 to 12, wherein the processing module is specifically configured to:
and determining the control to be drawn as the control to be dimmed in response to the fact that the value of the first mark is a first preset value and the value of the second mark is the first preset value.
14. The apparatus of claim 12, wherein the processing module is specifically configured to:
in response to that the value of the first mark is a second preset value, determining that the control to be drawn is the other control;
or, in response to that the value of the first mark is a first preset value and the value of the second mark is a second preset value, determining that the control to be drawn is the other control.
15. A terminal device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 7.
16. A computer readable storage medium storing instructions that, when executed, cause the method of any one of claims 1 to 7 to be implemented.
CN202211477899.7A 2022-11-23 2022-11-23 Window image display method and device, terminal equipment and storage medium Pending CN115718636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211477899.7A CN115718636A (en) 2022-11-23 2022-11-23 Window image display method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211477899.7A CN115718636A (en) 2022-11-23 2022-11-23 Window image display method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115718636A true CN115718636A (en) 2023-02-28

Family

ID=85256105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211477899.7A Pending CN115718636A (en) 2022-11-23 2022-11-23 Window image display method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115718636A (en)

Similar Documents

Publication Publication Date Title
US10832619B2 (en) Method for controlling screen display and device using the same
CN108200279B (en) Backlight adjusting method, device and equipment
CN108829475B (en) UI drawing method, device and storage medium
CN112331158B (en) Terminal display adjusting method, device, equipment and storage medium
CN108874482B (en) Image processing method and device
CN109102779B (en) Backlight adjusting method and device
CN113241044B (en) Screen brightness adjusting method, device, equipment and storage medium
CN110069310B (en) Method and device for switching desktop wallpaper and storage medium
CN114827721A (en) Video special effect processing method and device, storage medium and electronic equipment
CN115718636A (en) Window image display method and device, terminal equipment and storage medium
CN114442789A (en) Dark screen control method, device, equipment and storage medium
CN109417463B (en) Method and device for determining PUCCH needing transmission
CN111538447A (en) Information display method, device, equipment and storage medium
CN113805763A (en) Authority authorization method, device and storage medium
CN112086075A (en) Screen display parameter adjusting method and device and storage medium
CN114666439B (en) Method, device and medium for adjusting dark color mode display state
CN111261035B (en) Screen display method and device
CN113470583B (en) Display screen adjusting method and device and storage medium
CN110876015B (en) Method and device for determining image resolution, electronic equipment and storage medium
US20220291890A1 (en) Method for interaction between devices and medium
CN111443759B (en) Display control method, display control device, electronic equipment and computer-readable storage medium
US20210208556A1 (en) Method and device for processing data, and storage medium
CN110876013B (en) Method and device for determining image resolution, electronic equipment and storage medium
CN117426083A (en) Display screen control method and device, electronic equipment and readable storage medium
CN114266690A (en) Image rendering method, device and equipment

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