CN114461103A - Regional acceleration processing method and device, electronic equipment and storage medium - Google Patents

Regional acceleration processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114461103A
CN114461103A CN202111536513.0A CN202111536513A CN114461103A CN 114461103 A CN114461103 A CN 114461103A CN 202111536513 A CN202111536513 A CN 202111536513A CN 114461103 A CN114461103 A CN 114461103A
Authority
CN
China
Prior art keywords
application window
full
screen application
touch point
display page
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
CN202111536513.0A
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 Honghe Aixue Education Technology Co ltd
Original Assignee
Beijing Honghe Aixue Education Technology 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 Honghe Aixue Education Technology Co ltd filed Critical Beijing Honghe Aixue Education Technology Co ltd
Priority to CN202111536513.0A priority Critical patent/CN114461103A/en
Publication of CN114461103A publication Critical patent/CN114461103A/en
Pending legal-status Critical Current

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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves

Landscapes

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

Abstract

The present disclosure provides a method for processing a region with an accelerated speed, comprising: determining a touch point of a user on a display page; the display page is provided with an acceleration layer, and a non-full screen application window is displayed on the display page; in response to the touch point being on the non-full screen application window, calculating an offset between the non-full screen application window and the display page; and performing curve drawing on the acceleration layer based on the touch point and the offset, and displaying a result of the curve drawing on the non-full-screen application window. The method and the device realize the acceleration of curve drawing of the non-full-screen application window and solve the problem that only the full-screen application window can be used for accelerated drawing.

Description

Regional acceleration processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of writing acceleration technologies, and in particular, to a method and an apparatus for processing area acceleration, an electronic device, and a storage medium.
Background
With the development of network technology, more and more people begin to use intelligent touch equipment, which generally has a display page capable of touch input, can be applied to various application scenes such as business meetings, enterprise offices, education and training, product display and the like, and has powerful functions and convenient application. Due to inherent limitations in the design of a display page, when the display page is used for inputting characters, acceleration operation is required, and since the acceleration layer cannot be created in multiple numbers and can only be used in a full screen, acceleration of input of a user on a non-full screen application interface cannot be realized.
Disclosure of Invention
In view of the above, the present disclosure is directed to a method, an apparatus, an electronic device, and a storage medium for area acceleration processing.
Based on the above object, the present disclosure provides a method for processing a region with an accelerated speed, comprising:
determining a touch point of a user on a display page; the display page is provided with an acceleration layer, and a non-full screen application window is displayed on the display page;
in response to the touch point being on the non-full screen application window, calculating an offset between the non-full screen application window and the display page;
and performing curve drawing on the acceleration layer based on the touch point and the offset, and displaying a result of the curve drawing on the non-full-screen application window.
In some embodiments, the determining a touch point of the user on the display page includes:
and receiving a curve drawing instruction of a user, and taking a drawing point of the curve drawing instruction as the touch point.
In some implementations, the calculating the offset between the non-full screen application window and the display page includes:
acquiring a first horizontal axis coordinate and a first vertical axis coordinate of the touch point on the display page;
acquiring a second horizontal axis coordinate and a second vertical axis coordinate of the touch point on the non-full screen application window;
determining a horizontal axis offset according to the first horizontal axis coordinate and the second horizontal axis coordinate;
determining a longitudinal axis offset according to the first longitudinal axis coordinate and the second longitudinal axis coordinate;
and determining the offset according to the horizontal axis offset and the vertical axis offset.
In some embodiments, the curve plotting on the acceleration layer based on the touch point and the offset amount comprises:
and performing curve drawing on the acceleration layer based on the touch point, a preset offset function and the offset.
In some embodiments, a full-screen application window is further displayed on the display page, and the full-screen application window is displayed on a lower layer of the non-full-screen application window;
after determining the touch point of the user on the display page, the method further comprises:
in response to the touch point being on the full-screen application window and not on the non-full-screen application window, performing a curvy draw on the acceleration layer based on the touch point, and displaying a result of the curvy draw on the full-screen application window.
In some embodiments, before determining the user's touch point on the displayed page, the method further comprises:
acquiring attribute information of the full-screen application window;
and adjusting the attribute information of the full-screen application window to enable the full-screen application window to be displayed on the lower layer of the non-full-screen application window.
In some embodiments, before determining the user's touch point on the displayed page, the method further comprises:
acquiring attribute information of the acceleration layer;
and adjusting the attribute information of the acceleration layer to place the acceleration layer on the uppermost layer of the display page.
Based on the same inventive concept, the present disclosure also provides a regional accelerated processing apparatus, comprising:
the determining module is used for determining a touch point of a user on the display page; the display page is provided with an acceleration layer, and a non-full screen application window is displayed on the display page;
a calculation module to calculate an offset between the non-full screen application window and the display page in response to the touch point being on the non-full screen application window;
and the drawing module is used for performing curve drawing on the acceleration layer based on the touch point and the offset, and displaying the curve drawing result on the non-full-screen application window.
In some embodiments, the determining module is further configured to: and receiving a curve drawing instruction of a user, and taking a drawing point of the curve drawing instruction as the touch point.
In some embodiments, the computing module is further configured to implement: acquiring a first horizontal axis coordinate and a first vertical axis coordinate of the touch point on the display page; acquiring a second horizontal axis coordinate and a second vertical axis coordinate of the touch point on the non-full screen application window; determining a horizontal axis offset according to the first horizontal axis coordinate and the second horizontal axis coordinate; determining a longitudinal axis offset according to the first longitudinal axis coordinate and the second longitudinal axis coordinate; and determining the offset according to the horizontal axis offset and the vertical axis offset.
In some embodiments, the rendering module is further configured to implement: and performing curve drawing on the acceleration layer based on the touch point, a preset offset function and the offset.
In some embodiments, a full-screen application window is further displayed on the display page, and the full-screen application window is displayed on a lower layer of the non-full-screen application window;
after the determining module determines the touch point of the user on the display page, the drawing module is further used for realizing that: in response to the touch point being on the full-screen application window and not on the non-full-screen application window, performing a curvy draw on the acceleration layer based on the touch point, and displaying a result of the curvy draw on the full-screen application window.
In some embodiments, the determining module, prior to determining the touch point of the user on the display page, is further configured to: acquiring attribute information of the full-screen application window; and adjusting the attribute information of the full-screen application window to enable the full-screen application window to be displayed on the lower layer of the non-full-screen application window.
In some embodiments, the determining module, prior to determining the touch point of the user on the display page, is further configured to: acquiring attribute information of the acceleration layer; and adjusting the attribute information of the acceleration layer to place the acceleration layer on the uppermost layer of the display page.
Based on the same inventive concept, the present disclosure also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method as described in any of the above when executing the program.
Based on the same inventive concept, the present disclosure also provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method as described in any one of the above.
As can be seen from the foregoing, according to the area acceleration processing method, the apparatus, the electronic device, and the storage medium provided by the present disclosure, a touch point is obtained by drawing a curve, it is determined whether the touch point is on a non-full-screen application window, an offset between the non-full-screen application window and the display page is calculated, according to the offset, a curve drawing is performed on the non-full-screen application on the acceleration layer for the drawn curve, and a result of the curve drawing is displayed on the non-full-screen application window. The area acceleration processing method, the area acceleration processing device, the electronic equipment and the storage medium realize acceleration of curve drawing of a non-full-screen application window and solve the problem that only a full-screen application window can be subjected to accelerated drawing.
Drawings
In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the drawings needed to be used in the description of the embodiments or related technologies are briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram of a method for processing a zone acceleration according to an embodiment of the disclosure;
FIG. 2 is a schematic illustration of a hierarchy of display pages in accordance with an embodiment of the disclosure;
FIG. 3 is a schematic diagram illustrating offset calculation according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of another hierarchical relationship of display pages according to an embodiment of the disclosure;
fig. 5 is a schematic diagram of a hierarchical relationship setting according to an embodiment of the disclosure.
Fig. 6 is a schematic structural diagram of a regional acceleration processing apparatus according to an embodiment of the disclosure;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
For the purpose of promoting a better understanding of the objects, aspects and advantages of the present disclosure, reference is made to the following detailed description taken in conjunction with the accompanying drawings.
It is to be noted that technical terms or scientific terms used in the embodiments of the present disclosure should have a general meaning as understood by those having ordinary skill in the art to which the present disclosure belongs, unless otherwise defined. The use of "first," "second," and similar terms in the embodiments of the disclosure is not intended to indicate any order, quantity, or importance, but rather to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
As described in the background section, in a specific application scenario in which a user uses a display page to perform handwriting input, an acceleration layer is disposed at the uppermost layer of the display page and has only one layer, and when the user draws a curve on a full-screen application window, the curve can be accelerated and drawn directly based on the acceleration layer. Because the acceleration layer can not create a plurality of acceleration layers and can only be used in a full screen mode, when a non-full screen application window exists on a display page and a user needs to draw a curve on the non-full screen application window, the curve drawn on the non-full screen application window can not be directly accelerated due to the fact that the size of the acceleration layer is different from the size of the non-full screen application window.
In view of the problems existing in the above practical situations, an embodiment of the present disclosure provides a regional acceleration processing scheme, where a touch point of a user on a display page is first determined, whether the touch point is on a non-full-screen application window is determined, if the touch point is on the non-full-screen application window, an offset between the non-full-screen application window and the display page is calculated, a curve drawn on the non-full-screen application is accelerated on an acceleration layer according to the offset, and a result of the curve drawing is displayed on the non-full-screen application window, so that acceleration of the curve drawn on the non-full-screen application window can be achieved, and a problem that only the full-screen application window can be accelerated is solved.
Hereinafter, the technical means of the present disclosure will be described in further detail with reference to specific examples.
First, one or more embodiments of the present specification provide a region acceleration processing method. Referring to fig. 1, the method includes the steps of:
step S101, determining a touch point of a user on a display page; the display page is provided with an acceleration layer, and a non-full-screen application window is displayed on the display page.
In this step, the display page is a page formed by an area on the touch device where content can be displayed. The touch point of the user on the display page is a contact point with the display page when the user performs writing, drawing, and the like. When a user needs to draw a curve on a display page of the touch device, the user can operate the display page through a finger, a touch pen and other devices, and a touch point of the user on the display page can be determined based on the operation.
In some application scenarios, the rendering mode used when performing curve rendering on the display page may be in various forms, such as single-finger rendering and multi-finger rendering, and the region acceleration processing scheme of the present scheme may be performed in different rendering modes. In other application scenarios, for a device in which both single-finger rendering and multi-finger rendering exist, for convenience of understanding, the single-finger rendering is taken as an example to describe each embodiment. The multi-finger rendering can be implemented by referring to the implementation manner of single-finger rendering, and the description of this embodiment is omitted here.
In a specific application scenario, the display page may be a page of a specific intelligent touch device, which is capable of performing touch handwriting input. The intelligent touch device may be a more convenient mobile intelligent device, for example: cell-phone, flat board etc. also can be comparatively large-scale smart machine, for example: intelligent touch televisions, intelligent touch large screens, intelligent touch whiteboards, and the like.
In some specific embodiments, as shown in fig. 2, the display page 110 is provided with an acceleration layer 111, and the display page 110 also displays a non-full screen application window 112. The acceleration layer 111 is disposed at the uppermost layer of the display page 110, that is, the acceleration layer 111 is disposed above the non-full screen application window 112. Thus, when the curve drawing needs to be performed on the non-full-screen application window 112, the corresponding curve drawing instruction will act on the acceleration layer 111 first, and the drawn curve will be displayed on the non-full-screen application window 112 only after being accelerated by the acceleration layer 111.
Optionally, the acceleration layer 111 is transparent, so the acceleration layer 111 does not affect the display of the non-full-screen application window 112, i.e. the user does not see the acceleration layer 111 when viewing the non-full-screen application window 112 on the display page 110.
The curve drawing can be instruction information generated by executing touch operation on a large touch screen by a user finger or other components capable of simulating human fingers. For example, a user may perform a touch operation on a large touch screen by a finger, a stylus, or the like to draw a curve.
In some embodiments, the user's touch point on the displayed page further comprises: and receiving a curve drawing instruction of a user, and taking a drawing point of the curve drawing instruction as the touch point.
In this embodiment, a user performs a writing operation on a display page through a curve drawing instruction. For example, a curve drawing component is arranged on the display page, and the curve drawing component can be used for drawing a plurality of preset curves or figures, such as lines like straight lines, arcs, curves and broken lines, and figures like arrows, circles, triangles and rectangles. After the user selects the curve drawing component through finger touch or mouse selection and the like, the curve drawing component can be controlled to draw corresponding lines or graphs on a display page and generate a curve drawing instruction at the same time. In the process of drawing the curve, a drawing point in the curve drawing process can be obtained as a touch point based on the curve drawing instruction, so as to be used for judging whether the touch point is on the non-full screen application window 112. The "curve" in curve drawing is not limited to a curve, and includes a series of lines whose drawing directions can be changed, such as straight lines and broken lines, and may also include figures, such as arrows, circles, triangles and rectangles.
Wherein the curve drawing instructions may include: drawing point selection information (drawing point position, drawing point area, and the like), drawing slide information (start position, end position, start time, end time, position information of a certain point in the drawing process, time information of drawing to the point, and the like), the number of slide drawing points, and the like.
In this embodiment, when curve drawing is performed on the display page based on the curve drawing instruction, a plurality of drawing points can be obtained, and each drawing point can be used as a touch point; therefore, the touch point of the user on the display page 110 can be obtained by analyzing the curve drawing instruction. After the touch points of the user on the display page 110 are obtained, it can be determined whether the touch points are on the non-full screen application window according to the positions of the touch points.
Step S102, responding to the touch point on the non-full screen application window, and calculating the offset between the non-full screen application window and the display page.
In this embodiment, even if a plurality of application windows are displayed on the display page, only one application window can acquire a touch point; therefore, when all touch points are on the non-full screen application window, the drawing curve drawn based on the curve drawing instruction is considered to be on the non-full screen application window.
In this step, when the curve drawn based on the curve drawing instruction is on the non-full-screen application window, any touch point on the non-full-screen application window is acquired, and the offset between the non-full-screen application window and the display page is calculated according to the position of the touch point, so that the offset position of the drawn curve on the acceleration layer can be calculated according to the offset. Optionally, the touch point may be the first touch point, or may also be other touch points, which is not limited in this embodiment.
In some embodiments, said calculating an offset between said non-full screen application window and said display page comprises: acquiring a first horizontal axis coordinate and a first vertical axis coordinate of the touch point on the display page; acquiring a second horizontal axis coordinate and a second vertical axis coordinate of the touch point on the non-full screen application window; determining a horizontal axis offset according to the first horizontal axis coordinate and the second horizontal axis coordinate; determining a longitudinal axis offset according to the first longitudinal axis coordinate and the second longitudinal axis coordinate; and determining the offset according to the horizontal axis offset and the vertical axis offset.
In a specific application scenario, a rectangular coordinate system is established in the upper left corner of the display page as shown in fig. 3. Specifically, a first rectangular coordinate system X ' O ' Y ' is constructed with a horizontal frame parallel to the display page as an X-axis, an upper left corner of the display page as an origin, and a vertical frame parallel to the display page as a Y-axis.
Optionally, the first rectangular coordinate system is not limited to the rectangular coordinate system established in this form, but may also be established with the upper right corner as the origin, or established with the touch point as the origin, or established with any other position as the origin, which is not limited in this embodiment. For convenience of understanding, the technical solution described in this embodiment will be described in detail by taking the first orthogonal coordinate system X ' O ' Y ' as an example.
As shown in fig. 3, after the first rectangular coordinate system X ' O ' Y ' is established, a straight-line horizontal distance and a straight-line vertical distance from the touch point a to the frame of the display page 110 may be calculated according to a difference between the position coordinates of the touch point a and the frame of the display page 110, so as to determine the coordinate information of the touch point a on the display page 110.
In a specific embodiment, a linear transverse distance and a linear longitudinal distance from the touch point a to a frame of the display page 100 may be obtained through a preset function, so as to obtain coordinate information of the touch point a in the first rectangular coordinate system X ' O ' Y '. Specifically, a transverse straight-line distance from the touch point to the Y-axis of the first rectangular coordinate system X 'O' Y 'is obtained as a first transverse-axis coordinate of the touch point on the display page by a getRawX () function, and a longitudinal straight-line distance from the touch point to the X-axis paper of the first rectangular coordinate system X' O 'Y' is obtained as a first longitudinal-axis coordinate of the touch point on the display page by a getRawY () function.
Meanwhile, a rectangular coordinate system is established at the upper left corner of the non-full screen application window. The method specifically comprises the following steps: and establishing a second rectangular coordinate system XOY by taking a horizontal frame parallel to the non-full screen application window as an X axis, taking the upper left corner of the non-full screen application window as an origin and taking a vertical frame parallel to the non-full screen application window as a Y axis.
Optionally, the second rectangular coordinate system is not limited to the rectangular coordinate system established in this form, or the rectangular coordinate system is established with an origin at any other position, which is not limited in this embodiment. For convenience of understanding, the technical solution described in this embodiment is described in detail by taking the second orthogonal coordinate system XOY as an example.
As shown in fig. 3, after the second rectangular coordinate system XOY is established, a straight-line lateral distance and a straight-line longitudinal distance from the touch point a to the border of the non-full-screen application window 112 may be calculated according to a difference between the touch point a and the position coordinates of the border of the non-full-screen application window 112, so as to determine the coordinate information of the touch point a on the non-full-screen application window 112.
In a specific embodiment, a straight-line transverse distance and a straight-line longitudinal distance from a touch point to a non-full screen application window border can be obtained through a preset function, and then coordinate information of the touch point in the second rectangular coordinate system XOY is obtained. Specifically, a straight-line transverse distance between the touch point and a Y axis of a second rectangular coordinate system XOY is obtained through a getX () function as a second transverse axis coordinate of the touch point a on the non-full screen application window 112, and a straight-line longitudinal distance between the touch point a and an X axis of the second rectangular coordinate system XOY is obtained through a getY () function as a second longitudinal axis coordinate of the touch point a on the non-full screen application window 112.
In this way, the horizontal axis offset may be determined by the calculated value of the formula getRawX () -getX () according to the horizontal distance from the touch point a to the non-full screen application window 112 and the display page 110, respectively; determining a vertical axis offset by a calculation value of formula getRawX () -getX () according to a vertical distance of the touch point a to the non-full screen application window 112 and the display page 110, respectively; finally, the offset is determined according to the horizontal axis offset and the vertical axis offset, which can represent the offset direction and offset degree of the non-full screen application window 112 with respect to the display page 110 in the first rectangular coordinate system X ' O ' Y ' and the second rectangular coordinate system XOY.
In the present embodiment, as shown in fig. 3, both the horizontal axis offset and the vertical axis offset are values greater than or equal to 0, so that the non-full screen application window 112 is shifted to the lower right with respect to the display page 110 in the first rectangular coordinate system X ' O ' Y ' and the second rectangular coordinate system XOY.
Optionally, the present disclosure is not limited to the method for calculating the offset between the non-full screen application window and the display page described in the foregoing embodiment, and other arbitrary methods for calculating the offset between the non-full screen application window and the display page are also within the protection scope of the present disclosure, and this embodiment is not limited thereto.
Step S103, performing curve drawing on an acceleration layer based on the curve drawing instruction and the offset, and displaying a curve drawing result on the non-full-screen application window; the acceleration layer is arranged on the uppermost layer of the display page.
In this embodiment, the acceleration layer may be a transparent canvas, so that when the human eyes watch the display content on the display page, the human eyes cannot see the acceleration layer, but can only see the content such as the non-full-screen application window.
In order to accelerate curve drawing, one or more buffer areas are arranged in an execution main body (CPU and the like), and simultaneously, memory addresses of the one or more buffer areas are obtained and assigned to the transparent canvas, so that when curve drawing is performed on the transparent canvas, namely an acceleration layer, relevant information of curve drawing enters the buffer areas to be processed, and a curve drawing result generated by the relevant information of curve drawing processed in the buffer areas can be displayed on a non-full-screen application window through the processing of a SurfaceFlinger process.
After the buffer area is set, the attribute information of the buffer area is set, so that when a curve drawing result formed after the buffer area is displayed on a non-full-screen application window, the frequency of the curve drawing result is higher than the system refreshing frequency, and the curve can be drawn in an accelerated manner.
And because the acceleration is only carried out when the curve is drawn on the acceleration layer, the display area at other times can also accord with the original system refreshing frequency, and the influence on the system performance is small.
Therefore, in step 103, the curve drawn according to the curve drawing instruction and the offset amount are drawn on the acceleration layer, that is, accelerated drawing of the curve can be realized. And after the accelerated drawing on the acceleration layer is finished, displaying the drawing curve on the non-full screen application window.
In a specific application scene, a user draws a curve on a non-full-screen application window, a display page receives a curve drawing instruction of the user, and the curve and the offset drawn according to the curve drawing instruction are drawn on an acceleration layer according to the offset; after the accelerated drawing is finished on the acceleration layer, displaying on the non-full screen application window; at this time, the curve drawing result on the non-full screen application window viewed by the user is the curve drawing result after the accelerated drawing by the acceleration layer.
Specifically, after the offset is obtained, based on a curve drawing instruction, according to a preset offset function, a horizontal axis offset and a vertical axis offset are brought into the offset function, a horizontal axis position coordinate of a touch point of the curve drawing instruction is increased by a horizontal axis offset value, a vertical axis position coordinate is increased by a vertical axis offset value, a position coordinate after offset is obtained, the drawing curve is translated, a drawing curve after offset is obtained, and the drawing curve after offset is drawn on an acceleration layer. Specifically, as one embodiment, the offset function may be a path.
In some specific embodiments, taking a display page of an Android system as an example, the step of drawing and displaying the curve includes:
the first step is performed on the Android application side. The method specifically comprises the following steps: the interface design is built into a graphics buffer and given to the surfaceFlinger. The Surface flag is a system service, and the system service mainly realizes the functions of Surface such as establishment, control, management and the like. Stated another way, it is a service in the implementation of Android, which can combine 2D, 3D surfaces of various applications. Each application program may correspond to one or more graphical interfaces, and each interface is a surface or an application window, where the application window may be a full-screen application window or a non-full-screen application window.
The second step, is performed on the surface flag process side. The method specifically comprises the following steps: the graphics buffer is retrieved and composited and displayed on the screen. The graphic buffer area is used for reserving a certain space of memory size in the memory, is mainly used for storing temporary data, and is a memory block with width, height and pixel density. The content on the display page is read from the graphics buffer, and the reading process comprises the following steps: and scanning the whole graphic buffer area from the top to the bottom and from the left to the right from the starting address of the graphic buffer area, and mapping the content on the display screen.
As an optional embodiment, the method for area acceleration processing further includes: and a full-screen application window is also displayed on the display page, and the full-screen application window is displayed on the lower layer of the non-full-screen application window.
In this embodiment, as shown in fig. 4, a non-full-screen application window 112 and a full-screen application window 113 may exist on a display page at the same time, and the full-screen application window 113 is disposed at a lower layer of the non-full-screen application window 112. Meanwhile, the full-screen application window is set to be displayed only on the lower layer of the non-full-screen application window, and a curve can be drawn on the full-screen application window which is not covered by the non-full-screen application window. In this case, after determining the touch point of the user on the display page, the method further includes: in response to the touch point being on the full-screen application window and not on the non-full-screen application window, performing a curvy draw on the acceleration layer based on the touch point, and displaying a result of the curvy draw on the full-screen application window.
In some particular embodiments, a non-full screen application window is required to be displayed over a full screen application window and a full screen application window is required to be curbed. For example: the full-screen application window is a whiteboard, while the non-full-screen application window is drawing software, and content operations such as writing, drawing and the like need to be performed on the whiteboard under the condition that the drawing software window is normally displayed. In this case, if it is detected that the touch point is on a portion of the whiteboard that is not covered by the drawing software window, curve drawing may be performed on the acceleration layer based on the curve drawing instruction, and a result of the curve drawing may be displayed at a position of the whiteboard that is not covered by the drawing software window.
Meanwhile, if the touch point is detected on the drawing software window, accelerated drawing of the curve can be realized on the drawing software window under the condition that the display content of the whiteboard is not influenced.
Therefore, when the touch point is on the non-full-screen application window, calculating the offset between the non-full-screen application window and the display page, carrying out curve drawing on the acceleration layer based on the curve drawing instruction on the non-full-screen application window and the offset, and displaying the curve drawing result on the non-full-screen application window; if the touch point is on the full-screen application window, the accelerated drawing on the full-screen application window can be realized; therefore, the same acceleration layer can be used for accelerating the full-screen application window and the non-full-screen application window at the same time.
The full-screen application window and the non-full-screen application window coexist, and the acceleration layer drawing can be performed both when the full-screen application window is drawn and when the non-full-screen application window is drawn, so that the problem of acceleration layer drawing distribution under the condition that the non-full-screen item and the full-screen item coexist is solved.
As an optional embodiment, the method for area acceleration processing further includes: acquiring attribute information of the full-screen application window; and adjusting the attribute information of the full-screen application window to enable the full-screen application window to be displayed on the lower layer of the non-full-screen application window.
In this embodiment, the attribute information of the full screen application window includes hierarchical attribute information. Adjusting the hierarchical property of the acceleration layer may also place the acceleration layer on top of the display page. Wherein the attribute information represents hierarchy information of the application window; the attribute information may be represented by a value, and the larger the value, the higher the position of the application window layer.
In the following, the adjustment method of the attribute information is described in detail by taking the attribute information in the Windows system as an example, and other systems such as the android system and the IOS system also include similar attribute information, which is not limited in this embodiment. The attribute information of the application window in the Windows system is Type in the Windows manager. The Windows manager is a computer window process management tool, can position a plurality of software windows on a display, can specify the size and the position of the windows, provides password protection, can minimize the windows to a system tray, and can open the windows by self-defining rules.
The specific attribute information may be represented by an int constant, and when the window manager performs window overlay, different layers may be allocated according to the size of the int constant, where the larger the int value is, the higher the position of the proxy layer is.
In a specific application scenario, as shown in fig. 5, the Type value of the full-screen application in the Windows system is set to 0, the Type value of the non-full-screen application window is set to 2, and the Type value of the acceleration layer is set to 1000. Therefore, the acceleration layer is always positioned at the topmost layer of the display interface, and the full-screen window is always positioned at the bottommost layer of the display page. The acceleration layer is only a virtual layer, is not displayed on the interface, and is different from the application window.
On the basis, the regional accelerated processing method further comprises the following steps: in response to the touch point being on the full-screen application window and not on the full-screen application window, performing a curve draw on the acceleration layer based on the curve draw instruction, and displaying a result of the curve draw on the full-screen application window.
In a specific application scene, a user draws a curve on a non-full-screen application window, after receiving a curve drawing instruction, firstly, whether a touch point is on the non-full-screen application window is judged, if the touch point is on the non-full-screen application window, an offset is calculated, then, curve drawing is carried out on an acceleration layer on the basis of the curve drawing instruction, a preset offset function and the offset, and then, a curve drawing result is displayed on the non-full-screen application window. And if the touch point is on the full-screen application window except the area where the non-full-screen application window is located, performing curve drawing on the acceleration layer based on the curve drawing instruction, and displaying a curve drawing result on the full-screen application window. Because the non-full-screen application window is always displayed on the full-screen application window, the area covered by the non-full-screen application window in the full-screen application window cannot receive a curve drawing instruction, and the curve drawing instruction can only be drawn on the full-screen application window except the area where the non-full-screen application window is located.
By judging the position of the touch point and judging whether the offset is calculated according to the position of the touch point, the curve drawing of the non-full-screen application window is accelerated, and the problem that only the full-screen application window can be used for accelerated drawing is solved.
Based on the same inventive concept, the disclosure also provides a regional acceleration processing device corresponding to the method of any embodiment. As shown in fig. 6, the apparatus includes:
a determining module 11, configured to determine a touch point of a user on a display page; the display page is provided with an acceleration layer, and a non-full screen application window is displayed on the display page;
a calculation module 12, configured to calculate, in response to the touch point being on the non-full-screen application window, an offset between the non-full-screen application window and the display page;
and the drawing module 13 is configured to perform curve drawing on the acceleration layer based on the touch point and the offset, and display a result of the curve drawing on the non-full-screen application window.
In some embodiments, the determining module 11 is further configured to: and receiving a curve drawing instruction of a user, and taking a drawing point of the curve drawing instruction as the touch point.
In some embodiments, the calculation module 12 is further configured to implement: acquiring a first horizontal axis coordinate and a first vertical axis coordinate of the touch point on the display page; acquiring a second horizontal axis coordinate and a second vertical axis coordinate of the touch point on the non-full screen application window; determining a horizontal axis offset according to the first horizontal axis coordinate and the second horizontal axis coordinate; determining a longitudinal axis offset according to the first longitudinal axis coordinate and the second longitudinal axis coordinate; and determining the offset according to the horizontal axis offset and the vertical axis offset.
In some embodiments, the rendering module 13 is further configured to implement: and performing curve drawing on the acceleration layer based on the touch point, a preset offset function and the offset.
In some embodiments, a full-screen application window is further displayed on the display page, and the full-screen application window is displayed on a lower layer of the non-full-screen application window;
after the determining module 11 determines the touch point of the user on the display page, the drawing module 13 is further configured to implement: in response to the touch point being on the full-screen application window and not on the non-full-screen application window, performing a curvy draw on the acceleration layer based on the touch point, and displaying a result of the curvy draw on the full-screen application window.
In some embodiments, the determining module 11 is further configured to, before determining the touch point of the user on the display page: acquiring attribute information of the full-screen application window; and adjusting the attribute information of the full-screen application window to enable the full-screen application window to be displayed on the lower layer of the non-full-screen application window.
In some embodiments, the determining module 11 is further configured to, before determining the touch point of the user on the display page: acquiring attribute information of the acceleration layer; and adjusting the attribute information of the acceleration layer to place the acceleration layer on the uppermost layer of the display page.
The area acceleration processing apparatus in the foregoing embodiment is used to implement the corresponding area acceleration processing method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, corresponding to the method of any embodiment described above, the present disclosure further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, where the processor executes the program to implement the scheduling method of the autonomous domain system according to any embodiment described above.
Fig. 7 is a schematic diagram illustrating a more specific hardware structure of an electronic device according to this embodiment, where the device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein the processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 are communicatively coupled to each other within the device via bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 1020 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 1020 and called to be executed by the processor 1010.
The input/output interface 1030 is used for connecting an input/output module to input and output information. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 1040 is used for connecting a communication module (not shown in the drawings) to implement communication interaction between the present apparatus and other apparatuses. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 1050 includes a path that transfers information between various components of the device, such as processor 1010, memory 1020, input/output interface 1030, and communication interface 1040.
It should be noted that although the above-mentioned device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
The electronic device of the foregoing embodiment is used to implement the corresponding area acceleration processing method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, corresponding to any of the above-described embodiment methods, the present disclosure also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the region acceleration processing method according to any of the above-described embodiments.
Computer-readable media of the present embodiments, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
The computer instructions stored in the storage medium of the foregoing embodiment are used to enable the computer to execute the region acceleration processing method according to any one of the foregoing embodiments, and have the beneficial effects of corresponding method embodiments, which are not described herein again.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of the present disclosure, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of brevity.
In addition, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown in the provided figures for simplicity of illustration and discussion, and so as not to obscure the embodiments of the disclosure. Further, devices may be shown in block diagram form in order to avoid obscuring embodiments of the disclosure, and also in view of the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the embodiments of the disclosure are to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the disclosure, it should be apparent to one skilled in the art that the embodiments of the disclosure can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present disclosure has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic ram (dram)) may use the discussed embodiments.
The disclosed embodiments are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalents, improvements, and the like that may be made within the spirit and principles of the embodiments of the disclosure are intended to be included within the scope of the disclosure.

Claims (10)

1. A regional acceleration processing method is characterized by comprising the following steps:
determining a touch point of a user on a display page; the display page is provided with an acceleration layer, and a non-full screen application window is displayed on the display page;
in response to the touch point being on the non-full screen application window, calculating an offset between the non-full screen application window and the display page;
and performing curve drawing on the acceleration layer based on the touch point and the offset, and displaying a result of the curve drawing on the non-full-screen application window.
2. The method of claim 1, wherein determining a touch point of a user on a displayed page comprises:
and receiving a curve drawing instruction of a user, and taking a drawing point of the curve drawing instruction as the touch point.
3. The method of claim 1, wherein the calculating an offset between the non-full screen application window and the display page comprises:
acquiring a first horizontal axis coordinate and a first vertical axis coordinate of the touch point on the display page;
acquiring a second horizontal axis coordinate and a second vertical axis coordinate of the touch point on the non-full screen application window;
determining a horizontal axis offset according to the first horizontal axis coordinate and the second horizontal axis coordinate;
determining a longitudinal axis offset according to the first longitudinal axis coordinate and the second longitudinal axis coordinate;
and determining the offset according to the horizontal axis offset and the vertical axis offset.
4. The method of claim 1, wherein the curve-plotting on an acceleration layer based on the touch point and the offset comprises:
and performing curve drawing on the acceleration layer based on the touch point, a preset offset function and the offset.
5. The method according to claim 1, wherein a full screen application window is also displayed on the display page, and the full screen application window is displayed at a lower layer of the non-full screen application window;
after determining the touch point of the user on the display page, the method further comprises:
in response to the touch point being on the full-screen application window and not on the non-full-screen application window, performing a curvy draw on the acceleration layer based on the touch point, and displaying a result of the curvy draw on the full-screen application window.
6. The method of claim 5, wherein prior to determining the point of touch by the user on the displayed page, the method further comprises:
acquiring attribute information of the full-screen application window;
and adjusting the attribute information of the full-screen application window to enable the full-screen application window to be displayed on the lower layer of the non-full-screen application window.
7. The method of claim 1, wherein prior to determining the point of touch by the user on the displayed page, the method further comprises:
acquiring attribute information of the acceleration layer;
and adjusting the attribute information of the acceleration layer to place the acceleration layer on the uppermost layer of the display page.
8. An area acceleration processing apparatus, characterized by comprising:
the determining module is used for determining a touch point of a user on the display page; the display page is provided with an acceleration layer, and a non-full screen application window is displayed on the display page;
a calculation module to calculate an offset between the non-full screen application window and the display page in response to the touch point being on the non-full screen application window;
and the drawing module is used for performing curve drawing on the acceleration layer based on the touch point and the offset, and displaying the curve drawing result on the non-full-screen application window.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the program.
10. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 7.
CN202111536513.0A 2021-12-14 2021-12-14 Regional acceleration processing method and device, electronic equipment and storage medium Pending CN114461103A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111536513.0A CN114461103A (en) 2021-12-14 2021-12-14 Regional acceleration processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111536513.0A CN114461103A (en) 2021-12-14 2021-12-14 Regional acceleration processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114461103A true CN114461103A (en) 2022-05-10

Family

ID=81405021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111536513.0A Pending CN114461103A (en) 2021-12-14 2021-12-14 Regional acceleration processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114461103A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927710A (en) * 2014-04-18 2014-07-16 Tcl集团股份有限公司 Application layer branching mixing method, system and device
CN111625179A (en) * 2020-06-02 2020-09-04 京东方科技集团股份有限公司 Graph drawing method, electronic device, and computer storage medium
CN112672199A (en) * 2020-12-22 2021-04-16 海信视像科技股份有限公司 Display device and multi-layer stacking method
CN112799627A (en) * 2021-02-08 2021-05-14 海信视像科技股份有限公司 Display apparatus and image display method
US20210240329A1 (en) * 2011-03-17 2021-08-05 Intellitact Llc Relative Touch User Interface Enhancements

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210240329A1 (en) * 2011-03-17 2021-08-05 Intellitact Llc Relative Touch User Interface Enhancements
CN103927710A (en) * 2014-04-18 2014-07-16 Tcl集团股份有限公司 Application layer branching mixing method, system and device
CN111625179A (en) * 2020-06-02 2020-09-04 京东方科技集团股份有限公司 Graph drawing method, electronic device, and computer storage medium
CN112672199A (en) * 2020-12-22 2021-04-16 海信视像科技股份有限公司 Display device and multi-layer stacking method
CN112799627A (en) * 2021-02-08 2021-05-14 海信视像科技股份有限公司 Display apparatus and image display method

Similar Documents

Publication Publication Date Title
US7730422B2 (en) Smart icon placement across desktop size changes
JP4112377B2 (en) How to display an opaque desktop with depth perception
US20120206471A1 (en) Systems, methods, and computer-readable media for managing layers of graphical object data
JP4883791B2 (en) Information processing apparatus and display method
CN110427601B (en) Form processing method and device, intelligent interactive panel and storage medium
CN105930464B (en) Web rich media cross-screen adaptation method and device
US11561637B2 (en) Method and device of drawing handwriting track, electronic apparatus, medium, and program product
KR20160033547A (en) Apparatus and method for styling a content
US20210090330A1 (en) Virtual exhibition space providing method for efficient data management
US20190258396A1 (en) Layout design with adaptive areas
US11250643B2 (en) Method of providing virtual exhibition space using 2.5-dimensionalization
CN113538623A (en) Method and device for determining target image, electronic equipment and storage medium
CN107391148B (en) View element saving method and device, electronic equipment and computer storage medium
CN111428455B (en) Form management method, device, equipment and storage medium
JP2006139727A (en) Three-dimensional figure drawing processor, image display device, three-dimensional figure drawing processing method, control program for executing the method by computer, and computer readable recording medium recorded with the program
CN114461103A (en) Regional acceleration processing method and device, electronic equipment and storage medium
JP6287498B2 (en) Electronic whiteboard device, electronic whiteboard input support method, and program
CN113096217B (en) Picture generation method and device, electronic equipment and storage medium
US20030020740A1 (en) Graphics stack system and method
CN110825989A (en) Picture display method and device, electronic equipment and readable medium
CN114169304A (en) Table creation method and device, electronic equipment and computer-readable storage medium
US10846878B2 (en) Multi-axis equal spacing smart guides
CN114625997A (en) Page rendering method and device, electronic equipment and computer readable medium
JP3268029B2 (en) Handwriting input device
CN114170381A (en) Three-dimensional path display method and device, readable storage medium and electronic 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