WO2018098930A1 - 显示图像的方法、装置和终端设备 - Google Patents

显示图像的方法、装置和终端设备 Download PDF

Info

Publication number
WO2018098930A1
WO2018098930A1 PCT/CN2017/076881 CN2017076881W WO2018098930A1 WO 2018098930 A1 WO2018098930 A1 WO 2018098930A1 CN 2017076881 W CN2017076881 W CN 2017076881W WO 2018098930 A1 WO2018098930 A1 WO 2018098930A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
operation information
user operation
user
memory
Prior art date
Application number
PCT/CN2017/076881
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 EP17876988.1A priority Critical patent/EP3540615A4/en
Priority to US16/465,285 priority patent/US11081088B2/en
Priority to CN201780005537.9A priority patent/CN108475284B/zh
Publication of WO2018098930A1 publication Critical patent/WO2018098930A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/34Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators for rolling or scrolling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/54Browsing; Visualisation therefor
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0464Positioning
    • G09G2340/0471Vertical positioning
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2354/00Aspects of interface with display user

Definitions

  • the present application relates to the field of electronic devices and, more particularly, to a method and apparatus for displaying images in the field of electronic devices.
  • Terminal Equipment or User Equipment (UE) usually has an image (eg, window content) display function. And, by detecting user operation information (eg, a slide operation), an image corresponding to the user operation information is determined based on the detected user operation information, and the image is displayed in the corresponding window.
  • image eg, window content
  • the present application provides a method and apparatus for displaying an image capable of realizing a quick response of displaying an image within a corresponding window when the user's operation information is detected.
  • a method of displaying an image comprising: generating and displaying a first image according to first user operation information; saving the first image to a memory; and detecting the second user operation information, Determining, according to the second user operation information, a first image corresponding to the second user operation information from the memory, where the first user operation information and the second user operation information are both used to indicate a pair The first image is displayed; the first image is displayed.
  • the method for displaying an image provided by the present application is saved by the first image generated according to the first user operation information, and the generated first image is saved to the memory.
  • the method may be The second user operation information determines a first image corresponding to the second user information from the memory, and further intercepts the first image to be displayed from the memory (ie, does not need to generate the first image again) ) and display the first image. Thereby achieving a quick response to display images within the corresponding window and improving the user experience.
  • the determining, according to the second user operation information, determining, in the memory, a first image corresponding to the second user operation information including Determining, according to the second user operation information, a first estimated storage location; and when the first estimated storage location belongs to a storage location range of the memory, determining, according to the second user operation information, from the memory The first image.
  • the method for displaying an image provided by the present application has a corresponding relationship between the operation information of the user and the image to be displayed, so that when the terminal device detects the operation information of the user, the method can determine the operation information according to the user.
  • the storage location of the image to be displayed corresponding to the user's operation information is stored in the memory, and then the image to be displayed corresponding to the user operation information is determined from the memory according to the storage location, and the image to be displayed is intercepted and displayed from the memory. (ie, there is no need to generate the first image again).
  • the display in the corresponding window A quick response like that improves the user experience.
  • the memory includes an image that is viewed by a user in a first time period, and includes an image that the user browsed in the second time period.
  • the second time period is before the first time period.
  • the stored image includes the image that the user is currently browsing, and the historical display image that the user has previously browsed, so that the display images saved in the memory are continuous, and
  • the terminal device may determine an image to be displayed corresponding to the user operation information from among consecutive display images saved in the memory according to the operation information of the user. Thereby achieving a quick response to display images within the corresponding window and improving the user experience.
  • the image corresponding to the first time period is an image that the user is currently browsing.
  • the method further includes: prohibiting generating an image based on the second user operation information.
  • the first image corresponding to the second user operation information that has been displayed when the second user operation information is detected again, the first image is prohibited from being generated based on the second user operation information, that is, directly saved from the memory.
  • the image corresponding to the second user operation information is intercepted and displayed, thereby reducing the delay of human-computer interaction and improving the user experience.
  • the user operation information includes information of a sliding direction of the sliding operation and information of a sliding distance of the sliding operation.
  • an apparatus for displaying an image comprising: a processing unit, generating and displaying a first image according to the first user operation information; the processing unit is further configured to: save the first image to The processing unit is further configured to: when detecting the second user operation information, determine, according to the second user operation information, a first image corresponding to the second user operation information from the memory, The first user operation information and the second user operation information are both used to indicate display of the first image; and a display unit is configured to display the first image.
  • the processing unit is further configured to: determine, according to the second user operation information, a first estimated storage location; the processing unit is further configured to: when When the first estimated storage location belongs to the storage location range of the memory, the first image is determined from the memory according to the second user operation information.
  • the terminal device When the terminal device detects the operation information of the user, the terminal device determines that the image to be displayed corresponding to the operation information of the user is in the memory according to the operation information of the user. a storage location in the memory, and further determining, according to the storage location, an image to be displayed corresponding to the user operation information, and intercepting and displaying the image to be displayed from the memory (ie, no need to perform the first image again) generate). Thereby achieving a quick response to display images within the corresponding window and improving the user experience.
  • the An image that has been viewed by the user during the first time period is included, and includes an image that the user viewed in the second time period, the second time period being before the first time period.
  • the user operation information includes information of a sliding direction of the sliding operation and information of a sliding distance of the sliding operation.
  • the processor is further configured to: determine, according to the second user operation information, a first estimated storage location; the processor is further configured to: when When the first estimated storage location belongs to the storage location range of the memory, the first image is determined from the memory according to the second user operation information.
  • the image corresponding to the first time period is an image that the user is currently browsing.
  • the processor is further configured to: prohibit generating an image based on the second user operation information.
  • the first image corresponding to the second user operation information that has been displayed when the second user operation information is detected again, the first image is prohibited from being generated based on the second user operation information, that is, directly saved from the memory.
  • the image corresponding to the second user operation information is intercepted and displayed, thereby reducing the delay of human-computer interaction and improving the user experience.
  • the user operation information includes information of a sliding direction of the sliding operation and information of a sliding distance of the sliding operation.
  • a computer storage medium stores program code for indicating that any of the optional methods for displaying an image of the first aspect or the first aspect described above is performed. The action performed.
  • FIG. 1 is a schematic structural diagram of a display module of a terminal device that displays an image according to the present application.
  • FIG. 2 is a schematic flow chart of a method of displaying an image according to the present application.
  • FIG. 3 is a schematic diagram of a storage structure of image data in a cache unit according to the present application.
  • Figure 4 shows a schematic diagram of an interaction state between a user and a mobile device.
  • FIG. 5 is a schematic block diagram of an apparatus for displaying an image according to the present application.
  • FIG. 6 is a schematic configuration diagram of a terminal device that displays an image according to the present application.
  • the technical solution of the present application can be applied to various terminal devices (also referred to as user devices) that support image display, for example, mobile phone devices, wristbands, tablets, notebook computers, ultra-mobile personal computers (Ultra-Mobile Personal Computer, UMPC), Personal Digital Assistant (PDA) device, handheld device with wireless communication function, computing device or other processing device connected to a wireless modem, in-vehicle device, wearable device, etc., and are not limited to communication terminals.
  • terminal devices also referred to as user devices
  • PDA Personal Digital Assistant
  • FIG. 1 shows a schematic structural diagram of a display module of a terminal device to which the present application is applied.
  • the display module may include components such as an input unit 110, a display synthesizer 120, a display unit 130, and the like.
  • FIG. 1 the structural diagram of the display module shown in FIG. 1 is merely an example and not a limitation, and the display module may further include more or less components than the illustration, or different component arrangements.
  • the input unit 110 can be configured to receive input numeric or character information and to generate key signals related to user settings and function control of the terminal device.
  • the input unit 110 may include a touch panel 111 and other input devices. 112.
  • the touch panel 111 also referred to as a touch screen, can collect touch operations on the user or accessories (such as the user using a finger, a stylus, or the like on the touch panel 111 or near the touch panel 111. Operation), and drive the corresponding connecting device according to a preset program.
  • the touch panel 111 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 110 may also include other input devices 112.
  • other input devices 112 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the visual output external display panel 131 that can be recognized by the human eye can be used as a display device in the present application for displaying text information or image information.
  • the touch panel 111 and the display panel 131 are used as two independent components to implement the input and output functions of the terminal device in FIG. 1, in some embodiments, the touch panel 111 may be integrated with the display panel 131. And realize the input and output functions of the terminal device.
  • the terminal device when the user operates on the terminal device (for example, the operation is used to trigger the terminal device to display the contact information of the first contact to the ninth contact through the display panel 131 in the display unit 130), the terminal device needs The display content triggered by the user operation is drawn, and then displayed by the display panel 131 in the display unit 130 of the terminal device, when the user performs the same operation again on the terminal device (for example, the operation is also used to trigger the terminal device to display through the display.
  • the display panel 131 in the unit 130 displays the contact information of the first contact to the ninth contact
  • the terminal device still needs to re-render the same display content, and performs the display panel 131 in the display unit 130. display. Therefore, since the terminal device needs to repeatedly draw the same display content, the response speed of the terminal device to the user operation is slow.
  • the present application proposes a technical solution.
  • the terminal device By storing the display image browsed by the user, when the user triggers the terminal device to display the same display image again, the terminal device does not need to store the same display image, and directly intercepts the image to be displayed from the stored image. And display through the display.
  • the technical solution provided by the present application can support the problem that the response speed of the terminal device is slow to the user operation.
  • the technical solution of the present application is described in detail below.
  • the technical solution of the present application saves the drawn image (for example, saves the first image to a memory), so that when the user subsequently needs to browse the same content again (for example)
  • the display image does not need to be drawn again, but the image to be displayed is directly intercepted from the memory, thereby realizing quick response of displaying the image in the corresponding window.
  • improve the user experience For example, saves the first image to a memory
  • the sliding operation may be the user's finger on the mobile phone screen (eg, the terminal device)
  • the example of the touch panel 111 of the input unit 110 slides up.
  • the mobile device detects the sliding operation on the screen of the mobile phone, it can be saved from the memory according to the information of the sliding direction of the sliding operation and the sliding distance of the sliding operation.
  • the first image corresponding to the second user operation information is determined in the image, and is displayed by a display screen of the mobile phone device (for example, an example of the display panel 131 in the display unit 130 of the terminal device).
  • determining, according to the second user operation information, the first image corresponding to the second user operation information in the memory comprising: determining, according to the second user operation information, a first estimated storage location; When the estimated storage location belongs to the storage location range of the memory, the first image is determined from the memory based on the second user operation information.
  • the memory includes an image that the user browses in the first time period, and includes an image that the user browses in the second time period, and the second time period is before or after the first time period.
  • the image corresponding to the first time period is an image that the user is currently browsing.
  • the cache unit 123 stores the content corresponding to the content browsed after the user opens an application on the mobile device.
  • Image data For example, the user opens the address book on the mobile phone device for the first time.
  • the cache unit 123 caches the image data that the user has browsed.
  • the image screen currently displayed on the display screen of the mobile phone device is the phone number of the first contact to the ninth contact, and the image is drawn by the application process corresponding to the address book, and then displayed by the display synthesizer 120.
  • the display panel 131 in the unit 130 is displayed. After the image picture is first drawn and displayed, the image data is buffered into the buffer unit 123.
  • the sliding operation information of the user is first acquired by the reading module 121 in the display synthesizer 120 in the mobile phone device, and the sliding operation information of the user is obtained from the reading module 121 by the window position calculating module 122 in the display synthesizer 120.
  • the window position calculation module 122 determines that the sliding information is slid downward by 0.5 cm, and further determines, according to the sliding operation information, the image data corresponding to the sliding operation information in the buffer unit by combining the parameter information of the display screen of the mobile phone device.
  • the storage location in 123 is the 5th byte to the 24th byte, and according to the storage location, it is determined that the storage location does not exceed the maximum storage address in the cache unit 123, and finally the cache location is in the cache unit 123.
  • the corresponding graphic data is intercepted (ie, the image corresponding to the 4th contact to the 12th contact) and displayed through the display panel 131 in the display unit 130.
  • the window position calculation module 122 determines the storage location of the corresponding image data of the slide operation information of the user in the cache unit, and determines, according to the storage location, that the storage location does not exceed the maximum storage address in the cache unit 123.
  • the graphic data corresponding to the storage location in the buffer unit 123 is displayed through the display panel 131 in the display unit 130.
  • the application process corresponding to the address book is prohibited from rendering the image content corresponding to the sliding operation information.
  • the user when the user needs to browse the phone number of the 15th contact, the user slides up on the display screen of the mobile phone device by the finger. For example, the user slides up 1 cm on the display screen of the mobile device by a finger.
  • the sliding operation information is first acquired by the reading module 121 in the display synthesizer 120 in the mobile phone device, and the sliding operation information of the user is received from the reading module 121 by the window position calculating module 122 in the display synthesizer 120.
  • the window position calculation module 122 determines that the sliding information is slid downward by 1 cm, and further determines, according to the sliding operation information, the image data corresponding to the sliding operation information in the buffer unit by combining the parameter information of the display screen of the mobile phone device.
  • the storage location in 123 is the 10th byte to the 29th byte. For example, only the image data corresponding to the 1st byte to the 25th byte is currently buffered in the cache unit.
  • the technical solution of the present application is described by taking the terminal device as a mobile phone device as an example.
  • the user When the user opens a Word document on a laptop to view an academic paper, the user can browse the contents of the Word document through other input devices 112 of the input unit 110 of the notebook computer (for example, a scrolling computer mouse).
  • other input devices 112 of the input unit 110 of the notebook computer for example, a scrolling computer mouse.
  • the user currently browses the text content of lines 1 to 20 of the academic document when the user needs to browse the contents of the academic documents of lines 20 to 40.
  • the user needs to scroll through the mouse of the laptop. Or drag the progress bar of the Word document downwards so that the content currently displayed in the Word document includes the contents of the academic documents in lines 20 to 40.
  • the cache unit 123 in the notebook caches the image data corresponding to the document content browsed by the user, so that when the user needs to browse the previously browsed document content again, the application process corresponding to the Word document is not required to be the image content again.
  • the drawing is performed, and the already buffered image data is directly displayed from the display unit 120 through the display panel 131 in the display unit 130 from the buffer unit 123.
  • the maximum storage address cached in the cache unit 123 is the 50th byte, that is, the image frame of the document content browsed by the user history is stored in the first byte to the 50th byte of the cache unit 123.
  • the progress bar of the user dragging the Word document is dragged down by 2 cm, and the user operation information is first acquired by the reading module 121 in the display synthesizer 120 in the notebook computer, and the sliding operation information of the user is displayed on the synthesizer.
  • the window position calculation module 122 in 120 is obtained from the reading module 121, and the window position calculation module 122 determines that the user operation information is moved downward by 2 cm for the progress bar, and further, according to the sliding operation information, through calculation, combined with the display of the notebook computer.
  • the parameter information of the screen determines that the storage location of the image data corresponding to the user operation information in the cache unit 123 is the 40th byte to the 60th byte, since only the first byte is currently cached in the cache unit.
  • Image data corresponding to the 50th byte At this time, the image content corresponding to the 51st to 60th bytes needs to be displayed after the application process corresponding to the Word document is displayed, and the image data corresponding to the 51st to 60th bytes displayed after the drawing is stored in the cache. In unit 123.
  • the window position calculation module 122 may determine that the image data corresponding to the user operation information is the 20th byte in the cache unit 123 according to the user operation information. Image data stored to the 30th byte.
  • the user operation information enumerated above is only an exemplary description, and the present invention is not limited thereto.
  • the user operation information may also be a button pressing a button on the terminal device or tilting the terminal device at a certain angle with respect to a horizontal plane. The present invention does not limit this.
  • the terminal device can directly intercept the image to be displayed from the cache unit without The image is displayed after being drawn, so that a quick response of displaying an image in the corresponding window can be realized, and the user experience is improved.
  • the processing unit 310 is configured to generate and display the first image according to the first user operation information
  • the processing unit 310 is further configured to: when detecting the second user operation information, determine, according to the second user operation information, a first image corresponding to the second user operation information, the first user operation information, and the second user operation information.
  • the second user operation information is used to indicate that the first image is displayed;
  • the display unit 320 is configured to display the first image.
  • the memory includes an image that the user browses in the first time period, and includes an image that the user browses in the second time period, where the second time period is before the first time period.
  • processing unit 310 is further configured to:
  • the user operation information includes information of a sliding direction of the sliding operation and information of a sliding distance of the sliding operation.
  • the apparatus 300 for displaying an image according to the present application may correspond to an implementation body of the method 200 for displaying an image of the present application, and the units in the apparatus 300 for displaying an image and the other operations and/or functions described above For the sake of brevity, the corresponding processes of the method 200 in FIG. 2 are respectively omitted.
  • the terminal device can directly intercept the image to be displayed from the cache unit without The image is displayed after being drawn, so that a quick response of displaying an image in the corresponding window can be realized, and the user experience is improved.
  • FIG. 6 shows a schematic block diagram of a terminal device 400 according to the present application.
  • the terminal device 400 includes a processor 410, a display 420, and a memory 430.
  • the processor 410 is further configured to: when the second user operation information is detected, according to the second user operation information, Determining, in the memory, a first image corresponding to the second user operation information, the first user operation information and the second user operation information are both used to indicate that the first image is displayed;
  • Display 420 is for displaying the first image.
  • the processor 410 is further configured to:
  • Determining, in the memory, the first image corresponding to the second user operation information according to the second user operation information comprising: determining a first estimated storage location according to the second user operation information; and when the first estimated storage location When belonging to the storage location range of the memory, the first image is determined from the memory based on the second user operation information.
  • the processor 410 is further configured to:
  • the user operation information includes information of a sliding direction of the sliding operation and information of a sliding distance of the sliding operation.
  • the terminal device 400 may correspond to an implementation body of the method 200 for displaying an image of the present application, and each unit in the terminal device 400 and the other operations and/or functions described above are respectively implemented to implement the method in FIG. The corresponding process of 200 is not repeated here for brevity.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple On the network unit. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请提供了一种显示图像的方法和装置,该方法包括:根据第一用户操作信息生成并显示第一图像;将该第一图像保存至存储器;在检测到第二用户操作信息时,根据该第二用户操作信息,从该存储器中确定与该第二用户操作信息相对应的第一图像,该第一用户操作信息和该第二用户操作信息用于指示对该第一图像进行显示;显示该第一图像。通过对首次显示的图像进行缓存,使得当相同的用户操作信息触发该图像再次显示时,终端设备可以从缓存单元中直接截取需要显示的图像,而不需要对该图像进行绘制后再显示,从而可以实现在对应窗口内显示图像的快速响应,改善用户体验。

Description

显示图像的方法、装置和终端设备 技术领域
本申请涉及电子设备领域,并且更具体地,涉及电子设备领域中显示图像的方法和装置。
背景技术
伴随科技的发展,终端设备(Terminal Equipment),或者也称为用户设备(User Equipment,UE)通常具有图像(如,窗口内容)显示功能。并且,通过检测用户操作信息(如,滑动操作),根据检测到的用户操作信息,确定与该用户操作信息相对应的图像,并在对应窗口内显示该图像。
在现有技术中,在检测到用户的操作信息时,并且在确定与该用户操作信息相对应的图像之后,通过对确定的该图像进行绘制,最终将绘制得到的图像在对应窗口内显示。
然而,在现有技术中,由于需要对与用户操作信息相对应的图像进行绘制之后,才能对其进行显示,因此,会影响在对应窗口内显示图像的响应速度,影响用户体验。
因此,希望提供一种技术,在检测到用户的操作信息时,能够实现在对应窗口内显示图像的快速响应,从而改善用户体验。
发明内容
本申请提供了一种显示图像的方法和装置,能够在在检测到用户的操作信息时,实现在对应窗口内显示图像的快速响应。
第一方面,提供了一种显示图像的方法,该方法包括:根据第一用户操作信息生成并显示第一图像;将所述第一图像保存至存储器;在检测到第二用户操作信息时,根据所述第二用户操作信息,从所述存储器中确定与所述第二用户操作信息相对应的第一图像,所述第一用户操作信息和所述第二用户操作信息均用于指示对所述第一图像进行显示;显示所述第一图像。
因此,本申请提供的显示图像的方法,通过根据第一用户操作信息生成的第一图像进行保存,及将该生成的第一图像保存至存储器,在检测到第二用户操作信息时,可以根据该第二用户操作信息,从该存储器中确定与该第二用户信息相对应的第一图像,进而从该存储器中截取需要显示的该第一图像(即,无需对该第一图像再次进行生成),并对该第一图像进行显示。从而实现在对应窗口内显示图像的快速响应,改善用户体验。
结合第一方面,在第一方面的第一种实现方式中,所述根据所述第二用户操作信息,在所述存储器中确定与所述第二用户操作信息相对应的第一图像,包括:根据第二用户操作信息,确定第一估计存储位置;当所述第一估计存储位置属于所述存储器的存储位置范围时,根据所述第二用户操作信息,从所述存储器中确定所述第一图像。
因此,本申请提供的显示图像的方法,通过使用户的操作信息与该待显示图像之间具有对应关系,使得当终端设备检测到用户的操作信息时,可以根据该用户的操作信息,确定该用户的操作信息对应的待显示图像在存储器中的存储位置,进而根据该存储位置,从存储器中确定与该用户操作信息对应的待显示图像,并从存储器中对该待显示图像进行截取并显示(即,无需对该第一图像再次进行生成)。从而实现在对应窗口内显示图 像的快速响应,改善用户体验。
结合第一方面及其上述实现方式,在第一方面的第二种实现方式中,所述存储器中包括用户在第一时段浏览过的图像,且包括用户在第二时段浏览过的图像,所述第二时段位于所述第一时段之前。
通过对用户浏览过的图像进行存储,该存储的图像即包括用户当前正在浏览的图像,也包括用户之前浏览过的历史显示图像,使得存储器中保存的显示图像之间是连续的,并且使得当终端设备检测到用户的操作信息时,可以根据该用户的操作信息,从存储器中保存的连续的显示图像当中确定与该用户操作信息相对应的待显示图像。从而实现在对应窗口内显示图像的快速响应,改善用户体验。
结合第一方面及其上述实现方式,在第一方面的第三种实现方式中,所述第一时段对应的图像为用户当前正在浏览的图像。
结合第一方面及其上述实现方式,在第一方面的第四种实现方式中,所述方法还包括:禁止基于所述第二用户操作信息生成图像。
对于已经显示的与该第二用户操作信息相对应的第一图像,当再次检测到该第二用户操作信息时,禁止基于该第二用户操作信息生成该第一图像,即直接从存储器中保存的图像中截取与该第二用户操作信息对应的图像进行显示,从而降低人机交互的延迟,改善用户体验。
结合第一方面及其上述实现方式,在第一方面的第五种实现方式中,所述用户操作信息包括滑动操作的滑动方向的信息和滑动操作的滑动距离的信息。
第二方面,提供了一种显示图像的装置,所述装置包括:处理单元,根据第一用户操作信息生成并显示第一图像;所述处理单元还用于:将所述第一图像保存至存储器;所述处理单元还用于:在检测到第二用户操作信息时,根据所述第二用户操作信息,从所述存储器中确定与所述第二用户操作信息相对应的第一图像,所述第一用户操作信息和所述第二用户操作信息均用于指示对所述第一图像进行显示;显示单元,用于显示所述第一图像。
通过根据第一用户操作信息生成的第一图像进行保存,及将该生成的第一图像保存至存储器,在检测到第二用户操作信息时,可以根据该第二用户操作信息,从该存储器中确定与该第二用户信息相对应的第一图像,进而从该存储器中截取需要显示的该第一图像(即,无需对该第一图像再次进行生成),并对该第一图像进行显示。从而实现在对应窗口内显示图像的快速响应,改善用户体验。
结合第二方面,在第二方面的第一种实现方式中,所述处理单元还用于:根据第二用户操作信息,确定第一估计存储位置;所述处理单元还用于:当所述第一估计存储位置属于所述存储器的存储位置范围时,根据所述第二用户操作信息,从所述存储器中确定所述第一图像。
通过使用户的操作信息与该待显示图像之间具有对应关系,使得当终端设备检测到用户的操作信息时,可以根据该用户的操作信息,确定该用户的操作信息对应的待显示图像在存储器中的存储位置,进而根据该存储位置,从存储器中确定与该用户操作信息对应的待显示图像,并从存储器中对该待显示图像进行截取并显示(即,无需对该第一图像再次进行生成)。从而实现在对应窗口内显示图像的快速响应,改善用户体验。
结合第二方面及其上述实现方式,在第二方面的第二种实现方式中,所述存储器中 包括用户在第一时段浏览过的图像,且包括用户在第二时段浏览过的图像,所述第二时段位于所述第一时段之前。
通过对用户浏览过的图像进行存储,该存储的图像即包括用户当前正在浏览的图像,也包括用户之前浏览过的历史显示图像,使得存储器中保存的显示图像之间是连续的,并且使得当终端设备检测到用户的操作信息时,可以根据该用户的操作信息,从存储器中保存的连续的显示图像当中确定与该用户操作信息相对应的待显示图像。从而实现在对应窗口内显示图像的快速响应,改善用户体验。
结合第二方面及其上述实现方式,在第二方面的第三种实现方式中,所述第一时段对应的图像为用户当前正在浏览的图像。
结合第二方面及其上述实现方式,在第二方面的第四种实现方式中,所述处理单元还用于:禁止基于所述第二用户操作信息生成图像。
对于已经显示的与该第二用户操作信息相对应的第一图像,当再次检测到该第二用户操作信息时,禁止基于该第二用户操作信息生成该第一图像,即直接从存储器中保存的图像中截取与该第二用户操作信息对应的图像进行显示,从而降低人机交互的延迟,改善用户体验。
结合第二方面及其上述实现方式,在第二方面的第五种实现方式中,所述用户操作信息包括滑动操作的滑动方向的信息和滑动操作的滑动距离的信息。
第三方面,提供了一种显示图像的终端设备,该终端设备包括:存储器,处理器和显示器;所述存储器用于存储指令;所述处理器用于调用所述存储器中的指令执行以下步骤:所述处理器,根据第一用户操作信息生成并显示第一图像;所述处理器,还用于将所述第一图像保存至存储器;所述处理器,还用于在检测到第二用户操作信息时,根据所述第二用户操作信息,从所述存储器中确定与所述第二用户操作信息相对应的第一图像,所述第一用户操作信息和所述第二用户操作信息均用于指示对所述第一图像进行显示;所述显示器,用于显示所述第一图像。
通过根据第一用户操作信息生成的第一图像进行保存,及将该生成的第一图像保存至存储器,在检测到第二用户操作信息时,可以根据该第二用户操作信息,从该存储器中确定与该第二用户信息相对应的第一图像,进而从该存储器中截取需要显示的该第一图像(即,无需对该第一图像再次进行生成),并对该第一图像进行显示。从而实现在对应窗口内显示图像的快速响应,改善用户体验。
结合第三方面,在第三方面的第一种实现方式中,所述处理器还用于:根据第二用户操作信息,确定第一估计存储位置;所述处理器还用于:当所述第一估计存储位置属于所述存储器的存储位置范围时,根据所述第二用户操作信息,从所述存储器中确定所述第一图像。
通过使用户的操作信息与该待显示图像之间具有对应关系,使得当终端设备检测到用户的操作信息时,可以根据该用户的操作信息,确定该用户的操作信息对应的待显示图像在存储器中的存储位置,进而根据该存储位置,从存储器中确定与该用户操作信息对应的待显示图像,并从存储器中对该待显示图像进行截取并显示(即,无需对该第一图像再次进行生成)。从而实现在对应窗口内显示图像的快速响应,改善用户体验。
结合第三方面及其上述实现方式,在第三方面的第二种实现方式中,所述存储器中包括用户在第一时段浏览过的图像,且包括用户在第二时段浏览过的图像,所述第二时 段位于所述第一时段之前。
通过对用户浏览过的图像进行存储,该存储的图像即包括用户当前正在浏览的图像,也包括用户之前浏览过的历史显示图像,使得存储器中保存的显示图像之间是连续的,并且使得当终端设备检测到用户的操作信息时,可以根据该用户的操作信息,从存储器中保存的连续的显示图像当中确定与该用户操作信息相对应的待显示图像。从而实现在对应窗口内显示图像的快速响应,改善用户体验。
结合第三方面及其上述实现方式,在第三方面的第三种实现方式中,所述第一时段对应的图像为用户当前正在浏览的图像。
结合第三方面及其上述实现方式,在第三方面的第四种实现方式中,所述处理器还用于:禁止基于所述第二用户操作信息生成图像。
对于已经显示的与该第二用户操作信息相对应的第一图像,当再次检测到该第二用户操作信息时,禁止基于该第二用户操作信息生成该第一图像,即直接从存储器中保存的图像中截取与该第二用户操作信息对应的图像进行显示,从而降低人机交互的延迟,改善用户体验。
结合第三方面及其上述实现方式,在第三方面的第五种实现方式中,所述用户操作信息包括滑动操作的滑动方向的信息和滑动操作的滑动距离的信息。
第四方面,提供了一种计算机存储介质,所述计算机存储介质中存储有程序代码,所述程序代码用于指示执行上述第一方面或第一方面的任意可选的实现显示图像的方法所执行的操作。
附图说明
图1是根据本申请的显示图像的终端设备的显示模块的示意性结构图。
图2是根据本申请的显示图像的方法的示意性流程图。
图3是根据本申请的图像数据在缓存单元的存储结构的示意图。
图4示出了用户与手机设备的一种交互状态的示意图。
图5是根据本申请的显示图像的装置的示意性框图。
图6是根据本申请的显示图像的终端设备的示意性结构图。
具体实施方式
本申请的技术方案可以应用于各种支持图像显示的终端设备(也称为,用户设备),例如,手机设备、手环、平板电脑、笔记本电脑、超级移动个人计算机(Ultra-Mobile Personal Computer,UMPC)、个人数字助理(Personal Digital Assistant,PDA)设备、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备等,而不仅限于通信终端。
图1示出了本申请所适用的终端设备的显示模块的示意性结构图。该显示模块可以包括输入单元110、显示合成器120、显示单元130等部件。
其中,本领域技术人员可以理解,图1中示出的显示模块的结构图仅为示例而非限定,该显示模块还可以包括比图示更多或更少的部件,或者不同的部件设置。
输入单元110可用于接收输入的数字或字符信息,以及产生与终端设备的用户设置以及功能控制有关的键信号。具体地,输入单元110可包括触控面板111、其他输入设备 112。触控面板111,也称为触摸屏,可收集用户在其上或附件的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板111上或在触控面板111附近的操作),并根据预先设定的程式驱动相应的连接装置。可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板111。除了触控面板111,输入单元110还可以包括其他输入设备112。具体地,其他输入设备112可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
其中,显示单元130可用于显示由用户输入的信息或提供给用户的信息以及终端设备的各种菜单。显示单元130可包括显示面板131,可选的,可以采用液晶显示单元(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板131。进一步的,触控面板111可覆盖显示面板131,当触控面板111检测到在其上或附近的用户操作之后,将该用户操作信息传送给显示合成器120,由显示合成器120的读入单元121获取,显示合成器120的窗口位置计算单元122根据读入单元121获取的用户操作信息,确定缓存单元123中是否包括与该用户操作信息相对应的图像,如果缓存单元123包括该用户操作信息对应的图像,则显示合成器120将该缓存单元123中的与该用户操作信息对应的图像通过显示单元130中的显示面板131显示。
其中,该人眼能够识别的该视觉输出外显示面板131可以作为本申请中的显示设备,用来显示文本信息或图像信息。虽然在图1中,触控面板111与显示面板131是作为两个独立的部件来实现终端设备的输入和输出功能,但是在某些实施例中,可以将触控面板111与显示面板131集成而实现终端设备的输入和输出功能。
目前,当用户在终端设备上进行操作时(例如,该操作用于触发终端设备通过显示单元130中的显示面板131显示第一个联系人至第九个联系人的联系方式),终端设备需要对用户操作触发的显示内容进行绘制,再通过终端设备的显示单元130中的显示面板131进行显示,当用户再次在终端设备上进行相同的操作(例如,该操作同样用于触发终端设备通过显示单元130中的显示面板131显示第一个联系人至第九个联系人的联系方式)时,终端设备仍需要对该相同的显示内容进行再次绘制,并通过显示单元130中的显示面板131进行显示。因此,由于终端设备需要反复对相同的显示内容进行绘制,导致终端设备对于用户操作的响应速度较慢。
针对上述现有技术中存在的问题,本申请提出了一种技术方案。通过将用户浏览过的显示图像进行存储,使得当用户再次触发终端设备对相同的显示图像进行显示时,终端设备无需对该相同的显示图像进行存储,直接从存储的图像中截取待显示的图像,并通过显示器进行显示。
因此,本申请提供的技术方案能够支持解决上述终端设备对于用户操作的响应速度较慢的问题,下面对本申请的技术方案进行详细描述。
图2示出了根据本发明实施例的显示图像的方法200的示意性流程图,如图2所示,该方法200包括:
S210,根据第一用户操作信息生成并显示第一图像;
S220,将该第一图像保存至存储器;
S230,在检测到第二用户操作信息时,根据该第二用户操作信息,从该存储器中确定与该第二用户操作信息相对应的第一图像,该第一用户操作信息和该第二用户操作信息均用于指示对该第一图像进行显示;
S240,显示该第一图像。
以下以终端设备为手机设备为例,对本申请的技术方案进行说明。
具体而言,在步骤210和210中,用户在手机设备上打开了某一聊天软件(例如,该聊天软件为微信),用户在微信上点开与某一好友的聊天记录,并通过手指在手机屏幕上滑动来对聊天内容进行浏览(例如,第一用户操作信息的一例)。此时,微信对应的应用进程需要对当前用户浏览的内容进行绘制(例如,生成第一图像),之后将该绘制的图像通过手机设备的显示单元130中的显示面板131进行显示(即,用户通过手机的显示屏幕能够看到的内容)。
在手机设备对该图像进行绘制并显示之后,本申请的技术方案将该绘制的图像进行保存(例如,将该第一图像保存至存储器),以使得当用户后续需要再次浏览相同的内容(例如,用户通过第二用户操作信息再次浏览相同的内容)时,不需要再次对该显示图像进行绘制,而是直接从存储器中截取需要显示的图像,从而实现在对应窗口内显示图像的快速响应,改善用户体验。
可选地,该用户操作信息包括滑动操作的滑动方向的信息和滑动操作的滑动距离的信息。
在步骤220和230中,当手机设备检测到第二用户操作信息(例如,该第二用户操作信息为滑动操作信息)时,该滑动操作可以是用户通过手指在手机屏幕(例如,终端设备的输入单元110的触控面板111的一例)上滑动,当手机设备检测到手机屏幕上的滑动操作时,可以根据该滑动操作的滑动方向的信息和滑动操作的滑动距离的信息,从存储器中保存的图像中确定与该第二用户操作信息相对应的第一图像,并通过手机设备的显示屏幕(例如,终端设备的显示单元130中的显示面板131的一例)对其进行显示。
例如,该第二用户操作信息为用户打开微信,浏览与步骤210和210中的同一好友的相同的聊天内容。此时,由于步骤210和210中已经对由第一用户操作信息触发显示的相同的聊天内容(例如,第一图像的一例)进行存储,因此,可以直接从存储器中确定与该第二操作信息对应的显示图像(例如,第一图像的一例),并从该存储器中将该显示图像进行截取并显示。
可选地,根据该第二用户操作信息,在该存储器中确定与该第二用户操作信息相对应的第一图像,包括:根据第二用户操作信息,确定第一估计存储位置;当该第一估计存储位置属于该存储器的存储位置范围时,根据该第二用户操作信息,从该存储器中确定该第一图像。
可选地,该存储器中包括用户在第一时段浏览过的图像,且包括用户在第二时段浏览过的图像,该第二时段位于该第一时段之前或之后。
可选地,该第一时段对应的图像为用户当前正在浏览的图像。
需要说明的是,手机设备的显示屏幕(例如,终端设备的显示单元130中的显示面板131的一例)在显示图像时,是以手机设备的显示屏幕为单位进行显示的,即显示合成器120中的窗口位置计算模块122根据手机设备的显示屏幕的参数信息,该参数信息可以为手机设备的显示屏幕的尺寸信息。确定需要显示的图像数据的数据量,再从存储器(例如,缓存单元123的一例)中将对应的图像数据进行截取并通过显示单元130中的显示面板131进行显示。
其中,缓存单元123中存储了用户打开手机设备上的某一应用后浏览的内容对应的 图像数据。例如,用户首次打开了手机设备上的通讯录,当用户从通讯录上的第1个联系人开始浏览时,缓存单元123会将用户浏览过的图像数据进行缓存。例如,手机设备的显示屏幕当前显示的图像画面是第1个联系人到第9个联系人的电话号码,该图像是由通讯录对应的应用进程进行绘制后,再由显示合成器120通过显示单元130中的显示面板131进行显示的。当该图像画面被首次绘制并显示之后,该图像数据被缓存至缓存单元123中。后续当用户继续浏览通讯录中的联系人时,缓存单元都会对首次绘制并显示的图像数据进行存储,以便于当用户再次需要浏览已经浏览过的联系人时,不需要再对该图像内容进行绘制,而是直接从缓存单元中将该图像数据由显示合成器120通过显示单元130中的显示面板131进行显示。从而实现对用户操作的快速响应。
例如,在用户打开手机设备上通讯录之后,用户当前浏览到了第14个联系人的电话号码,用户浏览过的该14个联系人在手机设备的显示屏幕上对应的图像数据,经过绘制之后都会被缓存至缓存单元123中。此时,当用户需要在手机设备的显示屏幕上向上滑动,来浏览第13个联系人的电话号码时,则不再需要通讯录对应的应用进程对该图像数据进行绘制,只需要显示合成器120中的窗口位置计算模块122计算出用户的滑动操作信息在缓存单元123中对应的图像数据的存储位置,并将该存储位置对应的图像数据由显示合成器120通过显示单元130中的显示面板131进行显示。
例如,手机设备的显示屏幕当前显示的图像画面是第2个联系人到第10个联系人的电话号码。当用户需要查看第13个联系人的电话号码时,通过手指在手机设备的显示屏幕上向上滑动。例如,用户通过手指向上滑动了0.3cm。则窗口位置计算模块122根据用户的滑动操作信息,计算出用户的该滑动操作信息对应的图像数据存储在缓存区域的第3个字节至第22个字节对应的存储位置,然后由显示合成器120通过显示单元130中的显示面板131进行显示。
根据上述描述,应该理解,缓存单元123中存储的图像数据既包括当前(例如,第一时段的一例)手机设备显示的图像画面,也包括在该当前显示的图像画面之前(例如,第二时段的一例)存储的图像数据,以及在该当前显示的图像画面之后(例如,第二时段的一例)存储的图像数据,即缓存单元123中存储的图像数据的数据量远远大于手机设备的显示屏幕当前所显示的图像。将从缓存单元123中直接截取并显示的图像内容为“当前可见的图像数据”,如图3所示,即当前为通过手机设备的显示屏幕进行显示的状态,即用户当前可见的图像内容,其中,“当前可见的图像数据”在缓存单元123中的存储位置会随着用户滑动操作信息的变化而发生改变;将缓存单元123中其他当前不可见的图像内容称为“当前不可见的图像数据”,即该部分图像内容在缓存单元123中存储位置在当前可见窗口内容对应的图像数据的存储位置之前或者之后,该部分图像内容会随着用户的滑动操作信息的变化而通过手机设备的显示屏幕被显示。当有用户最新浏览的图像数据时,该图像数据都会被顺序存储到缓存单元123中。
例如,对于某一品牌手机而言,该手机的屏幕尺寸为5.7英寸,显示合成器120首先确定需要显示的图像数据的数据量为20字节,即只有20字节的图像数据才能覆盖该手机的整个手机屏幕。
用户在通讯录中当前浏览的是第6个联系人至第14个联系人的电话号码,即手机设备的显示屏幕当前显示的图像为第6个联系人至第14个联系人的电话号码。如图4所示,当用户需要浏览第4个联系人的电话号码时,则用户需要通过手指在手机设备的显示屏 幕上向下滑动,例如,用户通过手指在手机设备的显示屏幕上向下滑动了0.5cm。
用户的该滑动操作信息首先被手机设备中的显示合成器120中的读入模块121获取,进而用户的该滑动操作信息被显示合成器120中的窗口位置计算模块122从读入模块121中获取,窗口位置计算模块122确定该滑动信息为向下滑动了0.5cm,进一步根据该滑动操作信息,通过计算,结合手机设备的显示屏幕的参数信息,确定该滑动操作信息对应的图像数据在缓存单元123中的存储位置为第5个字节到第24个字节,并根据该存储位置,确定该存储位置没有超出缓存单元123中的最大存储地址时,最终将缓存单元123中与该存储位置对应的图形数据进行截取(即,第4个联系人至第12个联系人对应的图像)并通过显示单元130中的显示面板131进行显示。
可选地,禁止基于该第二用户操作信息生成图像。
具体地,当窗口位置计算模块122确定出用户的滑动操作信息在缓存单元中对应的图像数据的存储位置,并根据该存储位置,确定该存储位置没有超出缓存单元123中的最大存储地址时,将缓存单元123中与该存储位置对应的图形数据通过显示单元130中的显示面板131进行显示。与此同时,禁止与该通讯录对应的应用进程对与该滑动操作信息对应的图像内容进行绘制。
可选地,当缓存单元123中不包括第二用户操作信息对应的图像或者包括第一用户信息对应的部分图像时,则通过用户触发的应用进程对第一用户信息对应的图像进行绘制,并将绘制的图像通过显示单元130的显示面板131进行显示。
需要说明的是,对于缓存单元123中不包括第二用户操作信息对应的图像的情况,主要有以下两种原因:窗口位置计算模块计算出的存储位置的地址超出了缓存单元123的最大存储地址;或者,在用户打开某一应用之后,并未对该应用中的对应内容进行浏览,即缓存单元123中并未保存用户浏览过的显示图像。
例如,当用户需要浏览第15个联系人的电话号码时,用户通过手指在手机设备的显示屏幕上向上滑动。例如,用户通过手指在手机设备的显示屏幕上向上滑动了1cm。
此时,该滑动操作信息首先被手机设备中的显示合成器120中的读入模块121获取,进而用户的该滑动操作信息被显示合成器120中的窗口位置计算模块122从读入模块121中获取,窗口位置计算模块122确定该滑动信息为向下滑动了1cm,进一步根据该滑动操作信息,通过计算,结合手机设备的显示屏幕的参数信息,确定该滑动操作信息对应的图像数据在缓存单元123中的存储位置为第10个字节到第29个字节,例如,该缓存单元中当前只缓存了第1个字节到第25个字节对应的图像数据。此时,该第26到29个字节对应的图像内容需要通讯录对应的应用进程进行绘制后再显示,并将绘制后显示的第26到29个字节对应的图像数据存储至缓存单元123中。
应理解,以上仅为示例性说明,并不对本申请构成任何限定。
上述仅以终端设备为手机设备为例,对本申请的技术方案进行了说明。
下面以终端设备为笔记本电脑为例,对本申请的技术方案进行说明。
当用户在笔记本电脑上打开Word文档浏览一篇学术论文时,用户可以通过笔记本电脑的输入单元110的其他输入设备112(例如,滚动电脑鼠标)来浏览Word文档的内容。
例如,用户当前浏览的是该学术文献的第1行至第20行的文字内容,当用户需要浏览第20行至第40行的学术文献的内容时。此时,用户需要通过滚动笔记本电脑的鼠标, 或者向下拖动Word文档的进度条,以使Word文档当前显示的内容中包括第20行至第40行的学术文献的内容。
笔记本电脑中的缓存单元123会将用户浏览过的文献内容对应的图像数据进行缓存,使得当用户需要再次浏览之前浏览过的文献内容时,不需要该Word文档对应的应用进程再次对该图像内容进行绘制,而是直接从缓存单元123中将已经缓存的图像数据由显示合成器120通过显示单元130中的显示面板131进行显示。
例如,缓存单元123中缓存的最大存储地址为第50个字节,即缓存单元123中第1个字节至第50个字节中都存储了用户历史浏览过的文献内容的图像画面。
例如,用户拖动Word文档的进度条向下拖动了2cm,该用户操作信息首先被笔记本电脑中的显示合成器120中的读入模块121获取,进而用户的该滑动操作信息被显示合成器120中的窗口位置计算模块122从读入模块121中获取,窗口位置计算模块122确定该用户操作信息为进度条向下移动了2cm,进一步根据该滑动操作信息,通过计算,结合笔记本电脑的显示屏幕的参数信息,确定该用户操作信息对应的图像数据在缓存单元123中的存储位置为第40个字节至第60个字节,由于该缓存单元中当前只缓存了第1个字节到第50个字节对应的图像数据。此时,该第51个至60个字节对应的图像内容需要Word文档对应的应用进程进行绘制后再显示,并将绘制后显示的第51个至60个字节对应的图像数据存储至缓存单元123中。
当缓存单元123中不包括或者包括部分待显示图像的图像数据时,此时需要通过用户打开的应用进程对缓存单元123中没有的图像进行绘制,并对绘制并显示后的图像进行缓存,即将该绘制后显示的图像追加至缓存单元中进行顺序存储。并由窗口口位置计算模块122确定缓存单元123中存储的图像数据与用户操作信息之间的对应关系。例如,当用户操作信息为笔记本电脑的进度条向下滑动了3cm时,窗口位置计算模块可以根据该用户操作信息,确定该用户操作信息对应的图像数据为缓存单元123中的第20个字节至第30字节存储的图像数据。
应理解,以上列举的用户操作信息仅为示例性说明,本发明并不限于此,例如,用户操作信息还可以为按动终端设备上的某个按钮或者使终端设备相对于水平面倾斜一定的角度,本发明对此不作任何限定。
根据本申请的显示图像的方法,通过对首次显示的图像进行缓存,使得当相同的用户操作信息触发该图像再次显示时,终端设备可以从缓存单元中直接截取需要显示的图像,而不需要对该图像进行绘制后再显示,从而可以实现在对应窗口内显示图像的快速响应,改善用户体验。
上文中,结合图1至图4,详细描述了根据本申请的显示图像的方法,下面,将结合图5,详细描述根据本申请的显示图像的装置。
图5示出了根据本申请的显示图像的装置300的示意性框图。如图5所示,该装置300包括处理单元310和显示单元320。
处理单元310用于根据第一用户操作信息生成并显示第一图像;
处理单元310还用于将该第一图像保存至存储器;
处理单元310还用于在检测到第二用户操作信息时,根据该第二用户操作信息,从该存储器中确定与该第二用户操作信息相对应的第一图像,该第一用户操作信息和该第二用户操作信息均用于指示对该第一图像进行显示;
显示单元320用于显示该第一图像。
可选地,该处理单元310还用于:
根据该第二用户操作信息,在该存储器中确定与该第二用户操作信息相对应的第一图像,包括:根据第二用户操作信息,确定第一估计存储位置;当该第一估计存储位置属于该存储器的存储位置范围时,根据该第二用户操作信息,从该存储器中确定该第一图像。
可选地,该存储器中包括用户在第一时段浏览过的图像,且包括用户在第二时段浏览过的图像,该第二时段位于该第一时段之前。
可选地,该第一时段对应的图像为用户当前正在浏览的图像。
可选地,该处理单元310还用于:
禁止基于该第二用户操作信息生成图像。
可选地,该用户操作信息包括滑动操作的滑动方向的信息和滑动操作的滑动距离的信息。
根据本申请的用于显示图像的装置300可对应于本申请的用于显示图像的方法200的实施主体,并且,该用于显示图像的装置300中的各单元和上述其他操作和/或功能分别为了实现图2中的方法200的相应流程,为了简洁,在此不再赘述。
根据本申请的显示图像的装置,通过对首次显示的图像进行缓存,使得当相同的用户操作信息触发该图像再次显示时,终端设备可以从缓存单元中直接截取需要显示的图像,而不需要对该图像进行绘制后再显示,从而可以实现在对应窗口内显示图像的快速响应,改善用户体验。
上文中,结合图1至图4,详细描述了根据本申请的显示图像的方法,下面,将结合图6,详细描述根据本申请的显示图像的设备。
图6示出了根据本申请的终端设备400的示意性框图。如图6所示,该终端设备400包括处理器410、显示器420和存储器430。
其中,存储器430用于存储指令,处理器410用于执行存储器430存储的指令,以控制显示器420显示图像。
存储器430可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器也可以包括非易失性存储器(non-volatile memory),例如快闪存储器(flash memory)、硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器430还可以包括上述种类的存储器的组合。
处理器410可以是中央处理器(central processing unit,CPU)、网络处理器(network processor,NP)或者CPU和NP的组合。处理器410还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC)、可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD)、现场可编程逻辑门阵列(field-programmable gate array,FPGA)、通用阵列逻辑(generic array logic,GAL)或其任意组合。
处理器410用于根据第一用户操作信息生成并显示第一图像;
处理器410还用于将该第一图像保存至存储器;
处理器410还用于在检测到第二用户操作信息时,根据该第二用户操作信息,从该 存储器中确定与该第二用户操作信息相对应的第一图像,该第一用户操作信息和该第二用户操作信息均用于指示对该第一图像进行显示;
显示器420用于显示该第一图像。
可选地,该处理器410还用于:
根据该第二用户操作信息,在该存储器中确定与该第二用户操作信息相对应的第一图像,包括:根据第二用户操作信息,确定第一估计存储位置;当该第一估计存储位置属于该存储器的存储位置范围时,根据该第二用户操作信息,从该存储器中确定该第一图像。
可选地,该存储器中包括用户在第一时段浏览过的图像,且包括用户在第二时段浏览过的图像,该第二时段位于该第一时段之前。
可选地,该第一时段对应的图像为用户当前正在浏览的图像。
可选地,该处理器410还用于:
禁止基于该第二用户操作信息生成图像。
可选地,该用户操作信息包括滑动操作的滑动方向的信息和滑动操作的滑动距离的信息。
根据本申请的终端设备400可对应于本申请的用于显示图像的方法200的实施主体,并且,该终端设备400中的各单元和上述其他操作和/或功能分别为了实现图2中的方法200的相应流程,为了简洁,在此不再赘述。
根据本申请的显示图像的终端设备,通过对首次显示的图像进行缓存,使得当相同的用户操作信息触发该图像再次显示时,终端设备可以从缓存单元中直接截取需要显示的图像,而不需要对该图像进行绘制后再显示,从而可以实现在对应窗口内显示图像的快速响应,改善用户体验。
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请的实施过程构成任何限定。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的***、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的***、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个 网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求所述的保护范围为准。

Claims (18)

  1. 一种显示图像的方法,其特征在于,所述方法包括:
    根据第一用户操作信息生成并显示第一图像;
    将所述第一图像保存至存储器;
    在检测到第二用户操作信息时,根据所述第二用户操作信息,从所述存储器中确定与所述第二用户操作信息相对应的第一图像,所述第一用户操作信息和所述第二用户操作信息均用于指示对所述第一图像进行显示;
    显示所述第一图像。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述第二用户操作信息,从所述存储器中确定与所述第二用户操作信息相对应的第一图像,包括:
    根据第二用户操作信息,确定第一估计存储位置;
    当所述第一估计存储位置属于所述存储器的存储位置范围时,根据所述第二用户操作信息,从所述存储器中确定所述第一图像。
  3. 根据权利要求1或2所述的方法,其特征在于,所述存储器中包括用户在第一时段浏览过的图像,且包括用户在第二时段浏览过的图像,所述第二时段位于所述第一时段之前。
  4. 根据权利要求3所述的方法,其特征在于,所述第一时段对应的图像为用户当前正在浏览的图像。
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,所述方法还包括:
    禁止基于所述第二用户操作信息生成图像。
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述用户操作信息包括滑动操作的滑动方向的信息和滑动操作的滑动距离的信息。
  7. 一种显示图像的装置,其特征在于,所述装置包括:
    处理单元,根据第一用户操作信息生成并显示第一图像;
    所述处理单元还用于:
    将所述第一图像保存至存储器;
    所述处理单元还用于:
    在检测到第二用户操作信息时,根据所述第二用户操作信息,从所述存储器中确定与所述第二用户操作信息相对应的第一图像,所述第一用户操作信息和所述第二用户操作信息均用于指示对所述第一图像进行显示;
    显示单元,用于显示所述第一图像。
  8. 根据权利要求7所述的装置,其特征在于,所述处理单元还用于:
    根据第二用户操作信息,确定第一估计存储位置;
    所述处理单元还用于:
    当所述第一估计存储位置属于所述存储器的存储位置范围时,根据所述第二用户操作信息,从所述存储器中确定所述第一图像。
  9. 根据权利要求7或8所述的装置,其特征在于,所述存储器中包括用户在第一时段浏览过的图像,且包括用户在第二时段浏览过的图像,所述第二时段位于所述第一时段之前。
  10. 根据权利要求9所述的装置,其特征在于,所述第一时段对应的图像为用户当前 正在浏览的图像。
  11. 根据权利要求7至10中任一项所述的装置,其特征在于,所述处理单元还用于:
    禁止基于所述第二用户操作信息生成图像。
  12. 根据权利要求7至11中任一项所述的装置,其特征在于,所述用户操作信息包括滑动操作的滑动方向的信息和滑动操作的滑动距离的信息。
  13. 一种显示图像的终端设备,其特征在于,包括:存储器,处理器和显示器;
    所述存储器用于存储指令;
    所述处理器用于调用所述存储器中的指令执行以下步骤:
    所述处理器,根据第一用户操作信息生成并显示第一图像;
    所述处理器,还用于将所述第一图像保存至存储器;
    所述处理器,还用于在检测到第二用户操作信息时,根据所述第二用户操作信息,从所述存储器中确定与所述第二用户操作信息相对应的第一图像,所述第一用户操作信息和所述第二用户操作信息均用于指示对所述第一图像进行显示;
    所述显示器,用于显示所述第一图像。
  14. 根据权利要求13所述的终端设备,其特征在于,所述处理器还用于:
    根据第二用户操作信息,确定第一估计存储位置;
    所述处理器还用于:
    当所述第一估计存储位置属于所述存储器的存储位置范围时,根据所述第二用户操作信息,从所述存储器中确定所述第一图像。
  15. 根据权利要求13或14所述的终端设备,其特征在于,所述存储器中包括用户在第一时段浏览过的图像,且包括用户在第二时段浏览过的图像,所述第二时段位于所述第一时段之前。
  16. 根据权利要求15所述的终端设备,其特征在于,所述第一时段对应的图像为用户当前正在浏览的图像。
  17. 根据权利要求13至16中任一项所述的终端设备,其特征在于,所述处理器还用于:
    禁止基于所述第二用户操作信息生成图像。
  18. 根据权利要求13至17中任一项所述的终端设备,其特征在于,所述用户操作信息包括滑动操作的滑动方向的信息和滑动操作的滑动距离的信息。
PCT/CN2017/076881 2016-11-30 2017-03-16 显示图像的方法、装置和终端设备 WO2018098930A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP17876988.1A EP3540615A4 (en) 2016-11-30 2017-03-16 METHOD AND DEVICE FOR DISPLAYING IMAGE, TERMINAL EQUIPMENT
US16/465,285 US11081088B2 (en) 2016-11-30 2017-03-16 Image display method, apparatus, and terminal device
CN201780005537.9A CN108475284B (zh) 2016-11-30 2017-03-16 显示图像的方法、装置和终端设备

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611082255.2 2016-11-30
CN201611082255 2016-11-30

Publications (1)

Publication Number Publication Date
WO2018098930A1 true WO2018098930A1 (zh) 2018-06-07

Family

ID=62241116

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/076881 WO2018098930A1 (zh) 2016-11-30 2017-03-16 显示图像的方法、装置和终端设备

Country Status (4)

Country Link
US (1) US11081088B2 (zh)
EP (1) EP3540615A4 (zh)
CN (1) CN108475284B (zh)
WO (1) WO2018098930A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11875024B2 (en) * 2020-05-15 2024-01-16 Nippon Telegraph And Telephone Corporation User operation recording device and user operation recording method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101004672A (zh) * 2006-01-17 2007-07-25 富士施乐株式会社 电子纸***、日志管理装置、信息处理装置、计算机可读介质和图像处理方法
CN105975170A (zh) * 2016-06-20 2016-09-28 财付通支付科技有限公司 一种页面加载的方法及装置

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7313764B1 (en) 2003-03-06 2007-12-25 Apple Inc. Method and apparatus to accelerate scrolling for buffered windows
KR100756129B1 (ko) * 2005-06-28 2007-09-05 주식회사 팬택앤큐리텔 디스플레이영역 변화에 따른 유동적 디스플레이 장치 및방법
JP4683290B2 (ja) 2006-01-23 2011-05-18 ソニー株式会社 表示装置、表示方法、表示プログラム
CN101136022A (zh) 2006-09-01 2008-03-05 李筑 资源信息的全景制作和展示***
WO2008094508A2 (en) 2007-01-26 2008-08-07 Fusionone, Inc. System for and method of backing up content for use on a mobile device
US20100293330A1 (en) * 2009-05-14 2010-11-18 Microsoft Corporation Displaying transition images during a slide transition
CN102023803A (zh) 2010-12-04 2011-04-20 鸿富锦精密工业(深圳)有限公司 电子阅读装置及其预览方法
CN103714061B (zh) 2012-09-28 2018-10-02 腾讯科技(深圳)有限公司 保存网页图片的方法及装置
KR102183448B1 (ko) * 2013-04-26 2020-11-26 삼성전자주식회사 사용자 단말 장치 및 그 디스플레이 방법
US9977590B2 (en) * 2013-12-18 2018-05-22 Lg Electronics Inc. Mobile terminal and method for controlling the same
CN105518587B (zh) * 2014-05-30 2018-08-21 华为技术有限公司 终端设备显示方法和终端设备
CN105786359A (zh) * 2014-12-17 2016-07-20 中兴通讯股份有限公司 一种移动终端屏幕截图方法及装置

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101004672A (zh) * 2006-01-17 2007-07-25 富士施乐株式会社 电子纸***、日志管理装置、信息处理装置、计算机可读介质和图像处理方法
CN105975170A (zh) * 2016-06-20 2016-09-28 财付通支付科技有限公司 一种页面加载的方法及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3540615A4 *

Also Published As

Publication number Publication date
CN108475284A (zh) 2018-08-31
CN108475284B (zh) 2022-04-05
US11081088B2 (en) 2021-08-03
EP3540615A4 (en) 2019-10-16
US20190392785A1 (en) 2019-12-26
EP3540615A1 (en) 2019-09-18

Similar Documents

Publication Publication Date Title
JP5784712B2 (ja) 携帯用電子デバイスおよびそれを制御する方法
US8276085B2 (en) Image navigation for touchscreen user interface
JP5759660B2 (ja) タッチ・スクリーンを備える携帯式情報端末および入力方法
US20120098639A1 (en) Method and apparatus for providing a device unlock mechanism
TWI705361B (zh) 控制方法、電子裝置及非暫態電腦可讀記錄媒體裝置
EP2772844A1 (en) Terminal device and method for quickly starting program
EP2508970A1 (en) Electronic device and method of controlling same
CN106485173B (zh) 敏感信息展示方法和装置
WO2019104478A1 (zh) 一种识别截图文字的方法及终端
WO2018068328A1 (zh) 一种界面显示的方法及终端
EP2453343A2 (en) Portable electronic device and method therefor
WO2019015581A1 (zh) 文字删除方法及移动终端
TW201349093A (zh) 螢幕畫面裁切方法、裝置及電腦程式產品
US9069391B2 (en) Method and medium for inputting Korean characters using a touch screen
CN107632761B (zh) 一种显示内容查看方法、移动终端和计算机可读存储介质
US9753633B2 (en) Information processing apparatus and method for arranging elements on a display region
WO2018196668A1 (zh) 一种对选定的对象内容执行搜索操作的方法及终端
JP2013537992A (ja) 携帯用電子デバイスおよびそれを制御する方法
CN106855885B (zh) 一种浏览器的页面处理方法及终端
WO2018098930A1 (zh) 显示图像的方法、装置和终端设备
CN112667931B (zh) 网页收藏方法、电子设备和存储介质
KR101294458B1 (ko) 모바일 디바이스에서의 텍스트 입력장치 및 그 방법
JP6062085B1 (ja) 入力インターフェース制御システム、方法およびプログラム
JP6127401B2 (ja) 情報処理装置、プログラム及び情報処理方法
EP2508969A1 (en) Electronic device and method of controlling same

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: 17876988

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2017876988

Country of ref document: EP

Effective date: 20190612