Seamless scrolling writing method, device, display device and storage medium

By establishing continuous standard writing pages and drawing frames on large-screen display devices, seamless scrolling writing is achieved, which solves the problem of discontinuous cross-page writing and improves the continuity and fluency of writing.

CN113986103BActive Publication Date: 2024-09-24安徽海勤科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111307350.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-05
Publication Date
2024-09-24
Estimated Expiration
2041-11-05

AI Technical Summary

Technical Problem

When writing on existing large-screen display devices, cross-page operations require frequent addition of pages, which affects the continuity of writing, and two adjacent pages need to be written separately, causing inconvenience to users.

Method used

By establishing continuous standard writing pages and drawing frames, and determining the mapping position of the drawing content according to the drawing coordinate system, seamless scrolling writing is achieved, preventing users from adding pages and ensuring the continuity of writing.

Benefits of technology

It achieves a seamless connection between two adjacent pages, improves the continuity of writing, reduces the tediousness of user operations, and enhances the smoothness of writing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113986103B
    Figure CN113986103B
Patent Text Reader

Abstract

The present invention relates to a seamless scroll writing method, device, display device and storage medium, wherein the method comprises: establishing a plurality of continuous standard writing pages; establishing a drawing frame and a drawing coordinate system matching the size parameters of the display area in the display area; obtaining the drawing state of the drawing frame; determining the drawing position of the drawing frame and the bottom coordinates of the current standard writing page being drawn according to the drawing coordinate system, and determining the mapping position of the drawing content; 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 downward. The present invention has the effect of facilitating users to write seamlessly and continuously and improving the continuity of writing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of handwriting input display, and in particular to a seamless scrolling writing method, device, display equipment and storage medium. Background Art

[0002] In recent years, handwriting input, as an important text input method, has been widely used on display devices with touch screens. At present, with the application of handwriting input on large-screen display devices, large-screen display devices with touch screens have gradually replaced traditional whiteboards.

[0003] However, the inventor believes that the large-screen display device in the related art has the following defects when writing:

[0004] The written content can usually only be mapped on one page. When writing across pages, it is generally necessary to add pages first, and then write the content on the corresponding pages respectively, which affects the continuity of writing. In addition, the adjacent pages need to be written separately, which brings inconvenience to the user's writing. Summary of the invention

[0005] The first object of the present invention is to provide a seamless rolling writing method, which is convenient for users to write seamlessly and continuously and improves the continuity of writing.

[0006] The above-mentioned object of the present invention is achieved through the following technical solutions:

[0007] A seamless scrolling writing method, comprising:

[0008] Establishing a plurality of continuous standard writing pages, wherein the size parameters of the standard writing pages match the display area;

[0009] Establishing a drawing frame and a drawing coordinate system matching the size parameters of the display area in the display area, wherein the drawing frame covers the surface layer of the standard writing page;

[0010] Obtaining a drawing state of a drawing frame, wherein the drawing state includes being drawn;

[0011] Determine the drawing position of the drawing frame and the bottom coordinates of the current standard writing page being drawn according to the drawing coordinate system, and determine the mapping position of the drawing content; if the coordinates of the drawing position do not exceed the bottom coordinates of the current standard writing page, map the drawing content to the current standard writing page; if the coordinates of the drawing position exceed the bottom coordinates of the current standard writing page, intercept the drawing content that exceeds the bottom coordinates of the current standard writing page and map it to the next page;

[0012] It is determined whether the standard writing page being drawn is the last page of the established continuous standard writing pages. If so, a continuous standard writing page is generated downward.

[0013] By adopting the above technical solution, when starting the writing program of the display, first, several consecutive standard writing pages are established, and then a drawing frame matching 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, the user can draw in the display area of ​​the display, and when the display obtains that the drawing frame is being drawn, the current drawing position of the drawing frame and the bottom coordinates of the current standard writing page are obtained through the display, and the Y-axis coordinate value of the drawing coordinate system corresponding to the drawing position is compared with the Y-axis coordinate value of the drawing coordinate system corresponding to the bottom coordinates 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 greater 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, the drawing content is mapped to the next standard writing page, so as to ensure the continuity of writing, so that the cross-page writing between two adjacent pages is seamlessly connected. After the drawing content is mapped to the corresponding page, it is determined whether the standard writing page being drawn is the last page of the established continuous standard writing pages. If so, a continuous standard writing page is generated downward, thereby eliminating the need for the user to perform an additional page adding operation to ensure the writing continuity when the user writes downward.

[0014] In a preferred example, the present invention can be further configured as follows: determining the drawing position of the drawing frame and the bottom coordinates of the current standard writing page being drawn according to the drawing coordinate system, and determining the mapping position of the drawing content includes:

[0015] Establishing a position index mark of the current standard writing page, wherein the position index mark carries the page number information of the current standard writing page;

[0016] Calculating the Y-axis offset of the current standard writing page relative to the drawing frame;

[0017] Get the Y-axis coordinate of the bottom of the current standard writing page according to the offset;

[0018] Obtain the Y-axis coordinate of the position being drawn, wherein when the drawing box is drawing content, detect the Y1 coordinate value and the Y2 coordinate value of the drawn content, 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 drawn content respectively;

[0019] Compare the Y1 coordinate value and the Y2 coordinate value with the Y axis coordinate value at the bottom of the current standard writing page to obtain a comparison result;

[0020] According to the comparison results, the drawing content is mapped to the corresponding standard writing page. 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, the drawing content between the Y1 coordinate and the Y-axis coordinate of the bottom of the current standard writing page is mapped to the current writing page, and the remaining part is intercepted and mapped to the next page.

[0021] By adopting the above technical solution, 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 coordinates of the current standard writing page are further determined, thereby facilitating the calculation of the offset of the drawing content so that the drawing content can be offset to the corresponding standard writing page.

[0022] In a preferred example, the present invention can be further configured as follows: the establishment of the position index mark of the current standard writing page includes:

[0023] Obtaining the scroll height of the standard writing page, the scroll height includes a positive scroll height and a negative scroll height, wherein the positive scroll height is the upward scroll height of the standard writing page, and the negative scroll height is the downward scroll height of the standard writing page;

[0024] According to the relationship between the scrolling height of the standard writing page and the height of the standard writing page, the position index mark of the current standard writing page is obtained.

[0025] By adopting the above technical solution, the position index mark is obtained to facilitate determining the page number information of the current standard writing page.

[0026] In a preferred example, the present invention can be further configured as follows: the position index identifier and the offset are determined by the following two formulas respectively:

[0027] The position index identifier of the current standard writing page is determined by the following formula:

[0028] M = [(x + h) / h],

[0029] The offset is determined by the following formula,

[0030] P=-(x+h)%h,

[0031] Among them, M is rounding, M represents the position index identifier of the current standard writing page, that is, the page number of the current standard writing page, x represents the scrolling height, and h represents the height of the standard writing page; P is the remainder, P represents the upward offset of the current standard writing page, and P takes a negative value.

[0032] By adopting the above technical solution, the position index mark and the offset of the current standard writing page are calculated by the above formulas respectively, so as to facilitate mapping the drawing content to the corresponding position.

[0033] In a preferred example, the present invention can be further configured as follows: the scroll height x is determined by the following formula:

[0034] x=x1+x2,

[0035] Among them, x1 represents the positive scroll height, x1 takes a positive value; x2 represents the negative scroll height, x2 takes a negative value.

[0036] By adopting the above technical solution, during normal scrolling, the standard writing page can be scrolled forward or backward, and the upward scrolling height of the standard writing page is determined by adding the scrolling heights of the forward scrolling and the reverse scrolling.

[0037] In a preferred example, the present invention can be further configured as follows: obtaining the Y-axis coordinate of the bottom of the current standard writing page according to the offset includes: calculating the absolute value of the offset of the current standard writing page to obtain the Y-axis coordinate of the bottom of the current standard writing page.

[0038] By adopting the above technical solution, after the current standard writing page is offset upward, the amount of the upward offset of the current standard writing page is the amount of the upward offset of the bottom of the current standard writing page. 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. Therefore, the absolute value of the upward offset of the current standard writing page is the bottom coordinate of the current standard writing page, which is convenient for comparing whether the coordinates of the drawn content exceed the bottom coordinates of the current standard writing page.

[0039] In a preferred example, the present invention can be further configured as follows: mapping the drawing content to the corresponding standard writing page according to the comparison result includes:

[0040] Add the offset to 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 and shift it to the corresponding position of the current standard writing page;

[0041] The coordinate value of the drawing content between the Y-axis coordinate and the Y2 coordinate at the bottom of the current standard writing page is added with the offset and the height of the standard writing page to the corresponding position of the next standard writing page.

[0042] By adopting the above technical solution, the content written in the drawing box can be offset to the corresponding standard writing page, and the actual position of the drawn content on the standard writing page corresponds exactly to the position of the content being drawn by the drawing box, that is, the position of the drawing content mapped to the writing page is exactly the inner layer of the position where the drawing box is drawing.

[0043] The second object of the present invention is to provide a seamless rolling writing device, which has the characteristics of facilitating users to write seamlessly and continuously and improving the continuity of writing.

[0044] The second object of the present invention is achieved by the following technical solutions:

[0045] A seamless rolling writing device, comprising:

[0046] A writing page module, used to establish a number of continuous standard writing pages, wherein the size parameters of the standard writing pages match the display area;

[0047] A drawing module, used for establishing a drawing frame and a drawing coordinate system in the display area that match the size parameters of the display area, wherein the drawing frame covers the surface layer of the standard writing page;

[0048] The acquisition module is used to obtain the drawing status of the drawing frame;

[0049] a calculation mapping module, used to determine the drawing position of the drawing frame and the bottom coordinates of the current standard writing page being drawn according to the drawing coordinate system, and determine the mapping position of the drawing content; and

[0050] The judging module is used to judge whether the standard writing page being drawn is the last page of the established continuous standard writing pages, and if so, to generate a continuous standard writing page downward.

[0051] By adopting the above technical solution, when starting the writing program of the display, firstly, a continuous standard writing page is established through the writing module, then a drawing frame matching 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, the drawing state of the drawing frame is obtained through the acquisition module. When the acquisition module obtains that the drawing frame is being drawn, the calculation mapping module obtains the drawing position of the current drawing frame and the bottom coordinates 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 coordinates 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 greater 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, the drawing content is mapped to the next standard writing page. After the drawing content is mapped to the corresponding page, the judgment module determines whether the current standard writing page being drawn is the last page of the established continuous standard writing pages. If so, a continuous standard writing page is generated downward to ensure the writing continuity of the user when writing downward.

[0052] The third object of the present invention is to provide a display device having the function of storing and executing the seamless scrolling writing method to ensure the normal operation of the seamless scrolling writing method.

[0053] The third object of the present invention is achieved through the following technical solutions:

[0054] A display device comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and execute any one of the above-mentioned seamless scrolling writing methods.

[0055] By adopting the above technical solution, the memory is used to store and use the computer program of the seamless scrolling writing method, and the computer program stored in the memory can control the display to run through the processor.

[0056] The fourth object of the present invention is to provide a computer storage medium that can store corresponding programs and has the characteristic of facilitating the use of a seamless scrolling writing method.

[0057] The fourth object of the present invention is achieved by the following technical solutions:

[0058] A computer-readable storage medium stores a computer program that can be loaded by a processor and execute any one of the above-mentioned seamless scrolling writing methods.

[0059] By adopting the above technical solution, a computer-readable storage medium stores a computer program that can be loaded by a processor and execute the seamless scrolling writing method, so as to facilitate the application of the seamless scrolling writing method between platforms of the same type.

[0060] In summary, the present invention includes at least one of the following beneficial technical effects:

[0061] It realizes seamless connection between two adjacent pages, improving the continuity of writing;

[0062] By identifying whether the standard writing page being drawn is the last page, it is determined whether a continuous standard writing page needs to be generated downward, thereby eliminating the need for the user to perform an additional page adding operation to ensure the writing continuity when the user writes downward. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 It is a schematic diagram of the overall structure of the present invention;

[0064] Figure 2 It is an overall principle block diagram of the first embodiment of the present invention;

[0065] Figure 3 is a schematic diagram of a process for determining a mapping position of a drawing content in the first embodiment of the present invention;

[0066] Figure 4 It is a schematic diagram of a process of obtaining a position index identifier of a current standard writing page in the first embodiment of the present invention;

[0067] Figure 5 It is a schematic diagram of the process of obtaining the offset position and offset amount of the drawing content in the first embodiment of the present invention.

[0068] In the figure, 1. display; 2. display area; 3. drawing frame; 4. standard writing page. DETAILED DESCRIPTION

[0069] The following is combined with Figure 1-5 The present invention is described in further detail.

[0070] Embodiment 1:

[0071] Reference Figure 1 and Figure 2 , an embodiment of the present invention provides a seamless scrolling writing method, comprising the following steps:

[0072] S1. Establish several continuous standard writing pages 4;

[0073] Among them, the continuous standard writing page 4 can be understood as two adjacent standard writing pages 4 being connected continuously and seamlessly, and the standard writing page 4 is established as two pages by default. Specifically, the establishment of continuous and seamless pages can be achieved by adjusting the top coordinates of the latter page to correspond to the bottom coordinates of the previous page when establishing two standard writing pages 4. In this embodiment, a separator line is established between two adjacent pages to distinguish the two adjacent standard writing pages 4.

[0074] In addition, before establishing the standard writing page 4, the size parameters of the display area 2 of the display 1 are first obtained, and the size of the established standard writing page 4 is adapted to the size of the display area 2, that is, the height and width of the standard writing page 4 are adapted to the display area 2 of the display 1.

[0075] In this embodiment, the standard writing page 4 is a page for recording written content, and the standard writing page 4 can be scrolled up or down relative to the display area 2. The standard writing page 4 scrolls up when the top of the standard writing page 4 gradually moves up out of the display area 2, and the top of the next standard writing page 4 gradually moves into the display area 2; the opposite is scrolling down. The standard writing page 4 consists of two pages, and when the first standard writing page 4 fills the display area 2, the standard writing page 4 cannot continue to scroll down.

[0076] S2, establishing a drawing frame 3 and a drawing coordinate system in the display area 2 that match the size parameters of the display area 2;

[0077] 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 of the standard writing page 4; the drawing coordinate system is a plane rectangular coordinate system, and 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.

[0078] S3, obtaining the drawing state of the drawing frame 3, wherein the drawing state includes drawing in progress;

[0079] S4, determining the drawing position of the drawing frame 3 and the bottom coordinates of the current standard writing page being drawn according to the drawing coordinate system, and determining the mapping position of the drawing content;

[0080] In this embodiment, among several consecutive standard writing pages 4, the current page displayed in the display area 2 is the current standard writing page; and when two consecutive standard writing pages 4 are in the display area 2, that is, a part of the previous standard writing page 4 is combined with a part of the next standard writing page 4, thereby occupying the display area 2, the previous page is the current standard writing page.

[0081] In addition, the drawing position of the drawing frame 3 can be determined by identifying the position where the writing tool or the user's hand touches the screen and recording the writing trajectory. Since touch screen recognition is a prior art, it will not be described in detail here. At the same time, the position of the human hand is also identified when writing. In this embodiment, the position of the human hand is identified by the sensor on the peripheral side of the display 1, that is, sensors are installed on the four edges of the frame of the display 1, or infrared sensors can be installed only on two adjacent edges of the frame of the display 1 to identify the position of the hand, thereby improving the accuracy of identifying the drawing position.

[0082] Reference Figure 2 and Figure 3 In this embodiment, the current standard writing page is determined by the following steps:

[0083] 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;

[0084] S411, obtaining the scroll height of the standard writing page 4;

[0085] 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 .

[0086] Specifically, the scroll height of the standard writing page 4 is determined by the following formula:

[0087] x=x1+x2,

[0088] Wherein, x represents the scrolling height of the standard writing page 4; x1 represents the positive scrolling height, and x1 takes a positive value; x2 represents the negative scrolling height, and x2 takes a negative value. After the standard writing page 4 is scrolled up and down, when the hovering time of the standard writing page 4 reaches a preset time, or when the display 1 recognizes that the user is drawing 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 home page.

[0089] In other embodiments, before obtaining the scroll height of the standard writing page 4, a scroll bar may be established on the right side of the display area 2, and the scroll bar may be used to control the scrolling of the standard writing page 4, and the scrollable height of the scroll bar is proportional to the sum of the page heights of the established standard writing pages 4. That is, when the standard writing page 4 is two pages, the scrollable height of the scroll bar is twice the page height of the standard writing page 4; when the standard writing page 4 is three pages, the scrollable height of the scroll bar is three times the page height of the standard writing page 4.

[0090] Based on the relationship between the scroll bar and the page height of the standard writing page 4, when the standard writing page 4 is scrolled up and down, the positive scroll height or negative scroll height of the standard writing page 4 can be calculated by reading the up and down scroll height of the scroll bar.

[0091] When obtaining the scroll height of the scroll bar, when the scroll bar hovers for a preset time, or when the display 1 recognizes that the user is drawing 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 writing page 4 is two pages, the height of each standard writing page 4 is 10, the highest point of the Y-axis coordinate is 10, and the scroll bar is located at the position of 1 / 2 of the Y-axis coordinate (i.e., the position of coordinate 5), then the scroll height of the standard writing page 4 is 10.

[0092] Reference Figure 4 After the scroll height of the standard writing page 4 is obtained, the following step S412 is performed.

[0093] S412: According to the relationship between the scrolling height and the height of the standard writing page 4, a position index mark of the current standard writing page is obtained.

[0094] Specifically, the position index identifier of the current standard writing page is determined by the following formula:

[0095] M = [(x + h) / h],

[0096] Among them, M is rounded, M represents the position index identifier of the current standard writing page, that is, the page number of the current standard writing page, x represents the scrolling height of the standard writing page 4, and h represents the height of the standard writing page 4.

[0097] The following example uses x=43 and h=10.

[0098] When the standard writing page 4 is scrolled upward 43, the standard writing page 4 displayed in the display area 2 is the fifth and sixth pages. According to the above formula, M=[5.3]=5 can be obtained. Then M is matched with the page number of the standard writing page 4, thereby determining that the current standard writing page is the fifth page. It can be understood that in this embodiment, when the standard writing page 4 is established, each standard writing page 4 is generated with a page number, so as to facilitate the determination of the current standard writing page.

[0099] After the current standard writing page is determined, the following step S42 is performed.

[0100] S42, calculating the Y-axis offset of the current standard writing page relative to the drawing frame 3;

[0101] Specifically, the offset is determined by the following formula:

[0102] P=-(x+h)%h,

[0103] Among them, x represents the scrolling height, h represents the height of the standard writing page 4; P is the remainder value, and P represents the upward offset of the current standard writing page relative to the drawing frame 3, that is, the Y-axis offset of the current standard writing page relative to the drawing frame 3, and P takes a negative value.

[0104] The following continues to illustrate with an example in which the scrolling height x of the standard writing page 4 is 43 and the height h of the standard writing page 4 is 10.

[0105] When the standard writing page 4 is scrolled up 43, the offset P=-3 can be calculated according to the above formula, from which it can be known that the current standard writing page is the fifth standard writing page 4, and the fifth standard writing page 4 is offset upward by 3. It can be understood that the display area 2 is displaying the page height of 7 at the bottom of the fifth page and the page height of 3 at the top of the sixth page.

[0106] After determining the Y-axis offset of the current standard writing page relative to the drawing frame 3, the following step S43 is performed.

[0107] S43, obtaining the Y-axis coordinate of the bottom of the current standard writing page according to the offset P;

[0108] In this embodiment, the Y-axis coordinate of the bottom of the current standard writing page is the Y-coordinate corresponding to the drawing coordinate system.

[0109] Specifically, the bottom of the current standard writing page is the dividing line at the connection between the current standard writing page and the next standard writing page 4, and the bottom coordinate of the current standard writing page is the Y coordinate relative to the drawing coordinate system. In this embodiment, the bottom coordinate of the current standard writing page can 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-axis coordinate value of the bottom of the current standard writing page, thereby determining the Y-axis coordinate of the bottom of the current standard writing page.

[0110] S44, obtaining the Y-axis coordinate of the position being drawn;

[0111] Specifically, when the drawing frame 3 is drawing 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 this embodiment, the Y1 coordinate value and the Y2 coordinate value are Y-axis coordinate values ​​relative to the drawing coordinate system.

[0112] After the Y1 coordinate value and the Y2 coordinate value are acquired, 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 performed.

[0113] S45, comparing the Y1 coordinate value and the Y2 coordinate value with the Y-axis coordinate value at the bottom of the current standard writing page, respectively, to obtain a comparison result;

[0114] S46, mapping the drawn content to the corresponding standard writing page 4 according to the comparison result;

[0115] Specifically, if both the Y1 coordinate value and the Y2 coordinate value are greater than the Y-axis coordinate value at 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 drawn content to the current standard writing page, the coordinate value of the drawn content corresponding to the drawing coordinate system is added with an offset, so that after the drawn content is offset to the current standard writing page, the actual position of the drawn content on the current standard writing page corresponds exactly to the position of the drawing frame 3 being drawn, that is, the position of the drawn content mapped to the current writing page is exactly the inner layer of the position where the drawing frame 3 is being drawn. The following is an example of the offset P=-3 of the upward offset of the current standard writing page:

[0116] After the current standard writing page is shifted upward by 3, if the Y-axis coordinate of the user's drawing content in the drawing frame 3 is 7, then the Y-axis coordinate corresponding to the current standard writing page is 4, and the Y-axis coordinate of the current standard writing page is the position coordinate of the content that needs to be mapped to the standard writing page 4, and the position coordinate is the standard coordinate corresponding to the standard writing page 4. It can be understood that, in this embodiment, a standard coordinate is established on each standard writing page 4. When one of the standard writing pages 4 just fills 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 shifts upward, the standard coordinate shifts upward with the standard writing page 4. Therefore, by adding the offset to the coordinate value of the drawing content corresponding to the drawing coordinate system, the position coordinate of the drawing content mapped to the standard writing page 4 can be determined.

[0117] If both the Y1 coordinate value and the Y2 coordinate value are less than the Y-axis coordinate value at the bottom of the current standard writing page, the drawing content is mapped to the next standard writing page 4. In this embodiment, when the drawing content is mapped to the next standard writing page 4, 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, thereby obtaining the standard coordinate corresponding to the drawing content when it is mapped to the next page.

[0118] Reference Figure 5 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, the following steps S461 and S462 are executed.

[0119] S461, adding an offset to 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 shift to the corresponding position of the current standard writing page;

[0120] S462, the coordinate value of the drawing content located between the Y-axis coordinate and the Y2 coordinate at the bottom of the current standard writing page is added with the offset and the height of the standard writing page 4 to the corresponding position of the next standard writing page 4.

[0121] In this embodiment, the drawn content is divided into two parts, thereby achieving continuous seamless writing across pages.

[0122] After the drawing contents are mapped to the corresponding standard writing pages 4 respectively, the following step S5 is performed.

[0123] S5. Determine whether the standard writing page 4 being drawn is the last page of the established continuous standard writing pages 4. If yes, generate a continuous standard writing page 4 downwards to allow the user to write continuously downwards.

[0124] Embodiment 2:

[0125] An embodiment of the present invention provides a seamless rolling writing device, comprising:

[0126] A writing page module, used to establish a plurality of continuous standard writing pages 4, wherein the size parameters of the standard writing pages 4 match the display area 2;

[0127] A drawing module, used for establishing a drawing frame 3 and a drawing coordinate system in the display area 2 that match the size parameters of the display area 2, wherein the drawing frame 3 covers the surface of the standard writing page 4;

[0128] An acquisition module, used to acquire the drawing status of the drawing frame 3;

[0129] A calculation mapping module determines the drawing position of the drawing frame 3 and the bottom coordinates of the current standard writing page being drawn according to the drawing coordinate system, and determines the mapping position of the drawing content; and

[0130] The judging module is used to judge whether the standard writing page 4 being drawn is the last page of the established continuous standard writing pages 4, and if so, to generate a continuous standard writing page 4 downward.

[0131] Specifically, when the writing program of the display 1 is started, firstly, a continuous standard writing page 4 is established through the writing module, then a drawing frame 3 matching the size parameters 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; 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 acquired through the acquisition module. When the acquisition module acquires that the drawing frame 3 is being drawn, the calculation and mapping module acquires the drawing position of the current drawing frame 3 and the bottom coordinates 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 coordinates 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 greater 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, the drawing content is mapped to the next standard writing page 4. After the drawing content is mapped to the corresponding page, the judgment module determines whether the current standard writing page being drawn is the last page of the established continuous standard writing page 4. If so, a continuous standard writing page 4 is generated downward to ensure the writing continuity of the user when writing downward.

[0132] Embodiment three:

[0133] An embodiment of the present invention provides a display device, including a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and execute any of the above methods. Specifically, the display device includes a computer, a mobile phone, a tablet, a reader, a display, a television, etc.

[0134] Embodiment 4:

[0135] An embodiment of the present invention provides a computer-readable storage medium, wherein the storage medium stores a computer program that can be loaded by a processor and execute any of the above methods. A person of ordinary skill in the art can understand that the implementation of all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it may include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0136] This specific embodiment is merely an explanation of the present invention and is not a limitation of the present invention. After reading this specification, those skilled in the art may make non-creative modifications to the present embodiment as needed. However, as long as they are within the scope of the claims of the present invention, they are protected by the patent law.

Claims

1. A seamless scrolling writing method, characterized in that: include: Establish a plurality of continuous standard writing pages (4), wherein the size parameters of the standard writing pages (4) match the display area (2); establish a drawing frame (3) and a drawing coordinate system matching the size parameters of the display area (2) in the display area (2), wherein the drawing frame (3) covers the surface of the standard writing page (4); obtain the drawing state of the drawing frame (3), wherein the drawing state includes drawing; determine the drawing position of the drawing frame (3) and the bottom coordinates of the current standard writing page being drawn according to the drawing coordinate system, and determine the mapping position of the drawing content, if the coordinates of the drawing position do not exceed the bottom coordinates of the current standard writing page, then map the drawing content to the current standard writing page; if the coordinates of the drawing position exceed the bottom coordinates of the current standard writing page, then intercept the drawing content exceeding the bottom coordinates of the current standard writing page and map it to the next page; determine whether the standard writing page (4) being drawn is the last page of the continuous standard writing pages (4) that have been established, and if so, generate a continuous standard writing page (4) downward; The method of determining the drawing position of the drawing frame (3) and the bottom coordinates of the current standard writing page being drawn according to the drawing coordinate system, and determining the mapping position of the drawing content comprises: establishing a position index mark of the current standard writing page, wherein the position index mark carries the 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); obtaining the Y-axis coordinate of the bottom of the current standard writing page according to the offset; and obtaining the Y-axis coordinate of the drawing position, wherein when the drawing frame (3) is drawing content, detecting the Y1 coordinate value and the Y2 coordinate value of the drawing content, 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; the Y1 coordinate value and the Y2 coordinate value are compared with the Y-axis coordinate value at the bottom of the current standard writing page respectively to obtain a comparison result; according to the comparison result, the drawing content is mapped to the corresponding standard writing page (4); if the Y-axis coordinate value at the bottom of the current standard writing page is between the Y1 coordinate value and the Y2 coordinate value, the drawing content between the Y1 coordinate and the Y-axis coordinate at the bottom of the current standard writing page is mapped to the current writing page, and the remaining part is intercepted and mapped to the next page.

2. The method according to claim 1, characterized in that The method of establishing the position index identifier of the current standard writing page comprises: obtaining the scroll height of the standard writing page (4), wherein the scroll height comprises a positive scroll height and a negative scroll height, wherein the positive scroll height is the upward scroll height of the standard writing page (4), and the negative scroll height is the downward scroll height of the standard writing page (4); and obtaining the position index identifier of the current standard writing page according to the relationship between the scroll height of the standard writing page (4) and the height of the standard writing page (4).

3. The method according to claim 2, characterized in that The position index identifier and the offset are determined by the following two formulas respectively: the position index identifier of the current standard writing page is determined by the following formula, M=[(x+h) / h], and the offset is determined by the following formula, P=-(x+h)%h, wherein M is rounded, M represents the position index identifier of the current standard writing page, that is, the page number of the current standard writing page, x represents the scrolling height, and h represents the height of the standard writing page (4); P is the remainder, P represents the upward offset of the current standard writing page, and P takes a negative value.

4. The method according to claim 3, characterized in that 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 represents a negative scroll height and x2 takes a negative value.

5. The method according to claim 4, characterized in that The obtaining of the Y-axis coordinate of the bottom of the current standard writing page according to the offset includes: calculating the absolute value of the offset of the current standard writing page to obtain the Y-axis coordinate of the bottom of the current standard writing page.

6. The method according to claim 2, characterized in that The method of mapping the drawing content to the corresponding standard writing page (4) according to the comparison result includes: adding an offset to the coordinate value of the drawing content located between the Y1 coordinate and the Y-axis coordinate at the bottom of the current standard writing page to shift it to the corresponding position of the current standard writing page; adding an offset to the coordinate value of the drawing content located between the Y-axis coordinate at the bottom of the current standard writing page and the Y2 coordinate to shift it to the corresponding position of the next standard writing page (4).

7. A seamless rolling writing device, characterized in that: It comprises a writing page module, which is used to establish a plurality of continuous standard writing pages (4), wherein the size parameters of the standard writing pages (4) match the display area (2); A drawing module, used for establishing a drawing frame (3) and a drawing coordinate system matching the size parameters of the display area (2) in the display area (2), wherein the drawing frame (3) covers the surface of the standard writing page (4); an acquisition module, used for acquiring the drawing state of the drawing frame (3); a calculation mapping module, used for determining the drawing position of the drawing frame (3) and the bottom coordinates of the current standard writing page being drawn according to the drawing coordinate system, and determining the mapping position of the drawing content; and a judgment module, used for 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) downward; The calculation mapping module is specifically used for: Establishing a position index mark of the current standard writing page, the position index mark carries the 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); obtaining the Y-axis coordinate of the bottom of the current standard writing page according to the offset; obtaining the Y-axis coordinate of the position being drawn, wherein when the drawing frame (3) is drawing content, detecting the Y1 coordinate value and the Y2 coordinate value of the drawn content, the Y1 coordinate value and the Y2 coordinate value respectively corresponding to the Y-axis coordinate values ​​corresponding to the highest drawing point and the lowest drawing point of the drawn content; 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; The drawing content is mapped 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, the drawing content between the Y1 coordinate and the Y-axis coordinate of the bottom of the current standard writing page is mapped to the current writing page, and the remaining part is intercepted and mapped to the next page.

8. A display device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and execute the seamless scrolling writing method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and execute the seamless scrolling writing method according to any one of claims 1 to 6.