[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN116883548B - Method and device for conveniently adding and modifying electronic image in electronic document - Google Patents

Method and device for conveniently adding and modifying electronic image in electronic document Download PDF

Info

Publication number
CN116883548B
CN116883548B CN202311156345.1A CN202311156345A CN116883548B CN 116883548 B CN116883548 B CN 116883548B CN 202311156345 A CN202311156345 A CN 202311156345A CN 116883548 B CN116883548 B CN 116883548B
Authority
CN
China
Prior art keywords
target
electronic
target electronic
electronic document
drawing board
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.)
Active
Application number
CN202311156345.1A
Other languages
Chinese (zh)
Other versions
CN116883548A (en
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.)
Fuxin Kunpeng Beijing Information Technology Co ltd
Original Assignee
Fuxin Kunpeng Beijing Information 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 Fuxin Kunpeng Beijing Information Technology Co ltd filed Critical Fuxin Kunpeng Beijing Information Technology Co ltd
Priority to CN202311156345.1A priority Critical patent/CN116883548B/en
Publication of CN116883548A publication Critical patent/CN116883548A/en
Application granted granted Critical
Publication of CN116883548B publication Critical patent/CN116883548B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a method and a device for conveniently adding and modifying an electronic image in an electronic document, belonging to the technical field of document processing, wherein the method comprises the following steps: opening a target electronic document based on the electronic document reading tool; displaying the target electronic drawing board in the target electronic document according to the target parameters; the target parameters include at least one of: initializing electronic drawing board parameters, view parameters corresponding to the electronic document, screen parameters of an electronic document reading tool and document information of a target electronic document; acquiring a target electronic image drawn on a target electronic drawing board; the target electronic image is added to a target location in the target electronic document. The invention can realize the effect of seamless combination of the electronic drawing board and the electronic document, effectively solve the problem that the electronic writing image cannot be conveniently added in the electronic document in the prior art, and promote the synchronous use efficiency of the electronic document and the electronic writing image.

Description

Method and device for conveniently adding and modifying electronic image in electronic document
Technical Field
The invention relates to the technical field of document processing, in particular to a method and a device for conveniently adding and modifying electronic images in electronic documents.
Background
Electronic documents refer to text materials formed in social activities by taking chemical magnetic materials such as computer disks, magnetic disks and optical disks as carriers. Relying on computer system access and transmission over a communication network. The system mainly comprises electronic documents, electronic letters, electronic reports, electronic drawings and the like, and has the characteristics of cross-platform compatibility, format and layout maintenance, multimedia and interactivity, security and authority control, searchability and editability and the like. At present, the plate type document and the stream type document are used as common electronic document formats, the characteristics are realized through different technical methods, and various requirements and use scenes are met.
At present, in the using process of an electronic document, only browsing and editing work can be carried out on the electronic document, and electronic images cannot be conveniently added and modified in the electronic document, so that the scene requirement of synchronous processing of the electronic document and the electronic image cannot be met.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a method and a device for conveniently adding and modifying electronic images in electronic documents.
Specifically, the embodiment of the invention provides the following technical scheme:
in a first aspect, an embodiment of the present invention provides a method for adding and modifying an electronic image in an electronic document, including:
opening a target electronic document based on the electronic document reading tool;
displaying a target electronic drawing board in the target electronic document according to the target parameters; the target parameters include at least one of: initializing electronic drawing board parameters, view parameters corresponding to the electronic document, screen parameters of an electronic document reading tool and document information of a target electronic document;
acquiring a target electronic image drawn on the target electronic drawing board;
and adding the target electronic image to a target position in the target electronic document.
Further, after the target electronic drawing board is displayed in the target electronic document, the method further comprises:
and adjusting the position of the target electronic drawing board in the target electronic document and/or the size of the target electronic drawing board.
Further, after the target electronic image drawn on the target electronic drawing board is obtained, the method further comprises:
executing target operation on the target electronic image drawn on the target electronic drawing board; the target operation includes at least one of: revocation, anti-revocation, and target electronic image attribute settings.
Further, editing operation is carried out on the target electronic image stored on the target electronic drawing board.
Further, before adding the target electronic image to the target position in the target electronic document, the method further includes:
adding the target electronic image into the target electronic document to obtain a target preview image;
and adjusting the position of the target electronic image in the target electronic document according to the target preview image.
Further, after adding the target electronic image to the target position in the target electronic document, further comprising:
executing target operation on a target electronic image in the target electronic document; the target operation includes at least one of: revocation, anti-revocation, and target electronic image attribute settings.
Further, under the condition that the target control in the target electronic drawing board is separated from the interface event corresponding to the target control, the target control in the target electronic drawing board is adjusted.
In a second aspect, an embodiment of the present invention further provides an apparatus for adding and modifying an electronic image in an electronic document, including:
the processing module is used for opening the target electronic document based on the electronic document reading tool;
displaying a target electronic drawing board in the target electronic document according to the target parameters; the target parameters include at least one of: initializing electronic drawing board parameters, view parameters corresponding to the electronic document, screen parameters of an electronic document reading tool and document information of a target electronic document;
the acquisition module is used for acquiring the target electronic image drawn on the target electronic drawing board;
and the adding module is used for adding the target electronic image to a target position in the target electronic document.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements a method for adding and modifying an electronic image in an electronic document conveniently according to the first aspect when the processor executes the program.
In a fourth aspect, embodiments of the present invention also provide a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method for facilitating addition of modified electronic images in an electronic document according to the first aspect.
In a fifth aspect, an embodiment of the present invention further provides a computer program product, including a computer program, where the computer program when executed by a processor implements a method for adding and modifying an electronic image in an electronic document according to the first aspect.
According to the method and the device for conveniently adding and modifying the electronic image in the electronic document, the target electronic document is opened based on the electronic document reading tool, and the target electronic drawing board is displayed in the target electronic document according to the target parameters, so that the use efficiency of the electronic drawing board in the electronic document and the configuration efficiency of the target electronic document and the target electronic drawing board are improved; and then, the target electronic image drawn on the target electronic drawing board is obtained, and the target electronic image is added to the target position in the target electronic document, so that the document can be modified, edited and added with the electronic image without complicated operation, the operation on the document is coherent and concise, the function of conveniently adding the electronic image in the electronic document is realized, the problem that the electronic writing image cannot be conveniently added in the electronic document in the prior art is effectively solved, and the scene that the electronic document editing and electronic image modification requirements exist simultaneously is satisfied.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a method for conveniently adding and modifying an electronic image in an electronic document according to an embodiment of the present invention;
FIG. 2 is a second flowchart of a method for adding and modifying electronic images to electronic documents according to an embodiment of the present invention;
FIG. 3 is a third flowchart of a method for adding and modifying electronic images to electronic documents according to an embodiment of the present invention;
FIGS. 4-5 are schematic diagrams illustrating initializing parameters of an electronic palette and electronic document related files according to embodiments of the present invention;
FIGS. 6-7 are schematic diagrams of an electronic palette for adjustment according to embodiments of the present invention;
8-11 are schematic diagrams for adjusting the position of a target electronic drawing board in a target electronic document and/or the size of the target electronic drawing board according to an embodiment of the present invention;
FIG. 12 is a schematic diagram of performing undo and undo on a target electronic image drawn on a target electronic palette provided by an embodiment of the present invention;
FIG. 13 is a schematic diagram of editing a saved electronic image according to an embodiment of the present invention;
FIG. 14 is a schematic view of an electronic image provided by an embodiment of the present invention being rotated/deleted/inserted while previewing in an electronic document;
FIG. 15 is a schematic diagram of operations performed on an electronic image in an electronic document provided by an embodiment of the present invention;
FIGS. 16-17 are schematic diagrams illustrating the undo and undo functions of an electronic palette provided by embodiments of the present invention;
FIGS. 18-19 are schematic diagrams illustrating the electronic image editing after the electronic image is saved according to the embodiment of the present invention;
FIGS. 20-21 are schematic diagrams illustrating adjustment of previewed electronic images according to embodiments of the present invention;
FIGS. 22-23 are schematic illustrations of modification of an electronic image after the electronic image has been added to a document, provided by an embodiment of the present invention;
FIGS. 24-25 are schematic diagrams of saved palette content and saved document views provided by embodiments of the present invention;
FIG. 26 is a schematic diagram of a device for adding and modifying electronic images to electronic documents conveniently according to an embodiment of the present invention;
fig. 27 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The method of the embodiment of the invention can be applied to a document processing scene, conveniently adds the function of the electronic image in the electronic document, effectively solves the problem that the electronic writing image can not be conveniently added in the electronic document in the prior art, and meets the scene that the electronic document editing and the electronic image modification requirements exist simultaneously.
In the related art, in the use process of an electronic document, only browsing and editing work can be performed on the electronic document, and electronic images cannot be conveniently added and modified in the electronic document, so that the scene requirement of synchronous processing of the electronic document and the electronic image cannot be met.
According to the method for conveniently adding and modifying the electronic image in the electronic document, the target electronic document is opened based on the electronic document reading tool, and the target electronic drawing board is displayed in the target electronic document according to the target parameters, so that the use efficiency of the electronic drawing board in the electronic document and the configuration efficiency of the target electronic document and the target electronic drawing board are improved; and then, the target electronic image drawn on the target electronic drawing board is obtained, and the target electronic image is added to the target position in the target electronic document, so that the document can be modified, edited and added with the electronic image without complicated operation, the operation on the document is coherent and concise, the function of conveniently adding the electronic image in the electronic document is realized, the problem that the electronic writing image cannot be conveniently added in the electronic document in the prior art is effectively solved, and the scene that the electronic document editing and electronic image modification requirements exist simultaneously is satisfied.
The following describes the technical solution of the present invention in detail with reference to fig. 1 to 27. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
Fig. 1 is a flowchart of an embodiment of a method for adding and modifying an electronic image in an electronic document according to an embodiment of the present invention. As shown in fig. 1, the method provided in this embodiment includes:
step 101, opening a target electronic document based on an electronic document reading tool;
displaying the target electronic drawing board in the target electronic document according to the target parameters; the target parameters include at least one of: initializing electronic drawing board parameters, view parameters corresponding to the electronic document, screen parameters of an electronic document reading tool and document information of a target electronic document;
specifically, in the prior art, in the use process of an electronic document, only browsing and editing work can be performed on the electronic document, and electronic images cannot be conveniently added and modified in the electronic document, so that the scene requirement of synchronous processing of the electronic document and the electronic image cannot be met.
In order to solve the above problem, in the embodiment of the present application, a target electronic document is opened first based on an electronic document reading tool; alternatively, the type of the target electronic document may be a layout document, a stream document, or other types of documents, which is not limited in the embodiment of the present invention; the electronic drawing board is a digital drawing technology, relates to a pressure sensing touch technology, a digital drawing engine, a connection and data transmission technology, can simulate the experience of traditional paper pen drawing, and provides more creation and editing functions.
Optionally, after opening the target electronic document based on the electronic document reading tool, in the embodiment of the present application, displaying the target electronic drawing board in the target electronic document according to the target parameter; wherein the target parameters include at least one of: the initialized electronic drawing board parameters, view parameters corresponding to the electronic document, screen parameters of the electronic document reading tool and document information of the target electronic document, namely when the target electronic drawing board is displayed on the target electronic document, the initialized electronic drawing board parameters can be utilized to initialize the electronic drawing board, so that the use efficiency of the electronic drawing board in the electronic document is improved, and the configuration efficiency of the target electronic drawing board is improved. Based on the view parameters corresponding to the electronic document, the screen parameters of the electronic document reading tool and the information parameters of the target electronic document, the electronic drawing board is displayed on the electronic document, so that the electronic drawing board and the electronic document can be effectively fused and displayed, and the mutual conflict between the electronic document and the electronic drawing board in the display process is avoided.
For example, as shown in fig. 2 and 3, an electronic document reading tool is first used to open an electronic document for reading, and whether an electronic drawing board is used is judged, the opening mode of the electronic drawing board supports active selection of opening/default opening/preference setting opening, after a user actively selects/default setting/preference setting, the electronic drawing board is opened to provide more drawing tools and functions later, so that the user can express ideas and creation more freely.
Optionally, the scene applicable to the embodiment of the application is a scene that both the electronic drawing board and the electronic document need to be edited, and the electronic drawing board needs to be started as a precondition for editing the subsequent electronic document. The specific flow is as follows:
firstly, acquiring an electronic file path and a file format;
then, opening the file by using an electronic document reading tool;
then, judging whether to open the electronic drawing board;
and finally, starting and loading the electronic drawing board function module.
Optionally, in the embodiment of the present application, relevant parameters of the electronic drawing board and the electronic document may be initialized, so that efficiency of using the electronic drawing board in the electronic document is improved, and configuration efficiency of the target electronic document and the target electronic drawing board is improved.
For example, as shown in fig. 4 and 5, related parameters of the electronic document such as width and height of the reading page, resolution, font size, background color, etc. are initialized; when initializing the parameters of the electronic drawing board, the parameters such as color, thickness, pressure feeling and the like can be set according to default settings or preference settings of a user, and the user can also adjust the properties of the electronic drawing board according to personal preference and drawing requirements. The specific flow is as follows:
firstly, acquiring an electronic file path and a file format;
initializing relevant parameters of the electronic document according to the file information to display pages;
initializing an interface of the electronic drawing board according to the display information of the electronic document and the parameter setting of the electronic drawing board;
and finally, when the parameter setting is changed, timely modifying and updating the electronic drawing board.
Alternatively, as shown in fig. 6 and 7, in the embodiment of the present application, the electronic drawing board may be displayed on the interface for reading the document, and the display area of the electronic drawing board may be adjusted by designating the background color and the size position. The buttons are separated from the interface events, the custom position patterns of the buttons are supported, and the number of the buttons can be increased or decreased according to the needs by a user, so that the user can use the device conveniently. The specific flow is as follows:
firstly, acquiring screen parameters/document information/view parameters;
then, initializing an interface of the electronic drawing board according to the information of the electronic document and the parameter setting of the electronic drawing board;
then, the electronic drawing board is displayed on the view according to the parameters;
finally, controlling the electronic drawing board to display and hide or adjust the layout of the electronic drawing board according to the operation requirement.
102, acquiring a target electronic image drawn on a target electronic drawing board;
specifically, after the target electronic drawing board is displayed in the target electronic document, the embodiment of the application further obtains a target electronic image drawn on the target electronic drawing board by the user. Optionally, when writing and drawing electronic images on the electronic drawing board, the user can use different drawing tools to write and draw, so that target electronic images drawn on the target electronic drawing board by different drawing tools can be obtained, and the drawing requirements of different types of electronic images in different scenes are met.
Step 103, adding the target electronic image to the target position in the target electronic document.
Specifically, after the target electronic drawing board is displayed in the target electronic document and the target electronic image drawn on the target electronic drawing board by the user is obtained, the obtained target electronic image is added to the target position in the target electronic document in the embodiment of the application, so that the function of conveniently adding the electronic image in the electronic document is realized, and the problem that the electronic writing image cannot be conveniently added and modified in the electronic document in the prior art is solved. The invention combines the two technologies of electronic document and electronic drawing board to meet the simultaneous existence of the two technologies.
According to the method, the target electronic document is opened based on the electronic document reading tool, and the target electronic drawing board is displayed in the target electronic document according to the target parameters, so that the use efficiency of the electronic drawing board in the electronic document and the configuration efficiency of the target electronic document and the target electronic drawing board are improved; and then, the target electronic image drawn on the target electronic drawing board is obtained, and the target electronic image is added to the target position in the target electronic document, so that the document can be modified, edited and added with the electronic image without complicated operation, the operation on the document is coherent and concise, the function of conveniently adding the electronic image in the electronic document is realized, the problem that the electronic writing image cannot be conveniently added in the electronic document in the prior art is effectively solved, and the scene that the electronic document editing and electronic image modification requirements exist simultaneously is satisfied.
In one embodiment, after displaying the target electronic palette in the target electronic document, the method further comprises:
and adjusting the position of the target electronic drawing board in the target electronic document and/or the size of the target electronic drawing board.
Specifically, as shown in fig. 8, 9, 10 and 11, in the embodiment of the present application, after the target electronic drawing board is displayed in the target electronic document, adjustment of the position of the target electronic drawing board in the target electronic document and/or the size of the target electronic drawing board is supported; therefore, the adjusted target electronic drawing board and the target electronic document can be fused and displayed better by changing the position of the target electronic drawing board in the target electronic document and the size of the target electronic drawing board, so that the function of conveniently adding the electronic image in the electronic document can be realized more efficiently and accurately, and the scene that the electronic document editing and electronic image modifying requirements exist simultaneously is met.
According to the method, after the target electronic drawing board is displayed in the target electronic document, the position of the target electronic drawing board in the target electronic document and the size of the target electronic drawing board are changed, so that the adjusted target electronic drawing board and the target electronic document can be fused and displayed better, the function of conveniently adding electronic images in the electronic document can be further realized more efficiently and accurately, the electronic image can be added to the document without complicated operation, and the scene that the electronic document editing and electronic image modifying requirements exist simultaneously is met.
In one embodiment, after acquiring the target electronic image drawn on the target electronic drawing board, the method further includes:
executing target operation on the target electronic image drawn on the target electronic drawing board; the target operation includes at least one of: revocation, anti-revocation, and target electronic image attribute settings.
Specifically, as shown in fig. 12, in the embodiment of the present application, after the target electronic image drawn on the target electronic drawing board is obtained, operations such as undoing and undoing are supported to be performed on the target electronic image drawn on the target electronic drawing board, so that an effect of modifying the electronic image on the electronic drawing board conveniently and quickly is achieved, and modifying efficiency of the electronic image in the electronic drawing board is improved, so that the modified electronic image can be more efficiently added to the electronic document.
In an embodiment, the method for conveniently adding and modifying the electronic image in the electronic document further comprises the following steps:
and editing the target electronic image stored on the target electronic drawing board.
Specifically, after the electronic image is saved in the electronic drawing board, the electronic image is supported to be edited, that is, the saved electronic image is supported to be edited continuously; for example, as shown in fig. 13, the stored electronic image is shared to an external medium, so that the target electronic image drawn on the target electronic drawing board can be used in other scenes, not just in an electronic document, and the application range and the application scene of the target electronic image drawn on the target electronic drawing board are improved.
In one embodiment, before adding the target electronic image to the target location in the target electronic document, further comprising:
adding the target electronic image into the target electronic document to obtain a target preview image;
and adjusting the position of the target electronic image in the target electronic document according to the target preview image.
Specifically, before adding the target electronic image to the target position in the target electronic document, the embodiment of the application further comprises adding the target electronic image to the target electronic document to obtain a target preview image; according to the target preview image, adjusting the position of the target electronic image in the target electronic document; that is, as shown in fig. 14, in the embodiment of the present application, previewing an electronic image to be added in an electronic document is supported, and the electronic image can be rotated/deleted/inserted when previewing in the electronic document, so that an electronic image with a preview effect meeting a requirement can be added to the electronic document, thereby implementing targeted adjustment of the electronic image to be added to the electronic document by previewing the electronic image to be added in a target electronic document, and effectively improving adjustment efficiency and adjustment accuracy of the electronic image to be added to the electronic document.
According to the method, the electronic image to be added is previewed in the electronic document, and the electronic image can be rotated/deleted/moved when previewed in the electronic document, so that the display effect of the electronic image in the electronic document is dynamically previewed in real time, the adjustment efficiency and accuracy when the electronic image is added are effectively improved, and a user can accurately and efficiently obtain the electronic document containing the drawing board image.
In one embodiment, after adding the target electronic image to the target location in the target electronic document, further comprising:
performing a target operation on a target electronic image in a target electronic document; the target operation includes at least one of: revocation, anti-revocation, and target electronic image attribute settings.
Specifically, in the embodiment of the present application, as shown in fig. 15, after adding the target electronic image to the target position in the target electronic document, the method further includes performing a target operation on the target electronic image in the target electronic document; the target operation includes at least one of: revocation, anti-revocation and target electronic image attribute settings, thereby enabling the final effect of the adjusted electronic image to meet the requirements. That is, in one aspect, after the target electronic palette is displayed in the target electronic document, the position of the target electronic palette in the target electronic document and/or the size of the target electronic palette may be adjusted; on the other hand, after the target electronic image drawn on the target electronic drawing board is acquired, the target operation may be performed on the target electronic image drawn on the target electronic drawing board; the target operation includes at least one of: revocation, anti-revocation and target electronic image attribute setting; in the third aspect, the target electronic image may be further added to the target electronic document to obtain a target preview image; according to the target preview image, adjusting the position of the target electronic image in the target electronic document; in the fourth aspect, the target operation may also be performed on the target electronic image in the target electronic document after the target electronic image is added to the target position in the target electronic document; the target operation includes at least one of: revocation, anti-revocation and target electronic image attribute setting; thereby realizing that at different time nodes (after the target electronic drawing board is displayed in the target electronic document, after the target electronic image drawn on the target electronic drawing board is acquired, after the target electronic image is added into the target electronic document and the target preview image is obtained, after the target electronic image is added to the target position in the target electronic document), the position of the target electronic drawing board in the target electronic document and/or the size of the target electronic drawing board are adjusted in different ways, (2) the target electronic image drawn on the target electronic drawing board is subjected to target operation, and the target operation comprises at least one of revocation, anti-revocation and target electronic image attribute setting, (3) the position of the target electronic image in the target electronic document is adjusted), and the electronic image displayed in the electronic document is subjected to different types of adjustment, so that the electronic image can be conveniently added and modified in the electronic document, the modified electronic image can be fused with the electronic document better, and a scene which exists simultaneously with the electronic document is satisfied.
According to the method, different types of adjustment are carried out on the electronic images displayed in the electronic document in different time nodes in different modes, so that the electronic images can be added and modified in the electronic document conveniently, the modified electronic images can be fused and displayed with the electronic document better, and the scene that the electronic document editing and electronic image modification requirements exist simultaneously is met.
In an embodiment, the method for conveniently adding and modifying the electronic image in the electronic document further comprises the following steps:
and under the condition that the target control in the target electronic drawing board is separated from the interface event corresponding to the target control, the target control in the target electronic drawing board is adjusted.
Specifically, in the embodiment of the application, the target control (such as a button) in the target electronic drawing board is separated from the interface event corresponding to the target control, so that the position and the number of the target control in the target electronic drawing board can be flexibly adjusted, the efficiency of drawing the electronic image in the target drawing board displayed in the target electronic document is improved, and the electronic image can be added and modified in the electronic document more quickly and efficiently.
The method for conveniently adding and modifying the electronic image in the electronic document in the embodiment of the application comprises the following steps:
1. opening electronic document reading
The electronic palette may be executed according to user selection or default setting preferences, and may provide more drawing tools and functions, allowing the user to more freely express ideas and creations.
2. Initializing electronic drawing board parameters
When initializing the parameters of the electronic drawing board, the parameters such as color, thickness, pressure feeling and the like can be set according to default settings or preference settings, and the user can also adjust the properties of the electronic drawing board according to personal preference and drawing requirements.
3. Electronic drawing board for displaying document when reading
The electronic palette may be displayed while the document is being read, and the user may adjust the display area of the electronic palette by specifying a background color and a size position. The button is separated from the interface event, the button self-defined position style is supported, and the electronic drawing board can be placed at a proper position of the document according to the requirement, so that writing and drawing are convenient.
4. Writing and drawing electronic image on electronic drawing board
When writing and drawing electronic images on an electronic palette, a user may use different brush tools to write and draw. In addition, as shown in fig. 16, the electronic drawing board also provides functions of revocation and anti-revocation, so that the user can correct or restore the previous drawing operation at any time. The specific flow is shown in FIG. 17:
firstly, creating a new array after each click, continuously acquiring the color line width transparent attribute of the position of the click movement, and inserting the clicked attribute composition structure body as an element into the array;
then, after clicking is finished, the array is used as an element to be inserted into the two-dimensional array_1;
then, drawing an image on the electronic drawing board according to the points in the two-dimensional array_1;
finally, the last element of the two-dimensional array_1 is removed when the two-dimensional array_2 is withdrawn, then the element is inserted into the two-dimensional array_2, and the last element of the two-dimensional array_2 is removed and then added into the two-dimensional array_1 when the two-dimensional array_2 is withdrawn.
5. Preserving exported electronic image data
As shown in fig. 18, after writing and drawing of the electronic image are completed, the user can select to save the data of the electronic image. After the image is stored, the user can open and continue editing the stored electronic image at any time or share the stored electronic image with other people so as to share the creation result. The specific steps are shown in fig. 19:
firstly, acquiring points of an electronic image, and calculating left, right, upper and lower boundary values of the electronic image;
then, cutting according to the boundary of the electronic image to generate a picture object with transparency;
then, saving and exporting the cut picture to a file path and returning to an image object;
finally, the picture file path is loaded or the electronic image object is read and displayed on the electronic drawing board.
6. Pre-adding electronic images to previews in documents
As shown in fig. 20, the user may pre-add the electronic image to the document for previewing. At the time of preview, the user can adjust the size, position and angle of the electronic image to better blend into the overall layout of the document. The specific steps are shown in fig. 21:
firstly, acquiring an electronic image file path or an image object;
then, creating and generating an electronic image object;
then, adding the electronic image object preview to the document;
finally, the electronic image is adjusted in size and angular position in the document during preview.
7. The addition of the electronic image to the document is confirmed.
As shown in fig. 22, after confirming the addition of the electronic image to the document, the user may again use the undo and undo functions to make further modifications and adjustments to the electronic image. The user can ensure that the final effect of the electronic image meets the requirements. The specific steps are shown in fig. 23:
firstly, acquiring an electronic image file path or an image object;
then, creating and generating an electronic image object;
then, adding the electronic image object to the document according to the information such as the position, the size and the angle;
and finally, continuing to add the electronic image or canceling the added image according to the effect requirement.
8. Repeating the steps or saving the closed document.
As shown in fig. 24, the user may continue to write and draw electronic images on the electronic palette as desired. In operation, the steps four to seven are repeatedly executed, or other operations are continued, and after the electronic drawing board and the document are determined to be not required to be modified, the user can select to save and close the document. In conclusion, the user can flexibly use the electronic drawing board when editing the document, so that more creation and editing possibilities are realized. The specific steps are shown in fig. 25:
firstly, acquiring a file storage path and an electronic drawing board storage path;
then, the document content and the drawing board content are saved to a file path;
then, closing the electronic drawing board to close the document;
finally, the document view is exited.
The method for conveniently adding and modifying the electronic image in the electronic document in the embodiment of the application has the following advantages and functions: the functions of canceling the cancel, adjusting the color and the line width, saving and exporting and the like are supported in the electronic drawing board, the electronic image can be conveniently added and modified in the electronic document, and the operations of adding the preview, adjusting the size and the position, confirming the adding and canceling the cancel are supported on the electronic document. The electronic drawing board and the electronic document are connected and integrated in a beneficial way, the electronic image can be added or modified to the document without complicated operation, and the editing operation of the document is coherent and simple, so that the electronic drawing board and the electronic document are suitable for scenes with various requirements.
The device for conveniently adding and modifying the electronic image in the electronic document provided by the invention is described below, and the device for conveniently adding and modifying the electronic image in the electronic document described below and the method for conveniently adding and modifying the electronic image in the electronic document described above can be correspondingly referred to each other.
Fig. 26 is a schematic structural diagram of a device for conveniently adding and modifying an electronic image in an electronic document provided by the invention. The device for conveniently adding and modifying the electronic image in the electronic document provided by the embodiment comprises the following components:
a processing module 2610 for opening the target electronic document based on the electronic document reading tool;
displaying the target electronic drawing board in the target electronic document according to the target parameters; the target parameters include at least one of: initializing electronic drawing board parameters, view parameters corresponding to the electronic document, screen parameters of an electronic document reading tool and document information of a target electronic document;
an obtaining module 2620, configured to obtain a target electronic image drawn on a target electronic drawing board;
the adding module 2630 is configured to add the target electronic image to a target location in the target electronic document.
The device of the embodiment of the present invention is configured to perform the method of any of the foregoing method embodiments, and its implementation principle and technical effects are similar, and are not described in detail herein.
Fig. 27 illustrates a physical structure diagram of an electronic device, which may include: a processor (processor) 2710, a communication interface (Communications Interface) 2720, a memory (memory) 2730 and a communication bus 2740, wherein the processor 2710, the communication interface 2720, and the memory 2730 communicate with each other via the communication bus 2740. Processor 2710 may invoke logic instructions in memory 2730 to perform a method for facilitating the addition of modified electronic images in electronic documents, the method comprising: opening a target electronic document based on the electronic document reading tool; displaying the target electronic drawing board in the target electronic document according to the target parameters; the target parameters include at least one of: initializing electronic drawing board parameters, view parameters corresponding to the electronic document, screen parameters of an electronic document reading tool and document information of a target electronic document; acquiring a target electronic image drawn on a target electronic drawing board; the target electronic image is added to a target location in the target electronic document.
Further, the logic instructions in memory 2730 described above may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solutions may be embodied essentially or in part in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device to perform the method described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (5)

1. A method for facilitating the addition and modification of an electronic image in an electronic document, comprising:
opening a target electronic document based on the electronic document reading tool;
displaying a target electronic drawing board in the target electronic document according to the target parameters; the target parameters include at least one of: initializing electronic drawing board parameters, view parameters corresponding to the electronic document, screen parameters of an electronic document reading tool and document information of a target electronic document;
acquiring a target electronic image drawn on the target electronic drawing board;
adding the target electronic image to a target location in the target electronic document;
after the target electronic drawing board is displayed in the target electronic document, the method further comprises:
adjusting the position of a target electronic drawing board in the target electronic document and/or the size of the target electronic drawing board;
after the target electronic image drawn on the target electronic drawing board is obtained, the method further comprises the following steps:
executing target operation on the target electronic image drawn on the target electronic drawing board; the target operation includes at least one of: revocation, anti-revocation and target electronic image attribute setting;
the method further comprises the steps of:
editing the target electronic image stored on the target electronic drawing board;
before the target electronic image is added to the target position in the target electronic document, the method further comprises:
adding the target electronic image into the target electronic document to obtain a target preview image;
according to the target preview image, adjusting the position of the target electronic image in the target electronic document;
after the target electronic image is added to the target position in the target electronic document, the method further comprises:
executing target operation on a target electronic image in the target electronic document; the target operation includes at least one of: revocation, anti-revocation, and target electronic image attribute settings.
2. The method for facilitating the addition and modification of an electronic image in an electronic document as recited in claim 1, further comprising:
and under the condition that the target control in the target electronic drawing board is separated from the interface event corresponding to the target control, adjusting the target control in the target electronic drawing board.
3. An apparatus for facilitating the addition and modification of an electronic image in an electronic document, comprising:
the processing module is used for opening the target electronic document based on the electronic document reading tool;
displaying a target electronic drawing board in the target electronic document according to the target parameters; the target parameters include at least one of: initializing electronic drawing board parameters, view parameters corresponding to the electronic document, screen parameters of an electronic document reading tool and document information of a target electronic document; the processing module is further configured to: after the target electronic drawing board is displayed in the target electronic document, the position of the target electronic drawing board in the target electronic document and/or the size of the target electronic drawing board are adjusted;
the acquisition module is used for acquiring the target electronic image drawn on the target electronic drawing board; the acquisition module is further configured to: after a target electronic image drawn on the target electronic drawing board is obtained, executing target operation on the target electronic image drawn on the target electronic drawing board; the target operation includes at least one of: revocation, anti-revocation and target electronic image attribute setting;
an adding module for adding the target electronic image to a target location in the target electronic document; the adding module is further configured to: editing the target electronic image stored on the target electronic drawing board; the adding module is further configured to: before the target electronic image is added to a target position in the target electronic document, the target electronic image is added to the target electronic document, and a target preview image is obtained; according to the target preview image, adjusting the position of the target electronic image in the target electronic document; the adding module is further configured to: after the target electronic image is added to the target position in the target electronic document, performing a target operation on the target electronic image in the target electronic document; the target operation includes at least one of: revocation, anti-revocation, and target electronic image attribute settings.
4. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of facilitating the addition of modified electronic images to an electronic document according to claim 1 or 2 when the program is executed by the processor.
5. A non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements a method of facilitating addition of modified electronic images to an electronic document according to claim 1 or 2.
CN202311156345.1A 2023-09-08 2023-09-08 Method and device for conveniently adding and modifying electronic image in electronic document Active CN116883548B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311156345.1A CN116883548B (en) 2023-09-08 2023-09-08 Method and device for conveniently adding and modifying electronic image in electronic document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311156345.1A CN116883548B (en) 2023-09-08 2023-09-08 Method and device for conveniently adding and modifying electronic image in electronic document

Publications (2)

Publication Number Publication Date
CN116883548A CN116883548A (en) 2023-10-13
CN116883548B true CN116883548B (en) 2023-12-19

Family

ID=88266696

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311156345.1A Active CN116883548B (en) 2023-09-08 2023-09-08 Method and device for conveniently adding and modifying electronic image in electronic document

Country Status (1)

Country Link
CN (1) CN116883548B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722476A (en) * 2011-03-30 2012-10-10 汉王科技股份有限公司 A method and device for marking electronic documents
US8866841B1 (en) * 2009-04-03 2014-10-21 Joshua Distler Method and apparatus to deliver imagery with embedded data
CN105607842A (en) * 2014-11-19 2016-05-25 中兴通讯股份有限公司 Operation processing method and device of electronic drawing board
CN111580714A (en) * 2020-04-27 2020-08-25 广州视源电子科技股份有限公司 Page editing method, device, equipment and storage medium of intelligent interactive tablet
CN111858518A (en) * 2020-07-09 2020-10-30 北京字节跳动网络技术有限公司 Method and device for updating reference document, electronic equipment and storage medium
CN115146584A (en) * 2022-07-06 2022-10-04 成都成电医星数字健康软件有限公司 Full-structured Web version electronic medical record editor system
CN115562544A (en) * 2021-06-30 2023-01-03 海信视像科技股份有限公司 Display device and revocation method
CN116402020A (en) * 2023-02-16 2023-07-07 福昕鲲鹏(北京)信息科技有限公司 Signature imaging processing method, system and storage medium based on OFD document

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10534842B2 (en) * 2011-07-12 2020-01-14 Inkling Systems, Inc. Systems and methods for creating, editing and publishing cross-platform interactive electronic works

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8866841B1 (en) * 2009-04-03 2014-10-21 Joshua Distler Method and apparatus to deliver imagery with embedded data
CN102722476A (en) * 2011-03-30 2012-10-10 汉王科技股份有限公司 A method and device for marking electronic documents
CN105607842A (en) * 2014-11-19 2016-05-25 中兴通讯股份有限公司 Operation processing method and device of electronic drawing board
CN111580714A (en) * 2020-04-27 2020-08-25 广州视源电子科技股份有限公司 Page editing method, device, equipment and storage medium of intelligent interactive tablet
CN111858518A (en) * 2020-07-09 2020-10-30 北京字节跳动网络技术有限公司 Method and device for updating reference document, electronic equipment and storage medium
CN115562544A (en) * 2021-06-30 2023-01-03 海信视像科技股份有限公司 Display device and revocation method
CN115146584A (en) * 2022-07-06 2022-10-04 成都成电医星数字健康软件有限公司 Full-structured Web version electronic medical record editor system
CN116402020A (en) * 2023-02-16 2023-07-07 福昕鲲鹏(北京)信息科技有限公司 Signature imaging processing method, system and storage medium based on OFD document

Also Published As

Publication number Publication date
CN116883548A (en) 2023-10-13

Similar Documents

Publication Publication Date Title
US7634715B2 (en) Effects applied to images in a browser
US8161368B2 (en) Distributed processing when editing an image in a browser
US20150277686A1 (en) Systems and Methods for the Real-Time Modification of Videos and Images Within a Social Network Format
CN111767563A (en) Method, device, terminal and storage medium for setting authority of online document
US20210241503A1 (en) Method and apparatus for automatic line drawing coloring and graphical user interface thereof
JP2010033551A (en) Design editing apparatus, design editing method, and design editing program
JP6680026B2 (en) Information processing device and program
CN113705156A (en) Character processing method and device
JP2010086315A (en) Information processing apparatus and information processing method
US10120539B2 (en) Method and device for setting user interface
Xiao et al. TypeDance: Creating semantic typographic logos from image through personalized generation
CN116883548B (en) Method and device for conveniently adding and modifying electronic image in electronic document
US20050235212A1 (en) Method and apparatus to provide visual editing
CN115438396A (en) Package design method and device
Yang et al. Binary image carving for 3D printing
CN111639474A (en) Document style reconstruction method and device and electronic equipment
US11922975B2 (en) Method, apparatus, device and medium for generating video in text mode
WO2007131233A2 (en) Browser image manipulation
CN115134317B (en) Message display method, device, storage medium and electronic device
CN115657900B (en) Multi-language private seal customizing method and device based on automatic translation and text conversion
US20230176718A1 (en) Commenting feature for graphic design systems
CN117112826A (en) Image generation method, device, computer equipment and storage medium
CN118643554A (en) System and method for identifying and/or transferring decorative design elements
CN117649460A (en) Mask operation method and equipment, storage medium and terminal thereof
CN115203144A (en) Method and device for evaluating practice exercises, computer equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant