WO2018132974A1 - 一种显示控制方法和终端 - Google Patents

一种显示控制方法和终端 Download PDF

Info

Publication number
WO2018132974A1
WO2018132974A1 PCT/CN2017/071538 CN2017071538W WO2018132974A1 WO 2018132974 A1 WO2018132974 A1 WO 2018132974A1 CN 2017071538 W CN2017071538 W CN 2017071538W WO 2018132974 A1 WO2018132974 A1 WO 2018132974A1
Authority
WO
WIPO (PCT)
Prior art keywords
pressure value
color
touch
value intervals
color display
Prior art date
Application number
PCT/CN2017/071538
Other languages
English (en)
French (fr)
Inventor
廖建强
Original Assignee
廖建强
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 廖建强 filed Critical 廖建强
Priority to PCT/CN2017/071538 priority Critical patent/WO2018132974A1/zh
Publication of WO2018132974A1 publication Critical patent/WO2018132974A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means

Definitions

  • the present invention relates to the field of interactive control, and in particular, to a display control method and a terminal.
  • more and more smart devices introduce pressure touch function, which is controlled by the pressure sensor set under the touch screen to detect the pressure of the touch action and the sliding track of the touch action.
  • the smart device that is, the user can interact with the smart device through the pressure touch gesture, so that the interaction mode of the smart device is increasingly rich, and the fun of the operation is improved.
  • the user In the current pressure touch operation, the user needs to exert a certain pressure on the touch screen to trigger the generation of the pressure touch gesture. If the pressure value of the applied pressure is too small, the pressure touch operation cannot be performed, and if the pressure value of the applied pressure is too large, The touch screen will be damaged, so the problem to be solved now is how to prompt the user to apply the pressure value on the touch screen in order to control the smart device.
  • a technical problem to be solved by embodiments of the present invention is to provide a display control method.
  • the user can be prompted to apply pressure values on the touch screen to facilitate related control of the smart device.
  • an embodiment of the present invention provides a display control method, including:
  • the pressure value of the touch action can be periodically detected by a pressure sensor disposed under the touch screen. If the touch action is a single touch action, only the pressure value of one touch point is measured, if the touch is When the action is a multi-touch action, the pressure values of the plurality of touch points are measured, and the measured plurality of pressure values are averaged, and the average value is taken as the final pressure value.
  • the terminal stores pre-set color mapping information, the color mapping information indicates a relationship between a plurality of pressure value intervals and a color display parameter, the color display parameter indicates a related parameter of a color displayed on the display screen, and the color display parameter may represent a different color space.
  • the terminal determines which of the preset pressure value intervals (ie, the target pressure value interval) according to the measured pressure value, and the terminal updates the color of the designated area on the touch screen according to the preset color display parameter.
  • the designated area may be the position of the touch point corresponding to the touch action, and may be the entire touch screen or a touch The border of the screen or other location.
  • the detecting, before the touch action occurs on the touch screen, periodically measuring the pressure value of the touch action further includes:
  • the terminal sets the plurality of pressure value intervals, the plurality of pressure value intervals do not overlap each other, and the maximum pressure value of the plurality of pressure value intervals is smaller than the maximum pressure value that the pressure sensor can measure.
  • the number of pressure value intervals is not limited, and may be, for example, two, three or four.
  • the length of each pressure value interval may or may not be equal, for example, in equal steps.
  • the terminal generates the color mapping information after each of the plurality of pressure value intervals is associated with a different color display parameter, and the different pressure value intervals correspond to different color display parameters.
  • the color display parameters include one or more of hue, saturation, and brightness.
  • the plurality of pressure value intervals correspond to different color tones, and the plurality of pressure value intervals correspond to the same saturation and brightness.
  • the plurality of pressure value intervals correspond to the same hue and brightness, and the plurality of pressure value intervals correspond to different saturations; or
  • the plurality of pressure value intervals correspond to the same hue and saturation, and the plurality of pressure value intervals correspond to different brightnesses.
  • the updating the color of the designated area on the touch screen according to the color display parameter includes:
  • an embodiment of the present invention further provides a terminal, including:
  • a measuring module configured to periodically measure a pressure value of the touch action when a touch action occurs on the touch screen
  • Determining a module determining a target pressure value interval in which the pressure value is located from a preset plurality of pressure value intervals
  • a querying module configured to query, according to preset color mapping information, a color display parameter associated with the target pressure value interval
  • an update module configured to update a color of the designated area on the touch screen according to the color display parameter.
  • the terminal further includes:
  • a setting module configured to set the plurality of pressure value intervals
  • an association module configured to generate the color mapping information after each of the plurality of pressure value intervals is associated with a different color display parameter.
  • the color display parameters include one or more of hue, saturation, and brightness.
  • the plurality of pressure value intervals correspond to different hue, and the plurality of pressure value intervals correspond to the same saturation and brightness;
  • the plurality of pressure value intervals correspond to the same hue and brightness, and the plurality of pressure value intervals correspond to different saturations; or
  • the plurality of pressure value intervals correspond to the same hue and saturation, and the plurality of pressure value intervals correspond to different brightnesses.
  • the update module is specifically configured to:
  • the terminal can prompt the user to directly apply the size by changing the color on the specified area, which is convenient for the user to operate.
  • FIG. 1 is a schematic flow chart of a display control method of the present invention
  • FIG. 2 is a schematic flow chart of still another display control method of the present invention.
  • Figure 3 is a schematic diagram of a user interface
  • FIG. 4a is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • 4b is another schematic structural diagram of a terminal according to an embodiment of the present invention.
  • FIG. 5 is another schematic structural diagram of a terminal according to an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a display control method according to an embodiment of the present invention.
  • the method includes:
  • the touch screen of the embodiment has a function of touch detection and display, and the terminal can detect a touch action on the touch screen by detecting a current change value on the touch screen, and the touch action can be a single touch action or a multi-touch action.
  • the terminal can periodically measure the pressure value of the touch action by a pressure sensor disposed under the touch screen, and the measurement period can be set as needed, for example, the detection period is 1S.
  • the terminal may separately obtain pressure values corresponding to the plurality of touch points, and average the plurality of measured pressure values to obtain a final pressure value.
  • the terminal pre-stores a plurality of pressure value intervals, the plurality of pressure value intervals do not coincide with each other, the terminal determines the pressure value measured by S101, and determines the target pressure value of the pressure value from the preset plurality of pressure value intervals.
  • the interval, the target pressure value interval is one of a plurality of pressure value intervals.
  • the terminal stores the preset color information information, and the color mapping information indicates a relationship between the plurality of pressure value intervals and the color display parameters, and each pressure value interval is associated with a different color display parameter.
  • the terminal queries the color display associated with the target pressure value interval according to the preset color mapping information. parameter.
  • the color display parameters represent characteristics of the color, such as brightness, grayscale, hue, and the like.
  • the user interface is displayed on the touch screen according to the existing display method.
  • the terminal updates the color of the designated area on the touch screen according to the preset color display parameter.
  • the designated area is the edge of the touch screen, the specified position on the status bar, or the position of the touch point, and the like.
  • the terminal by periodically measuring the pressure value of the touch action, determining the target pressure value interval where the pressure value is located, and determining the color display parameter associated with the target pressure interval, updating the color of the designated area on the touch screen according to the color display parameter, the pressure
  • the specified area displays different colors, and the terminal can prompt the user to apply the current size by changing the color on the specified area, which is convenient for the user to operate.
  • FIG. 2 is still another schematic flowchart of a display control method according to an embodiment of the present invention.
  • the method includes:
  • the terminal presets a plurality of pressure value intervals according to the detection range of the pressure sensor, and the pressure value intervals do not coincide with each other, and the lengths of the respective pressure value intervals may be equal or unequal.
  • the terminal presets the four pressure value intervals, the pressure value interval 1 is (0,0.,4), the pressure value interval 2 is (0.4,0.6), the pressure value interval 3 is (0.6,1], the pressure The value interval is 4 (1, + ⁇ ).
  • the terminal generates color mapping information after each of the plurality of pressure value sections is associated with a different color display parameter.
  • the color display parameter represents a related parameter of the color in the RGB color space, and the color display parameter includes one or more of hue, saturation, and brightness.
  • the color display parameters may also be related parameters of colors in other color spaces, such as: CMY, HSV, related parameters of colors in HSI.
  • the plurality of pressure value intervals correspond to different hue, and the plurality of pressure value intervals correspond to the same saturation and brightness.
  • the color display parameter color corresponding to the interval of the pressure value interval is arranged according to the wavelength of the hue, and the shorter the wavelength of the hue corresponding to the small value range of the small value, the large numerical pressure The longer the wavelength corresponding to the value interval.
  • the colors are arranged in ascending order of wavelength: red orange yellow green blue blue purple.
  • the hue corresponding to the pressure value interval 1 is red
  • the hue corresponding to the pressure interval 2 is orange
  • the hue corresponding to the pressure interval 3 is yellow
  • the hue corresponding to the pressure interval 4 is green.
  • the plurality of pressure value intervals correspond to the same hue and brightness, and the plurality of pressure value intervals correspond to different saturation degrees, and the smaller the value of the small value value interval saturation, the larger the numerical value of the pressure value interval is saturated The greater the degree.
  • the plurality of pressure value intervals correspond to the same hue and saturation, and the plurality of pressure value intervals correspond to different brightnesses, and the smaller the numerical value, the smaller the brightness of the numerical interval, and the greater the number, the higher the digital interval brightness Big.
  • the touch screen of the embodiment has a function of touch detection and display, and the terminal can detect a touch action on the touch screen by detecting a current change value on the touch screen, and the touch action can be a single touch action or a multi-touch action.
  • the terminal can periodically measure the pressure value of the touch action by a pressure sensor disposed under the touch screen, and the measurement period can be set as needed, for example, the detection period is 1S.
  • the terminal may separately obtain pressure values corresponding to the plurality of touch points, and average the plurality of measured pressure values to obtain a final pressure value.
  • the touch point is three, and the terminal detects that the pressure value of the three touch points has an average pressure value of 0.5.
  • the terminal pre-stores a plurality of pressure value intervals, the plurality of pressure value intervals do not coincide with each other, the terminal determines the pressure value measured by S101, and determines the target pressure value of the pressure value from the preset plurality of pressure value intervals.
  • the interval, the target pressure value interval is one of a plurality of pressure value intervals.
  • the measured pressure value is 0.5
  • the terminal determines that the pressure value is in the pressure value interval 2
  • the pressure value interval 2 is the target pressure value interval.
  • the terminal stores the preset color information information, and the color mapping information indicates a relationship between the plurality of pressure value intervals and the color display parameters, and each pressure value interval is associated with a different color display parameter.
  • the terminal queries the color display parameter associated with the target pressure value interval according to the preset color mapping information.
  • the color display parameters represent characteristics of the color, such as brightness, grayscale, hue, and the like.
  • the terminal determines, according to the color mapping information, that the color display parameters associated with the pressure value interval 2 are hue orange, saturation 255, and brightness 255.
  • a circle formed by centering the touch point and having a preset length as a radius is used as the designated area.
  • the user 32 performs a single touch action on the touch screen 30, and the terminal determines the touch point of the touch action, and the circle formed by the touch point as the center point and the preset length is a radius.
  • 31 is a designated area, and the terminal displays the color of the parameter update circle 31 according to the queried color in the designated area.
  • the terminal by periodically measuring the pressure value of the touch action, determining the target pressure value interval where the pressure value is located, and determining the color display parameter associated with the target pressure interval, updating the color of the designated area on the touch screen according to the color display parameter, the pressure
  • the specified area displays different colors, and the terminal can prompt the user to apply the current size by changing the color on the specified area, which is convenient for the user to operate.
  • FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal in the embodiment of the present invention is used to perform a display method in FIG. 1 , and the related terms and processes may refer to the description of the embodiment in FIG. 1 .
  • the terminal 4 includes a measurement module 401, a determination module 402, a query module 403, and an update module 404.
  • the measuring module 401 is configured to periodically measure the pressure value of the touch action when a touch action occurs on the touch screen.
  • the determining module 402 determines a target pressure value interval in which the pressure value is located from a preset plurality of pressure value intervals.
  • the query module 403 is configured to query, according to the preset color mapping information, a color display parameter associated with the target pressure value interval.
  • the updating module 404 is configured to update a color of the designated area on the touch screen according to the color display parameter.
  • FIG. 4b is another schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal 4 includes, in addition to the measurement module 401, the determining module 402, the query module 403, and the update module 404, A setup module 405 and an association module 406 are included.
  • the setting module 405 is configured to set the plurality of pressure value intervals.
  • the association module 406 is configured to generate the color mapping information after each of the plurality of pressure value intervals is associated with a different color display parameter.
  • the color display parameters include one or more of hue, saturation, and brightness.
  • the plurality of pressure value intervals correspond to different color tones, and the plurality of pressure value intervals correspond to the same saturation and brightness; or
  • the plurality of pressure value intervals correspond to the same hue and brightness, and the plurality of pressure value intervals correspond to different saturations; or
  • the plurality of pressure value intervals correspond to the same hue and saturation, and the plurality of pressure value intervals correspond to different brightnesses.
  • the update module 404 is specifically configured to:
  • FIG. 5 is a schematic diagram of another structure of a terminal according to an embodiment of the present invention.
  • the terminal 5 includes a processor 501, a memory 502, and a transceiver 503.
  • the transceiver 503 is configured to transmit and receive data with and from an external device.
  • the number of processors 501 in the terminal 5 may be one or more.
  • processor 501, memory 502, and transceiver 503 may be coupled by a bus system or other means.
  • Terminal 5 can be used to perform the method shown in FIG. For the meaning and examples of the terms involved in the embodiment, reference may be made to the corresponding embodiment of FIG. 1. I will not repeat them here.
  • the program code is stored in the memory 502.
  • the processor 501 is configured to call the memory 502 Stored program code to do the following:
  • the processor 501 when the processor 501 performs the detecting that a touch action occurs on the touch screen, periodically measuring the pressure value of the touch action, the processor 501 is further configured to:
  • the color mapping information is generated after each of the plurality of pressure value intervals is associated with a different color display parameter.
  • the color display parameters include one or more of hue, saturation, and brightness.
  • the plurality of pressure value intervals correspond to different color tones, and the plurality of pressure value intervals correspond to the same saturation and brightness;
  • the plurality of pressure value intervals correspond to the same hue and brightness, and the plurality of pressure value intervals correspond to different saturations; or
  • the plurality of pressure value intervals correspond to the same hue and saturation, and the plurality of pressure value intervals correspond to different brightnesses.
  • the executing, by the processor 501, the color of the specified area on the touch screen according to the color display parameter includes:
  • the embodiment of the invention provides a terminal, which includes but is not limited to piggybacking Or terminals of other operating systems, such as mobile phones.
  • Other terminals may also be used, such as a laptop or tablet or desktop computer with a touch-sensitive surface (eg, a touch screen display and/or a touch pad).
  • a terminal including a display and a touch-sensitive surface is described.
  • the terminal may include one or more other physical user interface devices such as a physical keyboard, a mouse, and / or the joystick.
  • Terminals typically support a variety of applications, such as one or more of the following: a drawing application, a rendering application, a word processing application, a web page creation application, a disk editing application, a spreadsheet application, a gaming application, Telephony applications, video conferencing applications, email applications, instant messaging applications, workout support applications, photo management applications, digital camera applications, digital video camera applications, web browsing applications, digital music player applications Program, and/or digital video player application.
  • applications such as one or more of the following: a drawing application, a rendering application, a word processing application, a web page creation application, a disk editing application, a spreadsheet application, a gaming application, Telephony applications, video conferencing applications, email applications, instant messaging applications, workout support applications, photo management applications, digital camera applications, digital video camera applications, web browsing applications, digital music player applications Program, and/or digital video player application.
  • the various applications that can be executed on the terminal can use at least one shared physical user interface device, such as a touch-sensitive surface.
  • One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal may be adjusted and/or changed from one application to the next and/or adjusted and/or varied within the respective application.
  • the shared physical architecture of the terminal such as a touch-sensitive surface, can support a variety of applications with a user interface that is intuitive to the user.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种显示控制方法,包括:检测到触摸屏上发生触摸动作时,周期性的测量所述触摸动作的压力值(S101);从预设的多个压力值区间中确定所述压力值所在的目标压力值区间(S102);根据预设的颜色映射信息查询与所述目标压力值区间关联的颜色显示参数(S103);根据所述颜色显示参数更新所述触摸屏上指定区域的颜色(S104)。采用该方法,能提升交互的趣味性。

Description

一种显示控制方法和终端 技术领域
本发明涉及交互控制领域,尤其涉及一种显示控制方法和终端。
背景技术
目前越来越多的智能设备(例如:智能手机、智能手表、平板电脑等)引入压力触控功能,通过在触摸屏下方设置的压力传感器检测触控动作的压力以及触控动作的滑动轨迹来控制智能设备,即用户可通过压力触控手势来与智能设备进行交互,使智能设备的交互方式日益丰富,提升操作的趣味性。
在目前的压力触控操作中,用户需要在触摸屏上施加一定的压力才能触发生成压力触摸手势,如果施加的压力的压力值太小无法进行压力触摸操作,如果施加的压力的压力值太大可能会对损坏触摸屏,因此目前要解决的问题是如何提示用户在触摸屏上施加的压力值,以便对智能设备进行相关控制。
发明内容
本发明实施例所要解决的技术问题在于,提供一种显示控制方法。可提示用户在触摸屏上施加的压力值,方便对智能设备进行相关控制。
为了解决上述技术问题,本发明实施例提供了一种显示控制方法,包括:
终端检测到触摸屏上发生触摸动作时,可通过触摸屏下方设置的压力传感器周期性的检测触摸动作的压力值,如果触摸动作为单点触摸动作时,只测量1个触摸点的压力值,如果触摸动作是多点触摸动作时,测量多个触摸点的压力值,对测量到的多个压力值取平均值,将平均值作为最终的压力值。终端上存储有预先设置的颜色映射信息,颜色映射信息表示多个压力值区间与颜色显示参数的关联关系,颜色显示参数表示显示屏上显示的颜色的相关参数,颜色显示参数可以表示不同颜色空间,例如:亮度、色度、灰度。终端根据测量得到的压力值确定位于预设的多个压力值区间中的哪个压力值区间(即目标压力值区间),终端根据预设的颜色显示参数更新触摸屏上指定区域的颜色。指定区域可以是触摸动作对应的触摸点的位置,可以是整个触摸屏,也可以是触摸 屏的边框或其他位置。
其中,所述检测到触摸屏上发生触摸动作时,周期性的测量所述触摸动作的压力值之前,还包括:
终端设置所述多个压力值区间,多个压力值区间不互相重叠,且多个压力值区间中的最大压力值小于压力传感器可测量的最大压力值。压力值区间的数量不作限制,例如可以为2个、3个或4个。每个压力值区间的长度可相等,也可以不相等,例如呈等步长递增。终端为所述多个压力值区间各自关联一个不同的颜色显示参数后生成所述颜色映射信息,不同的压力值区间对应不同的颜色显示参数。
其中,颜色显示参数包括色调、饱和度和亮度中的一种或多种。
其中,所述多个压力值区间对应不同的色调,以及所述多个压力值区间对应相同的饱和度和亮度。
所述多个压力值区间对应相同的色调和亮度,以及所述多个压力值区间对应不同的饱和度;或
所述多个压力值区间对应相同的色调和饱和度,以及所述多个压力值区间对应不同的亮度。
其中,所述根据所述颜色显示参数更新所述触摸屏上指定区域的颜色包括:
确定所述触摸动作对应的触摸点;
将以所述触摸点为中心和预设长度为半径形成的圆作为所述指定区域;
根据所述颜色显示参数更新所述指定区域的颜色。
相应地,本发明实施例还提供了一种终端,包括:
测量模块,用于检测到触摸屏上发生触摸动作时,周期性的测量所述触摸动作的压力值;
确定模块,从预设的多个压力值区间中确定所述压力值所在的目标压力值区间;
查询模块,用于根据预设的颜色映射信息查询与所述目标压力值区间关联的颜色显示参数;
更新模块,用于根据所述颜色显示参数更新所述触摸屏上指定区域的颜色。
其中,终端还包括:
设置模块,用于设置所述多个压力值区间;
关联模块,用于为所述多个压力值区间各自关联一个不同的颜色显示参数后生成所述颜色映射信息。
其中,颜色显示参数包括色调、饱和度和亮度中的一种或多种。
其中,所述多个压力值区间对应不同的色调,以及所述多个压力值区间对应相同的饱和度和亮度;或
所述多个压力值区间对应相同的色调和亮度,以及所述多个压力值区间对应不同的饱和度;或
所述多个压力值区间对应相同的色调和饱和度,以及所述多个压力值区间对应不同的亮度。
其中,所述更新模块具体用于:
确定所述触摸动作对应的触摸点;
将以所述触摸点为中心和预设长度为半径形成的圆作为所述指定区域;
根据所述颜色显示参数更新所述指定区域的颜色。
实施本发明实施例,具有如下有益效果:
通过周期性的测量触摸动作的压力值,确定压力值所在的目标压力值区间,以及确定目标压力区间关联的颜色显示参数,根据颜色显示参数更新触摸屏上指定区域的颜色,压力值在不同的压力值区间时,指定区域上显示不同的颜色,终端可以通过指定区域上颜色的变化来提示用户当前施加的大小,便于用户操作。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明的一种显示控制方法的流程示意图;
图2是本发明一种显示控制方法的又一流程示意图;
图3是用户界面示意图;
图4a是本发明实施例提供的一种终端的结构示意图;
图4b是本发明实施例提供的一种终端的另一结构示意图;
图5是本发明实施例提供的一种终端的另一结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
参见图1,图1是本发明实施例提供的一种显示控制方法的流程示意图,在本发明实施例中,所述方法包括:
S101、检测到触摸屏上发生触摸动作时,周期性的测量所述触摸动作的压力值。
具体的,本实施例的触摸屏具有触摸检测和显示的功能,终端可通过检测触摸屏上电流变化值在确定触摸屏上发生触摸动作,触摸动作可以是单点触摸动作,也可以是多点触摸动作。终端可通过设置在触摸屏下方的压力传感器周期性的来测量触摸动作的压力值,测量周期可根据需要设置,例如检测周期为1S。当触摸动作为多点触摸动作时,终端可分别获取多个触摸点对应的压力值,将测量得到的多个压力值取平均值后得到最终的压力值。
S102、从预设的多个压力值区间中确定所述压力值所在的目标压力值区间。
具体的,终端预先存储有多个压力值区间,多个压力值区间互不重合,终端确定S101测量得的压力值,从预设的多个压力值区间中确定该压力值所在的目标压力值区间,目标压力值区间为多个压力值区间中的一个。
S103、根据预设的颜色映射信息查询与所述目标压力值区间关联的颜色显示参数。
具体的,终端存储有预设设置的颜色信息信息,颜色映射信息表示多个压力值区间与颜色显示参数的关联关系,每个压力值区间关联一个不同的颜色显示参数。终端根据预设的颜色映射信息查询与目标压力值区间关联的颜色显示 参数。颜色显示参数表示颜色的特征,例如亮度、灰度、色调等。
S104、根据颜色显示参数更新所述触摸屏上指定区域的颜色。
具体的,触摸屏上施加压力之前,触摸屏上根据现有显示方法显示用户界面。触摸屏上施加压力时,终端根据预设颜色显示参数更新触摸屏上指定区域的颜色。例如,指定区域为触摸屏的边缘、状态栏上指定位置、或触摸点的位置等。
通过上述实施例,通过周期性的测量触摸动作的压力值,确定压力值所在的目标压力值区间,以及确定目标压力区间关联的颜色显示参数,根据颜色显示参数更新触摸屏上指定区域的颜色,压力值在不同的压力值区间时,指定区域上显示不同的颜色,终端可以通过指定区域上颜色的变化来提示用户当前施加的大小,便于用户操作。
参见图2,为本发明实施例提供的一种显示控制方法的又一流程示意图,在本发明实施例中,所述方法包括:
S201、设置多个压力值区间。
具体的,终端根据压力传感器的检测范围预设设置多个压力值区间,各个压力值区间不相互重合,各个压力值区间的长度可相等,也可以不相等。
例如,终端预设设置的4个压力值区间,压力值区间1为(0,0.,4],压力值区间2为(0.4,0.6],压力值区间3为(0.6,1],压力值区间4(1,+∞)。
S202、为所述多个压力值区间各自关联一个不同的颜色显示参数后生成颜色映射信息。
具体的,终端为多个压力值区间分别关联一个不同的颜色显示参数后生成颜色映射信息。
可选的,颜色显示参数表示RGB颜色空间中的颜色的相关参数,颜色显示参数包括色调、饱和度和亮度中的一种或多种。在本发明的一些实施例中,颜色显示参数还可以是其他颜色空间中的颜色的相关参数,例如:CMY、HSV、HSI中的颜色的相关参数。
可选的,所述多个压力值区间对应不同的色调,以及所述多个压力值区间对应相同的饱和度和亮度。压力值区间区间对应的颜色显示参数颜色根据色调的波长进行排列,数值小的压力值区间对应的色调的波长越短,数值大的压力 值区间对应的波长越长。例如:颜色根据波长升序排列为:赤橙黄绿青蓝紫。
例如,续上例,压力值区间1对应的色调为赤,压力区间2对应的色调为橙,压力区间3对应的色调为黄,压力区间4对应的色调为绿。
可选的,所述多个压力值区间对应相同的色调和亮度,以及所述多个压力值区间对应不同的饱和度,数值小的压力值区间饱和度越小,数值大的压力值区间饱和度越大。
可选的,所述多个压力值区间对应相同的色调和饱和度,以及所述多个压力值区间对应不同的亮度,数值越小的数值区间亮度越小,数字越大的数字区间亮度越大。
S203、检测到触摸屏上发生触摸动作时,周期性的测量所述触摸动作的压力值。
具体的,本实施例的触摸屏具有触摸检测和显示的功能,终端可通过检测触摸屏上电流变化值在确定触摸屏上发生触摸动作,触摸动作可以是单点触摸动作,也可以是多点触摸动作。终端可通过设置在触摸屏下方的压力传感器周期性的来测量触摸动作的压力值,测量周期可根据需要设置,例如检测周期为1S。当触摸动作为多点触摸动作时,终端可分别获取多个触摸点对应的压力值,将测量得到的多个压力值取平均值后得到最终的压力值。
例如,对于多点触摸动作,触摸点为3个,终端检测到3个触摸点的压力值的平均压力值为0.5。
S204、从预设的多个压力值区间中确定所述压力值所在的目标压力值区间。
具体的,终端预先存储有多个压力值区间,多个压力值区间互不重合,终端确定S101测量得的压力值,从预设的多个压力值区间中确定该压力值所在的目标压力值区间,目标压力值区间为多个压力值区间中的一个。
例如,根据上述的例子,测量得到的压力值为0.5,终端确定压力值位于压力值区间2,则压力值区间2为目标压力值区间。
S205、根据预设的颜色映射信息查询与所述目标压力值区间关联的颜色显示参数。
终端存储有预设设置的颜色信息信息,颜色映射信息表示多个压力值区间与颜色显示参数的关联关系,每个压力值区间关联一个不同的颜色显示参数。 终端根据预设的颜色映射信息查询与目标压力值区间关联的颜色显示参数。颜色显示参数表示颜色的特征,例如亮度、灰度、色调等。
根据上述的例子,终端根据颜色映射信息确定压力值区间2关联的颜色显示参数为色调橙、饱和度255,亮度255。
S206、确定所述触摸动作对应的触摸点。
S207、将所述触摸点为中心和预设长度为半径形成的圆作为所述指定区域。
S208、根据所述颜色显示参数更新所述指定区域的颜色。
具体的,参见图3所示,终端的用户界面示意图,用户32在触摸屏30上执行单点触摸动作,终端确定触摸动作的触摸点,以触摸点为中心点和预设长度为半径形成的圆31为指定区域,终端在指定区域根据查询到的颜色显示参数更新圆31的颜色。
通过上述实施例,通过周期性的测量触摸动作的压力值,确定压力值所在的目标压力值区间,以及确定目标压力区间关联的颜色显示参数,根据颜色显示参数更新触摸屏上指定区域的颜色,压力值在不同的压力值区间时,指定区域上显示不同的颜色,终端可以通过指定区域上颜色的变化来提示用户当前施加的大小,便于用户操作。
参见图4a,为本发明实施例提供的一种终端的结构示意图,本发明实施例的终端用于执行图1中的一种显示方法,所涉及的术语和过程可参照图1实施例的描述。终端4包括:测量模块401、确定模块402、查询模块403和更新模块404。
测量模块401,用于检测到触摸屏上发生触摸动作时,周期性的测量所述触摸动作的压力值。
确定模块402,从预设的多个压力值区间中确定所述压力值所在的目标压力值区间。
查询模块403,用于根据预设的颜色映射信息查询与所述目标压力值区间关联的颜色显示参数。
更新模块404,用于根据所述颜色显示参数更新所述触摸屏上指定区域的颜色。
本发明实施例和方法实施例一基于同一构思,其带来的技术效果也相同,具体过程可参照方法实施例一的描述,此处不再赘述。
参见图4b,为本发明实施例提供的一种终端的另一结构示意图,在本发明实施例中,终端4除包括测量模块401、确定模块402、查询模块403和更新模块404之外,还包括设置模块405和关联模块406。
设置模块405,用于设置所述多个压力值区间。
关联模块406,用于为所述多个压力值区间各自关联一个不同的颜色显示参数后生成所述颜色映射信息。
可选的,颜色显示参数包括色调、饱和度和亮度中的一种或多种。
可选的,所述多个压力值区间对应不同的色调,以及所述多个压力值区间对应相同的饱和度和亮度;或
所述多个压力值区间对应相同的色调和亮度,以及所述多个压力值区间对应不同的饱和度;或
所述多个压力值区间对应相同的色调和饱和度,以及所述多个压力值区间对应不同的亮度。
可选的,更新模块404具体用于:
确定所述触摸动作对应的触摸点;
将以所述触摸点为中心和预设长度为半径形成的圆作为所述指定区域;
根据所述颜色显示参数更新所述指定区域的颜色。
本发明实施例和方法实施例二基于同一构思,其带来的技术效果也相同,具体过程可参照方法实施例二的描述,此处不再赘述。
参见图5,为本发明实施例提供的一种终端的另一结构示意图,在本发明实施例中,终端5包括处理器501、存储器502和收发器503。收发器503用于与外部设备之间收发数据。终端5中的处理器501的数量可以是一个或多个。本发明的一些实施例中,处理器501、存储器502和收发器503可通过总线系统或其他方式连接。终端5可以用于执行图1所示的方法。关于本实施例涉及的术语的含义以及举例,可以参考图1对应的实施例。此处不再赘述。
其中,存储器502中存储程序代码。处理器501用于调用存储器502中存 储的程序代码,用于执行以下操作:
检测到触摸屏上发生触摸动作时,周期性的测量所述触摸动作的压力值;
从预设的多个压力值区间中确定所述压力值所在的目标压力值区间;
根据预设的颜色映射信息查询与所述目标压力值区间关联的颜色显示参数;
根据所述颜色显示参数更新所述触摸屏上指定区域的颜色。
在本申请的一种可能的实施方式中,处理器501执行所述检测到触摸屏上发生触摸动作时,周期性的测量所述触摸动作的压力值之前,还用于执行:
设置所述多个压力值区间;
为所述多个压力值区间各自关联一个不同的颜色显示参数后生成所述颜色映射信息。
在本申请的一种可能的实施方式中,颜色显示参数包括色调、饱和度和亮度中的一种或多种。
在本申请的一种可能的实施方式中,所述多个压力值区间对应不同的色调,以及所述多个压力值区间对应相同的饱和度和亮度;或
所述多个压力值区间对应相同的色调和亮度,以及所述多个压力值区间对应不同的饱和度;或
所述多个压力值区间对应相同的色调和饱和度,以及所述多个压力值区间对应不同的亮度。
在本申请的一种可能的实施方式中,处理器501执行所述根据所述颜色显示参数更新所述触摸屏上指定区域的颜色包括:
确定所述触摸动作对应的触摸点;
将以所述触摸点为中心和预设长度为半径形成的圆作为所述指定区域;
根据所述颜色显示参数更新所述指定区域的颜色。
本发明实施例提供一种终端,该终端包括但不限于搭载
Figure PCTCN2017071538-appb-000001
Figure PCTCN2017071538-appb-000002
或者其它操作系统的终端,诸如移动电话。也可以是其它终端,诸如具有触敏表面(例如,触摸屏显示器和/或触控板)的膝上型计算机或平板电脑或台式计算机。
在下面的讨论中,介绍了一种包括显示器和触敏表面的终端。然而应当理解,终端可以包括一个或多个其他物理用户接口设备,诸如物理键盘、鼠标和 /或操作杆。
终端通常支持多种应用程序,诸如以下中的一种或多种:画图应用程序、呈现应用程序、文字处理应用程序、网页创建应用程序、盘编辑应用程序、电子表格应用程序、游戏应用程序、电话应用程序、视频会议应用程序、电子邮件应用程序、即时消息应用程序、锻炼支持应用程序、相片管理应用程序、数字相机应用程序、数字视频摄像机应用程序、网络浏览应用程序、数字音乐播放器应用程序、和/或数字视频播放器应用程序。
可在终端上执行的各种应用程序可使用至少一个共用的物理用户接口设备,诸如触敏表面。触敏表面的一种或多种功能以及显示在终端上的相应信息可从一种应用程序调整和/或变化至下一种应用程序和/或在相应应用程序内被调整和/或变化。这样,终端的共用物理架构(诸如触敏表面)可利用对于用户而言直观清楚的用户界面来支持各种应用程序。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。

Claims (10)

  1. 一种显示控制方法,其特征在于,包括:
    检测到触摸屏上发生触摸动作时,周期性的测量所述触摸动作的压力值;
    从预设的多个压力值区间中确定所述压力值所在的目标压力值区间;
    根据预设的颜色映射信息查询与所述目标压力值区间关联的颜色显示参数;
    根据所述颜色显示参数更新所述触摸屏上指定区域的颜色。
  2. 如权利要求1所述的方法,其特征在于,所述检测到触摸屏上发生触摸动作时,周期性的测量所述触摸动作的压力值之前,还包括:
    设置所述多个压力值区间;
    为所述多个压力值区间各自关联一个不同的颜色显示参数后生成所述颜色映射信息。
  3. 如权利要求2所述的方法,其特征在于,颜色显示参数包括色调、饱和度和亮度中的一种或多种。
  4. 如权利要求2所述的方法,其特征在于,所述多个压力值区间对应不同的色调,以及所述多个压力值区间对应相同的饱和度和亮度;或
    所述多个压力值区间对应相同的色调和亮度,以及所述多个压力值区间对应不同的饱和度;或
    所述多个压力值区间对应相同的色调和饱和度,以及所述多个压力值区间对应不同的亮度。
  5. 如权利要求1所述的方法,其特征在于,所述根据所述颜色显示参数更新所述触摸屏上指定区域的颜色包括:
    确定所述触摸动作对应的触摸点;
    将以所述触摸点为中心和预设长度为半径形成的圆作为所述指定区域;
    根据所述颜色显示参数更新所述指定区域的颜色。
  6. 一种终端,其特征在于,包括:
    测量模块,用于检测到触摸屏上发生触摸动作时,周期性的测量所述触摸动作的压力值;
    确定模块,从预设的多个压力值区间中确定所述压力值所在的目标压力值区间;
    查询模块,用于根据预设的颜色映射信息查询与所述目标压力值区间关联的颜色显示参数;
    更新模块,用于根据所述颜色显示参数更新所述触摸屏上指定区域的颜色。
  7. 如权利要求6所述的终端,其特征在于,还包括:
    设置模块,用于设置所述多个压力值区间;
    关联模块,用于为所述多个压力值区间各自关联一个不同的颜色显示参数后生成所述颜色映射信息。
  8. 如权利要求7所述的终端,其特征在于,颜色显示参数包括色调、饱和度和亮度中的一种或多种。
  9. 如权利要求7所述的终端,其特征在于,所述多个压力值区间对应不同的色调,以及所述多个压力值区间对应相同的饱和度和亮度;或
    所述多个压力值区间对应相同的色调和亮度,以及所述多个压力值区间对应不同的饱和度;或
    所述多个压力值区间对应相同的色调和饱和度,以及所述多个压力值区间对应不同的亮度。
  10. 如权利要求6所述的终端,其特征在于,所述更新模块具体用于:
    确定所述触摸动作对应的触摸点;
    将以所述触摸点为中心和预设长度为半径形成的圆作为所述指定区域;
    根据所述颜色显示参数更新所述指定区域的颜色。
PCT/CN2017/071538 2017-01-18 2017-01-18 一种显示控制方法和终端 WO2018132974A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/071538 WO2018132974A1 (zh) 2017-01-18 2017-01-18 一种显示控制方法和终端

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/071538 WO2018132974A1 (zh) 2017-01-18 2017-01-18 一种显示控制方法和终端

Publications (1)

Publication Number Publication Date
WO2018132974A1 true WO2018132974A1 (zh) 2018-07-26

Family

ID=62907586

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/071538 WO2018132974A1 (zh) 2017-01-18 2017-01-18 一种显示控制方法和终端

Country Status (1)

Country Link
WO (1) WO2018132974A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0595746A1 (en) * 1992-10-29 1994-05-04 International Business Machines Corporation Method and system for input device pressure indication in a data processing system
CN101213508A (zh) * 2004-08-02 2008-07-02 皇家飞利浦电子股份有限公司 具有与压力相关的视觉反馈的触摸屏
CN101226445A (zh) * 2008-02-04 2008-07-23 炬力集成电路设计有限公司 一种通过触摸屏进行输入的方法和装置
CN105159500A (zh) * 2015-09-14 2015-12-16 广东欧珀移动通信有限公司 触摸屏的压力显示方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0595746A1 (en) * 1992-10-29 1994-05-04 International Business Machines Corporation Method and system for input device pressure indication in a data processing system
CN101213508A (zh) * 2004-08-02 2008-07-02 皇家飞利浦电子股份有限公司 具有与压力相关的视觉反馈的触摸屏
CN101226445A (zh) * 2008-02-04 2008-07-23 炬力集成电路设计有限公司 一种通过触摸屏进行输入的方法和装置
CN105159500A (zh) * 2015-09-14 2015-12-16 广东欧珀移动通信有限公司 触摸屏的压力显示方法及装置

Similar Documents

Publication Publication Date Title
US9607421B2 (en) Displaying particle effect on screen of electronic device
US20120313962A1 (en) Electronic device and method for generating graphical user interface thereof
WO2018095128A1 (zh) 一种显示屏的显示控制方法及相关产品
CN106775425B (zh) 一种终端及其功能按键显示方法
CN107390976B (zh) 图标显示处理方法及电子设备
US9582905B2 (en) Adverbial expression based color image operations
CN105159500B (zh) 触摸屏的压力显示方法及装置
CN103092551B (zh) 调整显示效果的方法及装置
JP2016051462A (ja) データ処理システム及びデータ処理方法
CN110377215B (zh) 模型展示方法、装置及终端设备
KR101421369B1 (ko) 터치락 레이어를 설정하는 단말기 및 방법
CN110618852B (zh) 视图处理方法、视图处理装置及终端设备
WO2022127804A1 (zh) 应用图标的管理方法及装置
KR20140141305A (ko) 화면분할이 가능한 이동통신단말기 및 그 제어방법
WO2022082960A1 (zh) 局部显示区补偿值确定方法、装置、存储介质及终端设备
WO2017133244A1 (zh) 一种操作触控方法和终端
WO2019024495A1 (zh) 应用主题的推送终端、方法及计算机可读存储介质
WO2018132974A1 (zh) 一种显示控制方法和终端
CN106557223B (zh) 移动终端快捷操作方法及装置
WO2021092806A1 (zh) 一种屏幕参数调整方法、装置及终端设备
US20150193950A1 (en) Simulating color diffusion in a graphical display
WO2020010917A1 (zh) 分屏显示的开启方法、装置、存储介质及电子设备
WO2016188203A1 (zh) 一种字符输入方法、装置及计算机存储介质
US10558357B2 (en) Method for responding to touch operation and electronic device
WO2018132947A1 (zh) 一种显示控制方法和终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17892304

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 141119)

122 Ep: pct application non-entry in european phase

Ref document number: 17892304

Country of ref document: EP

Kind code of ref document: A1