CN113986103A - Seamless rolling writing method and device, display equipment and storage medium - Google Patents

Seamless rolling writing method and device, display equipment and storage medium Download PDF

Info

Publication number
CN113986103A
CN113986103A CN202111307350.9A CN202111307350A CN113986103A CN 113986103 A CN113986103 A CN 113986103A CN 202111307350 A CN202111307350 A CN 202111307350A CN 113986103 A CN113986103 A CN 113986103A
Authority
CN
China
Prior art keywords
page
standard writing
writing page
coordinate
current standard
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
CN202111307350.9A
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.)
Anhui Haiqin Technology Co ltd
Original Assignee
Anhui Haiqin 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 Anhui Haiqin Technology Co ltd filed Critical Anhui Haiqin Technology Co ltd
Priority to CN202111307350.9A priority Critical patent/CN113986103A/en
Publication of CN113986103A publication Critical patent/CN113986103A/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/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
    • G06F3/04855Interaction with scrollbars
    • 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
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention relates to a seamless rolling writing method, a device, a display device and a storage medium, wherein the method comprises the following steps: establishing a plurality of continuous standard writing pages; establishing a drawing frame and a drawing coordinate system matched with the size parameters of the display area in the display area; acquiring the drawing state of the drawing frame; determining the drawing position of the drawing frame and the bottom coordinate of the current standard writing page which is being drawn according to the drawing coordinate system, and determining the mapping position of the drawing content; and judging whether the standard writing page being drawn is the last page of the established continuous standard writing pages, and if so, generating a continuous standard writing page downwards. The invention has the advantages of being convenient for users to write seamlessly and continuously and improving the continuity of writing.

Description

Seamless rolling writing method and device, display equipment and storage medium
Technical Field
The invention relates to the technical field of handwriting input display, in particular to a seamless rolling writing method, a device, display equipment and a storage medium.
Background
In recent years, handwritten character input has been widely used as an important character input method in display devices with touch panels. At present, with the application of handwritten character input in large-screen display equipment, the large-screen display equipment with a touch screen gradually replaces a traditional white board.
However, the inventors consider that the large-screen display device in the related art has the following drawbacks when writing:
the written content can only be mapped in one page, page adding operation is generally needed in page crossing writing, and then the content is written on the corresponding page respectively, so that the writing continuity is influenced, and the two adjacent pages need to be written separately, so that inconvenience is brought to writing of a user.
Disclosure of Invention
The invention aims to provide a seamless rolling writing method which has the characteristics of facilitating users to write seamlessly and continuously and improving the continuity of writing.
The above object of the present invention is achieved by the following technical solutions:
a seamless scrolling writing method, comprising:
establishing a plurality of continuous standard writing pages, wherein the size parameters of the standard writing pages are matched with the display area;
establishing a drawing frame and a drawing coordinate system matched with the size parameters of the display area in the display area, wherein the drawing frame covers the surface layer of the standard writing page;
acquiring a drawing state of a drawing frame, wherein the drawing state comprises drawing;
determining the drawing position of the drawing frame and the bottom coordinate of the current standard writing page being drawn according to the drawing coordinate system, determining the mapping position of the drawing content, and mapping the drawing content to the current standard writing page if the coordinate of the drawing position does not exceed the bottom coordinate of the current standard writing page; if the coordinate of the drawing position exceeds the bottom coordinate of the current standard writing page, intercepting the drawing content exceeding the bottom coordinate of the current standard writing page and mapping to the next page;
and judging whether the standard writing page being drawn is the last page of the established continuous standard writing pages, and if so, generating a continuous standard writing page downwards.
By adopting the technical scheme, when a writing program of the display is started, firstly, a plurality of continuous standard writing pages are established, then, a drawing frame matched with the size parameters of the display area is established in the display area, and a drawing coordinate system is established according to the size parameters of the display area and the drawing frame; when the standard writing page, the drawing frame and the drawing coordinate system are all established, a user can draw in a display area of the display, when the display acquires that the drawing frame is drawing, the display acquires the drawing position of the current drawing frame and the bottom coordinate of the current standard writing page, and compares the Y-axis coordinate value of the drawing coordinate system corresponding to the drawing position with the Y-axis coordinate value of the drawing coordinate system corresponding to the bottom coordinate of the current standard writing page, so as to determine whether the drawing content exceeds the current writing page, and if the Y-axis coordinate value of the drawing coordinate system corresponding to the drawing content is larger than the Y-axis coordinate value of the bottom of the current standard writing page, the drawing content is mapped to the current standard writing page; otherwise, mapping the drawn content to the next standard writing page, so as to ensure the continuity of writing, thereby enabling the seamless connection of page-crossing writing between two adjacent pages. And after the drawing content is mapped to the corresponding page, judging whether the standard writing page being drawn is the last page of the established continuous standard writing pages, if so, generating a page of continuous standard writing pages downwards, thereby avoiding the need of additionally executing page adding operation by a user to ensure the writing continuity when the user writes downwards.
The present invention in a preferred example may be further configured to: the determining the drawing position of the drawing frame and the bottom coordinate of the current standard writing page according to the drawing coordinate system, and determining the mapping position of the drawing content includes:
establishing a position index identifier of a current standard writing page, wherein the position index identifier carries page number information of the current standard writing page;
calculating the Y-axis offset of the current standard writing page relative to the drawing frame;
acquiring the Y-axis coordinate of the bottom of the current standard writing page according to the offset;
acquiring a Y-axis coordinate of a drawing position, wherein when the drawing frame is drawing content, a Y1 coordinate value and a Y2 coordinate value of the drawing content are detected, and the Y1 coordinate value and the Y2 coordinate value respectively correspond to Y-axis coordinate values corresponding to a highest drawing point and a lowest drawing point of the drawing content;
respectively comparing the Y1 coordinate value and the Y2 coordinate value with the Y-axis coordinate value of the bottom of the current standard writing page to obtain a comparison result;
and mapping the drawing contents to the corresponding standard writing page according to the comparison result, if the Y-axis coordinate value of the bottom of the current standard writing page is between the Y1 coordinate value and the Y2 coordinate value, mapping the drawing contents between the Y1 coordinate and the Y-axis coordinate value of the bottom of the current standard writing page to the current writing page, and intercepting and mapping the rest into the next page.
By adopting the technical scheme, the current standard writing page and the upward offset height of the current standard writing page are determined according to the offset, and the bottom coordinate of the current standard writing page is further determined, so that the offset of the drawing content is convenient to calculate, and the drawing content can be offset to the corresponding standard writing page.
The present invention in a preferred example may be further configured to: the establishing of the position index identification of the current standard writing page comprises the following steps:
acquiring the rolling height of a standard writing page, wherein the rolling height comprises a positive rolling height and a negative rolling height, the positive rolling height is the upward rolling height of the standard writing page, and the negative rolling height is the downward rolling height of the standard writing page;
and obtaining the position index identification of the current standard writing page according to the height relation between the rolling height of the standard writing page and the height of the standard writing page.
By adopting the technical scheme, the position index identification is obtained so as to determine the page number information of the current standard writing page conveniently.
The present invention in a preferred example may be further configured to: the position index identification and the offset are respectively determined by the following two formulas:
the position index identification of the current standard writing page is determined by the following formula,
M=[(x+h)/h],
the offset is determined by the following equation,
P=-(x+h)%h,
wherein, M is a rounding, M represents the position index mark of the current standard writing page, namely the page number of the current standard writing page, x represents the rolling height, and h represents the height of the standard writing page; p is a remainder, P represents the upward offset of the current standard writing page, and P takes a negative value.
By adopting the technical scheme, the position index identification and the offset of the current standard writing page are respectively calculated by the formula, so that the drawing content is conveniently mapped to the corresponding position.
The present invention in a preferred example may be further configured to: the scroll height x is determined by the following formula,
x=x1+x2,
wherein x1 represents a positive scroll height, and x1 takes a positive value; x2 indicates a negative roll height, and x2 takes a negative value.
By adopting the technical scheme, the standard writing page can be positively or reversely scrolled in the normal scrolling process, and the upward scrolling height of the standard writing page is determined by adding the scrolling heights of the positive scrolling and the reverse scrolling.
The present invention in a preferred example may be further configured to: the obtaining of the Y-axis coordinate of the bottom of the current standard writing page according to the offset includes: and calculating the absolute value of the offset of the current standard writing page so as to obtain the Y-axis coordinate of the bottom of the current standard writing page.
By adopting the technical scheme, after the current standard writing page is upwardly offset, the upwardly offset amount of the current standard writing page is the upwardly offset amount of the bottom of the current standard writing page, and when the standard writing page occupies the display area by default, the bottom coordinate of the standard writing page relative to the drawing coordinate system is 0, so that the absolute value of the upwardly offset amount of the current standard writing page is the bottom coordinate of the current standard writing page, and whether the coordinate of the drawing content exceeds the bottom coordinate of the current standard writing page is conveniently compared.
The present invention in a preferred example may be further configured to: the mapping of the drawing contents to the corresponding standard writing page according to the comparison result comprises:
shifting the coordinate value of the drawing content between the Y1 coordinate and the Y-axis coordinate of the bottom of the current standard writing page to the corresponding position of the current standard writing page by adding an offset;
and shifting the coordinate value of the drawing content between the Y-axis coordinate at the bottom of the current standard writing page and the Y2 coordinate, adding the offset and the height of the standard writing page to the corresponding position of the next standard writing page.
By adopting the technical scheme, the content written in the drawing frame can be shifted to the corresponding standard writing page, and the actual position of the drawing content in the standard writing page just corresponds to the position of the drawing frame at which the drawing content is being drawn, namely, the position at which the drawing content is just mapped to the writing page is just the inner layer of the drawing frame at which the drawing position is being drawn.
The invention also aims to provide a seamless rolling writing device which has the characteristics of facilitating seamless continuous writing of users and improving the continuity of writing.
The second aim of the invention is realized by the following technical scheme:
a seamless rolling writing device, comprising,
the writing page module is used for establishing a plurality of continuous standard writing pages, and the size parameters of the standard writing pages are matched with the display area;
the drawing module is used for establishing a drawing frame and a drawing coordinate system which are matched with the size parameters of the display area in the display area, and the drawing frame covers the surface layer of the standard writing page;
the acquisition module is used for acquiring the drawing state of the drawing frame;
the calculation mapping module is used for determining the drawing position of the drawing frame and the bottom coordinate of the current standard writing page according to the drawing coordinate system and determining the mapping position of the drawing content; and the number of the first and second groups,
and the judging module is used for judging whether the standard writing page which is being drawn is the last page of the established continuous standard writing pages or not, and if so, generating a page of continuous standard writing pages downwards.
By adopting the technical scheme, when a writing program of the display is started, firstly, a continuous standard writing page is established through the writing module, then, a drawing frame matched with the size parameter of the display area is established in the display area, and a drawing coordinate system is established according to the size parameter of the display area and the drawing frame; and after the standard writing page, the drawing frame and the drawing coordinate system are established, the drawing state of the drawing frame is obtained through the obtaining module. When the obtaining module obtains that the drawing frame is drawing, the calculating and mapping module obtains the drawing position of the current drawing frame and the bottom coordinate of the current standard writing page, and compares the Y-axis coordinate value of the drawing coordinate system corresponding to the drawing position with the Y-axis coordinate value of the drawing coordinate system corresponding to the bottom coordinate of the current standard writing page, so as to determine whether the drawing content exceeds the current writing page, if the Y-axis coordinate value of the drawing coordinate system corresponding to the drawing content is larger than the Y-axis coordinate value of the bottom of the current standard writing page, the drawing content is mapped to the current standard writing page; otherwise, mapping the drawing content to the next standard writing page. And after the drawing content is mapped to the corresponding page, judging whether the current standard writing page being drawn is the last page of the established continuous standard writing pages through a judging module, and if so, downwards generating one continuous standard writing page to ensure the writing continuity when the user writes downwards.
The third purpose of the invention is to provide a display device which has the function of storing and executing the seamless rolling writing method so as to ensure the normal operation of the seamless rolling writing method.
The third object of the invention is realized by the following technical scheme:
a display device comprising a memory and a processor, the memory having stored thereon a computer program that can be loaded by the processor and that implements any of the above-described seamless scrolling method.
By adopting the technical scheme, the memory is used for storing and using the computer program of the seamless rolling writing method, and the computer program stored in the memory can control the display to run through the processor.
The fourth purpose of the invention is to provide a computer storage medium which can store corresponding programs and has the characteristic of being convenient for realizing the application of a seamless rolling writing method.
The fourth object of the invention is realized by the following technical scheme:
a computer readable storage medium storing a computer program that can be loaded by a processor and executed to perform any of the above seamless scrolling writing methods.
By adopting the technical scheme, the computer readable storage medium stores the computer program which can be loaded by the processor and executes the seamless rolling writing method, so that the seamless rolling writing method can be conveniently applied to platforms of the same type.
In summary, the invention includes at least one of the following beneficial technical effects:
the seamless connection of the cross-page writing between two adjacent pages is realized, and the continuity of the writing is improved;
whether a continuous standard writing page needs to be generated downwards is determined by identifying whether the standard writing page being drawn is the last page or not, so that a user does not need to additionally execute a page adding operation, and the writing continuity of the user in the downward writing process is guaranteed.
Drawings
FIG. 1 is a schematic view of the overall structure of the present invention;
FIG. 2 is an overall schematic block diagram of a first embodiment of the invention;
FIG. 3 is a flowchart illustrating a process of determining a mapping location of a rendered content according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart illustrating a process of obtaining a position index identifier of a current standard writing page according to a first embodiment of the present invention;
fig. 5 is a flowchart illustrating a process of obtaining an offset position and an offset amount of a rendering content according to an embodiment of the present invention.
In the figure, 1, display, 2, display area; 3. drawing a frame; 4. a standard writing page.
Detailed Description
The present invention is described in further detail below with reference to figures 1-5.
The first embodiment is as follows:
referring to fig. 1 and 2, an embodiment of the present invention provides a seamless scrolling writing method, including the following steps:
s1, establishing a plurality of continuous standard writing pages 4;
here, the continuous standard writing pages 4 can be understood as two adjacent standard writing pages 4 being continuously and seamlessly connected, and the standard writing pages 4 establishing two pages by default. Specifically, the continuous and seamless page can be established by adjusting the top coordinate of the next page to correspond to the bottom coordinate of the previous page when two standard writing pages 4 are established. In this embodiment, a separation line is established between two adjacent pages so as to distinguish the two adjacent standard writing pages 4.
Furthermore, before the standard writing page 4 is established, the size parameters of the display area 2 of the display 1 are first obtained, and the established size of the standard writing page 4 is adapted to the size of the display area 2, i.e. the height and width of the standard writing page 4 are adapted to the display area 2 of the display 1.
In the present embodiment, the standard writing page 4 is a page for recording writing, and the standard writing page 4 can be scrolled upward or downward with respect to the display area 2. Wherein, the standard writing page 4 is scrolled upwards, the top of the standard writing page 4 gradually moves upwards out of the display area 2, and the top of the standard writing page 4 of the next page gradually moves into the display area 2; otherwise, the scroll is downward. The standard writing page 4 is two pages, and when the first standard writing page 4 occupies the display area 2, the standard writing page 4 cannot continue to scroll downward.
S2, establishing a drawing frame 3 and a drawing coordinate system matched with the size parameters of the display area 2 in the display area 2;
wherein the size of the drawing frame 3 is adapted to the size of the display area 2. In this embodiment, the drawing frame 3 is a transparent drawing frame 3, and the drawing frame 3 covers the surface layer of the standard writing page 4; the drawing coordinate system is a rectangular plane coordinate system, the X-axis of the drawing coordinate system extends along the length direction of the bottom side of the drawing frame 3, and the Y-axis extends along the height direction of the drawing frame 3.
S3, acquiring the drawing state of the drawing frame 3, wherein the drawing state comprises the drawing;
s4, determining the drawing position of the drawing frame 3 and the bottom coordinate of the current standard writing page according to the drawing coordinate system, and determining the mapping position of the drawing content;
in this embodiment, among the plurality of continuous standard writing pages 4, the current page displayed in the display area 2 is the current standard writing page; when two successive standard writing pages 4 are in the display area 2, that is, a part of the standard writing page 4 of the previous page is combined with a part of the standard writing page 4 of the next page, so that the display area 2 is occupied, the previous page is the current standard writing page.
Further, determining the drawing position of the drawing frame 3 can be determined by recognizing the position where the writing tool or the hand of the user touches the screen and recording the writing trace. Since the touch screen is identified as the prior art, it is not described herein in too much detail. Meanwhile, the hand position of the human body is also recognized during writing, in the embodiment, the hand position of the human body is recognized through the sensors on the periphery side of the display 1, namely, the sensors are respectively installed on the four edges of the frame body of the display 1, or the infrared sensors can be installed only on two adjacent edges of the frame body of the display 1, so that the position of the hand is recognized, and the accuracy of recognizing the drawing position is improved.
Referring to fig. 2 and 3, in the present embodiment, the current standard writing page is determined by the following steps:
s41, establishing a position index mark of the current standard writing page, wherein the position index mark carries page number information of the current standard writing page;
s411, acquiring the rolling height of the standard writing page 4;
in this embodiment, the scrolling height of the standard writing page 4 includes a positive scrolling height and a negative scrolling height, wherein the positive scrolling height is the upward scrolling height of the standard writing page 4, and the negative scrolling height is the downward scrolling height of the standard writing page 4.
Specifically, the scroll height of the standard writing sheet 4 is determined by the following formula,
x=x1+x2,
wherein x represents the scrolling height of the standard writing page 4; x1 denotes positive scroll height, x1 takes a positive value; x2 indicates a negative roll height, and x2 takes a negative value. After the standard writing page 4 is scrolled up and down, when the standard writing page 4 is suspended for a preset time, or when the display 1 recognizes that the user is drawing the content, the scrolling height of the standard writing page 4 can be obtained by reading the Y-axis coordinate of the bottom of the standard writing page 4 of the top page.
In other embodiments, before obtaining the scrolling height of the standard writing page 4, a scroll bar may be established on the right side of the display area 2, the scroll bar may be used to control the standard writing page 4 to scroll up and down, and the scrollable height of the scroll bar is proportional to the sum of the page heights of the established standard writing page 4. That is, when the standard written page 4 is two pages, the scrollable height of the scroll bar is twice the page height of the standard written page 4; when the standard written page 4 is three pages, the scrollable height of the scroll bar is three times the page height of the standard written page 4.
By the relationship between the scroll bar and the page height of the standard writing page 4, when the standard writing page 4 is turned and rolled up and down, the positive rolling height or the negative rolling height of the standard writing page 4 can be calculated by reading the up-down rolling height of the scroll bar.
When the scroll height of the scroll bar is obtained, after the hovering time of the scroll bar reaches the preset time, or when the display 1 identifies that the user is drawing the content, the scroll height of the standard writing page 4 can be obtained by identifying the Y-axis coordinate of the scroll bar in the drawing coordinate system and the relationship between the scroll height of the scroll bar and the page height of the standard writing page 4. That is, when the standard written page 4 has two pages, the height of each standard written page 4 is 10, the highest point of the Y-axis coordinate is 10, and the scroll bar is located at 1/2 of the Y-axis coordinate (i.e., at 5), the scroll height of the standard written page 4 is 10 at this time.
Referring to fig. 4, when the scroll height of the standard written page 4 is acquired, the following step S412 is performed.
And S412, obtaining the position index identifier of the current standard writing page according to the relation between the rolling height and the height of the standard writing page 4.
Specifically, the position index identification of the current standard writing page is determined by the following formula,
M=[(x+h)/h],
where M is a rounding, M represents a position index identifier of the current standard writing page, that is, a page number of the current standard writing page, x represents a scrolling height of the standard writing page 4, and h represents a height of the standard writing page 4.
Hereinafter, x =43 and h =10 are exemplified.
When the standard handwriting page 4 is scrolled 43 upward, the standard handwriting pages 4 displayed in the display area 2 at this time are the fifth page and the sixth page, and M = [5.3] =5 is obtained according to the above formula. M is then matched with the page number of the standard written page 4, thereby determining that the current standard written page is the fifth page. It is understood that, in the present embodiment, when the standard writing pages 4 are established, each standard writing page 4 is generated with a page number, thereby facilitating the determination of the current standard writing page.
After the current standard writing page is determined, the following step S42 is performed.
S42, calculating the Y-axis offset of the current standard writing page relative to the drawing frame 3;
specifically, the offset is determined by the following formula,
P=-(x+h)%h,
wherein x represents the scrolling height and h represents the height of the standard writing page 4; p is a remainder value, and P represents an upward offset of the current standard writing page with respect to the drawing frame 3, that is, a Y-axis offset of the current standard writing page with respect to the drawing frame 3, and P takes a negative value.
The following continues with the illustration of the scrolling height x =43 of the standard written page 4 and the height h =10 of the standard written page 4.
When the standard page 4 is scrolled 43 upward, the offset P = -3 can be calculated according to the above formula, so that it can be known that the current standard page is the fifth standard page 4, and the fifth standard page 4 is shifted 3 upward. It will be appreciated that the display area 2 is displaying a page height of 7 at the bottom of the fifth page and 3 at the top of the sixth page.
After the Y-axis offset of the current standard writing page with respect to the drawing frame 3 is determined, the following step S43 is performed.
S43, acquiring the Y-axis coordinate of the bottom of the current standard writing page according to the offset P;
in the present embodiment, the Y-axis coordinate of the bottom of the current standard writing page is a Y-coordinate corresponding to the drawing coordinate system.
Specifically, the bottom of the current standard writing page is a dividing line at the joint of the current standard writing page and the next standard writing page 4, and the bottom coordinate of the current standard writing page is a Y coordinate relative to the drawing coordinate system. In this embodiment, the bottom coordinate of the current standard writing page may be determined by the upward offset of the current standard writing page, that is, when the current standard writing page is exactly located in the display area 2, the Y-axis coordinate value corresponding to the bottom line of the current standard writing page is exactly 0, and the absolute value of the upward offset of the current standard writing page is exactly the coordinate value of the bottom line of the current standard writing page relative to the Y-axis coordinate, which is the Y-circumference coordinate value of the bottom of the current standard writing page, so as to determine the Y-axis coordinate of the bottom of the current standard writing page.
S44, acquiring the Y-axis coordinate of the position being drawn;
specifically, while the drawing frame 3 is drawing the content, the Y1 coordinate value and the Y2 coordinate value of the drawing content are detected, wherein the Y1 coordinate value and the Y2 coordinate value correspond to the Y-axis coordinate values corresponding to the highest drawing point and the lowest drawing point of the drawing content, respectively. In the present embodiment, the Y1 coordinate value and the Y2 coordinate value are Y-axis coordinate values with respect to the drawing coordinate system.
Upon acquiring the Y1 coordinate value and the Y2 coordinate value, the Y1 coordinate value and the Y2 coordinate value are recorded in the internal memory of the display 1, and then the following step S45 is executed.
S45, comparing the Y1 coordinate value and the Y2 coordinate value with the Y-axis coordinate value of the bottom of the current standard writing page respectively to obtain a comparison result;
s46, mapping the drawing content to the corresponding standard writing page 4 according to the comparison result;
specifically, if the Y1 coordinate value and the Y2 coordinate value are both greater than the Y axis coordinate value of the bottom of the current standard writing page, the drawn content is mapped to the current standard writing page. In this embodiment, when mapping the drawing content to the current standard writing page, adding an offset to the coordinate value of the drawing coordinate system corresponding to the drawing content, so that after the drawing content is offset to the current standard writing page, the actual position of the drawing content on the current standard writing page exactly corresponds to the position where the drawing frame 3 is drawing the content, that is, the position where the drawing content is mapped to the current writing page exactly is the inner layer of the drawing position of the drawing frame 3. The following description takes the offset P = -3 of the upward shift of the current standard writing page as an example:
after the current standard writing page is shifted upward by 3, if the Y-axis coordinate of the drawing content of the user in the drawing frame 3 is 7, then the Y-axis coordinate of the current standard writing page is 4, the Y-axis coordinate of the current standard writing page is the position coordinate of the content to be mapped to the standard writing page 4, and the position coordinate is the standard coordinate of the standard writing page 4. It is understood that, in the present embodiment, a standard coordinate is established on each standard writing page 4, and when one of the standard writing pages 4 just occupies the display area 2, the standard coordinate of the standard writing page 4 just overlaps with the drawing coordinate system. When the standard writing page 4 is shifted upward, the standard coordinates are shifted upward along with the standard writing page 4, and therefore, the position coordinates at which the drawing contents are mapped to the standard writing page 4 can be determined by adding the shift amount to the coordinate values of the drawing contents corresponding to the drawing coordinate system.
And if the Y1 coordinate value and the Y2 coordinate value are both smaller than the Y-axis coordinate value of the bottom of the current standard writing page, mapping the drawing content to the next standard writing page 4. In this embodiment, when mapping the drawing content to the standard writing page 4 of the next page, the coordinate value of the drawing content corresponding to the drawing coordinate system is added with the offset and the page height of the standard writing page 4, so as to obtain the standard coordinate corresponding to the mapping of the drawing content to the next page.
Referring to fig. 5, if the Y-axis coordinate value of the bottom of the current standard writing page is located between the Y1 coordinate value and the Y2 coordinate value, the following steps S461 and S462 are performed.
S461, shifting the coordinate value of the drawing content between the Y1 coordinate and the Y-axis coordinate of the bottom of the current standard writing page to the corresponding position of the current standard writing page by adding the offset;
and S462, adding the offset and the height of the standard writing page 4 to the coordinate value of the drawing content between the Y-axis coordinate at the bottom of the current standard writing page and the Y2 coordinate, and shifting to the corresponding position of the next standard writing page 4.
In the embodiment, the drawing content is correspondingly divided into two parts, so that continuous seamless writing across pages is realized.
After mapping the drawing contents to the corresponding standard written pages 4, respectively, the following step S5 is performed.
And S5, judging whether the standard writing page 4 being drawn is the last page of the established continuous standard writing pages 4, if so, generating a continuous standard writing page 4 downwards so that the user can continuously write downwards.
Example two:
an embodiment of the present invention provides a seamless rolling writing device, including,
the writing page module is used for establishing a plurality of continuous standard writing pages 4, and the size parameters of the standard writing pages 4 are matched with the display area 2;
the drawing module is used for establishing a drawing frame 3 and a drawing coordinate system matched with the size parameters of the display area 2 in the display area 2, and the drawing frame 3 covers the surface layer of the standard writing page 4;
an obtaining module, configured to obtain a drawing state of the drawing frame 3;
the calculation mapping module is used for determining the drawing position of the drawing frame 3 and the bottom coordinate of the current standard writing page according to the drawing coordinate system and determining the mapping position of the drawing content; and the number of the first and second groups,
and the judging module is used for judging whether the standard writing page 4 being drawn is the last page of the established continuous standard writing pages 4 or not, and if so, generating a page of continuous standard writing pages 4 downwards.
Specifically, when a writing program of the display 1 is started, firstly, a continuous standard writing page 4 is established through a writing module, then, a drawing frame 3 matched with the size parameter of the display area 2 is established in the display area 2, and a drawing coordinate system is established according to the size parameters of the display area 2 and the drawing frame 3; and when the standard writing page 4, the drawing frame 3 and the drawing coordinate system are all established, the drawing state of the drawing frame 3 is obtained through the obtaining module. When the obtaining module obtains that the drawing frame 3 is drawing, the calculation mapping module obtains the current drawing position of the drawing frame 3 and the bottom coordinate of the current standard writing page, and compares the Y-axis coordinate value of the drawing coordinate system corresponding to the drawing position with the Y-axis coordinate value of the drawing coordinate system corresponding to the bottom coordinate of the current standard writing page, so as to determine whether the drawing content exceeds the current writing page, if the Y-axis coordinate value of the drawing coordinate system corresponding to the drawing content is larger than the Y-axis coordinate value of the bottom of the current standard writing page, the drawing content is mapped to the current standard writing page; otherwise, mapping the drawing content to the next standard writing page 4. After the drawing content is mapped to the corresponding page, the judging module judges whether the current standard writing page being drawn is the last page of the established continuous standard writing pages 4, if so, the continuous standard writing pages 4 are generated downwards, so that the writing continuity of the user in the downward writing process is ensured.
Example three:
an embodiment of the present invention provides a display device, including a memory and a processor, where the memory stores thereon a computer program that can be loaded by the processor and execute any one of the above methods. Specifically, the display device includes a computer, a mobile phone, a tablet, a reader, a display, a television, and the like.
Example four:
embodiments of the present invention provide a computer-readable storage medium, where the storage medium stores a computer program that can be loaded by a processor and executed to perform any one of the methods described above. It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, the computer program can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The present embodiment is only for explaining the present invention, and it is not limited to the present invention, and those skilled in the art can make modifications of the present embodiment without inventive contribution as needed after reading the present specification, but all of them are protected by patent law within the scope of the claims of the present invention.

Claims (10)

1. A seamless scrolling writing method, comprising:
establishing a plurality of continuous standard writing pages (4), wherein the size parameters of the standard writing pages (4) are matched with the display area (2);
establishing a drawing frame (3) and a drawing coordinate system matched with the size parameters of the display area (2) in the display area (2), wherein the drawing frame (3) covers the surface layer of the standard writing page (4);
acquiring a drawing state of a drawing frame (3), wherein the drawing state comprises drawing;
determining the drawing position of the drawing frame (3) and the bottom coordinate of the current standard writing page being drawn according to the drawing coordinate system, determining the mapping position of the drawing content, and mapping the drawing content to the current standard writing page if the coordinate of the drawing position does not exceed the bottom coordinate of the current standard writing page; if the coordinate of the drawing position exceeds the bottom coordinate of the current standard writing page, intercepting the drawing content exceeding the bottom coordinate of the current standard writing page and mapping to the next page;
and judging whether the standard writing page (4) being drawn is the last page of the established continuous standard writing pages (4), and if so, generating a continuous standard writing page (4) downwards.
2. The method according to claim 1, wherein the determining a drawing position of a drawing frame (3) and a bottom coordinate of a current standard writing page being drawn according to the drawing coordinate system, and the determining a mapping position of the drawing contents comprises:
establishing a position index identifier of a current standard writing page, wherein the position index identifier carries page number information of the current standard writing page;
calculating the Y-axis offset of the current standard writing page relative to the drawing frame (3);
acquiring the Y-axis coordinate of the bottom of the current standard writing page according to the offset;
acquiring a Y-axis coordinate of a drawing position, wherein when the drawing frame (3) is drawing content, a Y1 coordinate value and a Y2 coordinate value of the drawing content are detected, and the Y1 coordinate value and the Y2 coordinate value respectively correspond to Y-axis coordinate values corresponding to a highest drawing point and a lowest drawing point of the drawing content;
respectively comparing the Y1 coordinate value and the Y2 coordinate value with the Y-axis coordinate value of the bottom of the current standard writing page to obtain a comparison result;
and mapping the drawing contents to the corresponding standard writing page (4) according to the comparison result, if the Y-axis coordinate value of the bottom of the current standard writing page is between the Y1 coordinate value and the Y2 coordinate value, mapping the drawing contents between the Y1 coordinate and the Y-axis coordinate value of the bottom of the current standard writing page to the current writing page, and intercepting and mapping the rest into the next page.
3. The method of claim 2, wherein the establishing the position index identification of the current standard writing page comprises:
acquiring the rolling height of the standard writing page (4), wherein the rolling height comprises a positive rolling height and a negative rolling height, the positive rolling height is the upward rolling height of the standard writing page (4), and the negative rolling height is the downward rolling height of the standard writing page (4);
and obtaining the position index identification of the current standard writing page according to the height relation between the rolling height of the standard writing page (4) and the height of the standard writing page (4).
4. The method of claim 3, wherein the position index identification and the offset are determined by the following two equations:
the position index identification of the current standard writing page is determined by the following formula,
M=[(x+h)/h],
the offset is determined by the following equation,
P=-(x+h)%h,
wherein M is a rounding, M represents the position index identification of the current standard writing page, namely the page number of the current standard writing page, x represents the rolling height, and h represents the height of the standard writing page (4); p is a remainder, P represents the upward offset of the current standard writing page, and P takes a negative value.
5. The method of claim 4, wherein the scroll height x is determined by the following formula,
x=x1+x2,
wherein x1 represents a positive scroll height, and x1 takes a positive value; x2 indicates a negative roll height, and x2 takes a negative value.
6. The method of claim 5, wherein the obtaining the Y-axis coordinate of the bottom of the current standard writing page according to the offset comprises: and calculating the absolute value of the offset of the current standard writing page so as to obtain the Y-axis coordinate of the bottom of the current standard writing page.
7. The method according to claim 3, wherein said mapping the drawing contents to the corresponding standard writing page (4) according to the comparison result comprises:
shifting the coordinate value of the drawing content between the Y1 coordinate and the Y-axis coordinate of the bottom of the current standard writing page to the corresponding position of the current standard writing page by adding an offset;
and (3) shifting the coordinate value of the drawing content between the Y-axis coordinate at the bottom of the current standard writing page and the Y2 coordinate to the corresponding position of the next standard writing page (4) by adding the offset and the height of the standard writing page (4).
8. A seamless rolling writing apparatus, comprising,
the writing page module is used for establishing a plurality of continuous standard writing pages (4), and the size parameters of the standard writing pages (4) are matched with the display area (2);
the drawing module is used for establishing a drawing frame (3) and a drawing coordinate system matched with the size parameters of the display area (2) in the display area (2), and the drawing frame (3) covers the surface layer of the standard writing page (4);
the acquisition module is used for acquiring the drawing state of the drawing frame (3);
the calculation mapping module is used for determining the drawing position of the drawing frame (3) and the bottom coordinate of the current standard writing page which is being drawn according to the drawing coordinate system, and determining the mapping position of the drawing content; and the number of the first and second groups,
and the judging module is used for judging whether the standard writing page (4) being drawn is the last page of the established continuous standard writing pages (4) or not, and if so, generating a page of continuous standard writing pages (4) downwards.
9. A display device comprising a memory and a processor, the memory having stored thereon a computer program that can be loaded by the processor and that implements a seamless scrolling writing method according to any of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which can be loaded by a processor and which performs a method according to any one of claims 1 to 7 for seamless scrolling of writing.
CN202111307350.9A 2021-11-05 2021-11-05 Seamless rolling writing method and device, display equipment and storage medium Pending CN113986103A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111307350.9A CN113986103A (en) 2021-11-05 2021-11-05 Seamless rolling writing method and device, display equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111307350.9A CN113986103A (en) 2021-11-05 2021-11-05 Seamless rolling writing method and device, display equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113986103A true CN113986103A (en) 2022-01-28

Family

ID=79746831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111307350.9A Pending CN113986103A (en) 2021-11-05 2021-11-05 Seamless rolling writing method and device, display equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113986103A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1908877A (en) * 2005-08-05 2007-02-07 腾讯科技(深圳)有限公司 Method for automatically locking chat record visible page
CN111679779A (en) * 2020-05-09 2020-09-18 深圳市鸿合创新信息技术有限责任公司 Automatic paging method and device for electronic writing board, terminal and storage medium
CN212114238U (en) * 2020-06-23 2020-12-08 安徽海勤科技有限公司 But pass screen ware of many interfaces split

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1908877A (en) * 2005-08-05 2007-02-07 腾讯科技(深圳)有限公司 Method for automatically locking chat record visible page
CN111679779A (en) * 2020-05-09 2020-09-18 深圳市鸿合创新信息技术有限责任公司 Automatic paging method and device for electronic writing board, terminal and storage medium
CN212114238U (en) * 2020-06-23 2020-12-08 安徽海勤科技有限公司 But pass screen ware of many interfaces split

Similar Documents

Publication Publication Date Title
US5389745A (en) Handwriting input apparatus for inputting handwritten data from unspecified direction
US8850353B2 (en) Method and system for overlaying space-constrained display with a reference pattern during document scrolling operations
US8947397B2 (en) Electronic apparatus and drawing method
TWI483200B (en) Apparatus and method for processing handwriting input
JP6171643B2 (en) Gesture input device
CN103492999B (en) Electronic equipment and hand-written processing method
AU2014201298B2 (en) Graph display apparatus, graph display method and storage medium having stored thereon graph display program
CN111949156B (en) Chinese character writing test method and system of writing device and writing device
CN108334229A (en) Adjust the method, apparatus and equipment, readable storage medium storing program for executing of handwriting trace
CN110866378B (en) Method and system for annotating on display screen
JP2011028697A (en) Information exchange device for inputting handwritten character
CN111782062B (en) Soft input method position adjusting method and device, storage medium and large-screen all-in-one machine
CN113986103A (en) Seamless rolling writing method and device, display equipment and storage medium
CN110737417B (en) Demonstration equipment and display control method and device of marking line of demonstration equipment
CN109358799B (en) Method for adding handwritten annotation information input by user on handwriting equipment
CN108776669B (en) Map display method, map display device, computer device and storage medium
US20140212043A1 (en) Character display apparatus, character display method, and computer readable medium
JP5727957B2 (en) Touch operation determination device, operation control method thereof, and program thereof
CN113296616B (en) Pen point selection method and device and intelligent terminal
JP2014203406A (en) Control device, control method, and control program
CN113849106A (en) Page-turning handwriting processing method and device, electronic device and storage medium
JP2831524B2 (en) Document processing device with gesture editing function
CN111506215B (en) Method and device for erasing screen content
KR102419696B1 (en) scroll control method, apparatus, program and computer readable recording medium
JP2014191383A (en) Display device and display method

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