CN109993815B - Method and device for processing picture object in electronic document - Google Patents

Method and device for processing picture object in electronic document Download PDF

Info

Publication number
CN109993815B
CN109993815B CN201711484891.2A CN201711484891A CN109993815B CN 109993815 B CN109993815 B CN 109993815B CN 201711484891 A CN201711484891 A CN 201711484891A CN 109993815 B CN109993815 B CN 109993815B
Authority
CN
China
Prior art keywords
picture
electronic document
graph
current electronic
conversion
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
CN201711484891.2A
Other languages
Chinese (zh)
Other versions
CN109993815A (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.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Kingsoft Mobile Technology Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201711484891.2A priority Critical patent/CN109993815B/en
Publication of CN109993815A publication Critical patent/CN109993815A/en
Application granted granted Critical
Publication of CN109993815B publication Critical patent/CN109993815B/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

Abstract

The application discloses a method and a device for processing a picture object in an electronic document, wherein the method comprises the following steps: receiving a conversion command for converting a picture into a figure under the triggering of a predetermined operation for the picture in the current electronic document; and creating a graph with filling attribute as the picture in the current electronic document according to the conversion command and deleting the original picture resource corresponding to the picture in the current electronic document. The application can automatically convert the picture into the graph, simplifies the operation of a user and improves the processing efficiency of the electronic document.

Description

Method and device for processing picture object in electronic document
Technical Field
The present application relates to network application technologies, and in particular, to a method and an apparatus for processing a picture object in an electronic document.
Background
In the electronic document, the image and the graph can perform attribute operation, the graph object can set the transparency, the custom cutting shape and other attributes, but the image object can not perform similar setting operation. If the user needs to do similar setting operation on the picture object in the electronic document, the complex pre-operation on the picture object needs to be performed manually, the processing efficiency is low, and the user experience is also poor.
Disclosure of Invention
The application provides a processing method and a processing device for picture objects in an electronic document, which can at least simplify user operation.
The application provides the following technical scheme.
A processing method of a picture object in an electronic document comprises the following steps:
receiving a conversion command for converting a picture into a figure under the triggering of a predetermined operation for the picture in the current electronic document;
and creating a graph with filling attribute as the picture in the current electronic document according to the conversion command and deleting the original picture resource corresponding to the picture in the current electronic document.
Wherein the detecting a predetermined operation for a picture in a current electronic document, receiving a conversion command for the picture, includes: when detecting the selection operation of the picture, displaying a command button for triggering the conversion of the picture to the graph; and receiving the conversion command when the triggering operation for the command button is detected.
And creating a graph with filling attribute as the picture in the current electronic document according to the conversion command, wherein the graph comprises the following components: when the conversion command is received, a document object API is called to insert a graphic object matched with the picture specification in the current electronic document; and setting the picture resource on the graph.
Wherein the calling the document object API inserts a graphic object matched with the picture specification, comprising: and calling a document object API to extract the shape attribute information of the picture, and creating a graphic object with the contour attribute identical to the shape attribute information of the picture.
Wherein said setting said picture resources onto said graphic comprises: extracting an original picture resource in the current electronic document and copying to obtain a picture resource copy, and setting the picture resource copy on the graph; the deleting the original picture resources corresponding to the picture in the current electronic document comprises the following steps: and deleting the original picture resources in the current electronic document after the picture resource copy is obtained.
A processing apparatus for a picture object in an electronic document, comprising:
the receiving module is used for receiving a conversion command for converting the picture into the graph under the triggering of a preset operation aiming at the picture in the current electronic document;
and the conversion module is used for creating a graph with filling attribute as the picture in the current electronic document according to the conversion command, and deleting the original picture resource corresponding to the picture in the current electronic document.
Wherein, the receiving module includes:
the first detection unit is used for displaying a command button for triggering the conversion of the picture to the graph when detecting the selection operation of the picture;
and the second detection unit is used for receiving the conversion command when detecting the triggering operation of the command button.
Wherein, the conversion module includes:
the inserting unit is used for calling a document object API to insert a graphic object matched with the picture specification in the current electronic document when the conversion command is received;
and the filling unit is used for setting the picture resources on the graph.
Wherein, the conversion module further includes: a copy unit and a delete unit; the copying unit is used for extracting the original picture resources in the current electronic document and copying to obtain picture resource copies; the deleting unit is used for deleting the original picture resources in the current electronic document after the picture resource copy is obtained; the filling unit is specifically configured to set the copy of the picture resource on the graph.
A processing apparatus for a picture object in an electronic document, comprising:
a display;
a memory storing a computer program;
and a processor configured to read the computer program to perform the operations of the processing method of the picture object in the electronic document.
A computer storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method for processing a picture object in an electronic document described above.
The advantages of the application include at least:
the embodiment of the application can automatically convert the picture into the graph under the triggering of the preset operation aiming at the picture in the electronic document, so that the user can conveniently perform attribute setting, and the user can conveniently convert the picture into the graph by one key, thereby greatly simplifying the operation of the user and improving the processing efficiency of the electronic document.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate and do not limit the application.
FIG. 1 is a schematic illustration of an exemplary application environment of the present application;
FIG. 2 is a schematic diagram of another exemplary application environment of the present application;
FIG. 3 is a flowchart illustrating a method for processing a picture object in an electronic document according to the first embodiment;
FIG. 4 is a schematic diagram of an exemplary execution flow for setting transparency of picture A in an electronic document;
FIG. 5 is an exemplary diagram of an interface displaying the "convert to graphics" button of Picture A;
FIG. 6 is an exemplary diagram of an interface after automatically converting picture A in an electronic document to picture B;
fig. 7 is a schematic structural diagram of a processing device for picture objects in an electronic document according to the second embodiment;
fig. 8 is a schematic structural diagram of a processing apparatus for picture objects in an electronic document according to the third embodiment.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, embodiments of the present application will be described in detail hereinafter with reference to the accompanying drawings. It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be arbitrarily combined with each other.
The steps illustrated in the flowchart of the figures may be performed in a computer system, such as a set of computer-executable instructions. Also, while a logical order is depicted in the flowchart, in some cases, the steps depicted or described may be performed in a different order than presented herein.
The electronic device according to the application may be any device supporting document processing. The electronic device may have a variety of implementations. For example, the electronic device may be a mobile terminal device such as a cell phone, tablet computer, notebook computer, palm top computer, personal digital assistant (Personal Digital Assistant, PDA), portable media player (Portable Media Player, PMP), navigation device, wearable device, smart bracelet, pedometer, and a stationary terminal device such as a desktop computer.
In the related art, office document editing software such as WPS and Microsoft Office has a picture and a graphic object, but the picture object cannot set transparency as the graphic object, and custom-cut shape and other attributes. When the user needs to set transparency or custom clipping shape for the picture, the following operations are needed to be completed: firstly, the picture object is needed to be stored as a picture file A; inserting a self-selection graph; setting filling of the self-selected graph as picture filling, and using a picture file A for the picture; deleting the picture object; and setting the filling transparency of the graph and setting the custom clipping shape attribute. Therefore, when certain attributes are set for the picture, the user needs to do complicated pre-operation, so that the efficiency is low, and time and labor are wasted.
Aiming at the problems of complicated and low efficiency of setting operation of certain attributes (such as transparency, custom cutting shape and the like) of a picture object in the related technology, the application provides the following technical scheme which can convert the picture into the graph by one key, is convenient for a user to finish the setting of the attributes, can simplify the operation of the user and improve the efficiency.
An exemplary application environment for the present application is shown in fig. 1. As shown in fig. 1, a user installs office software on a computer, the computer provides the user with an editing function of an electronic document by running the office software, the user can perform a document editing operation on a user interface of the electronic document, and the computer generates a document of a corresponding format or performs a corresponding document format process in response to the user's document editing operation.
As shown in FIG. 2, another exemplary application environment for the present application is illustrated. In the application environment shown in fig. 2, a user installs an office application program on a mobile device, the mobile device runs the office application program to provide an electronic document editing function for the user, the user can perform a document editing operation on an electronic document user interface presented on the mobile device, and the mobile device can generate a document in a corresponding format or perform corresponding document format processing in response to the document editing operation of the user.
In addition, the present application is applicable to other environments. It can be appreciated that the technical scheme of the application can be applied to various application environments of electronic documents. The specific application environment is not limited herein.
The implementation mode of the technical scheme of the application is described in detail below.
Example 1
As shown in fig. 3, a method for processing a picture object in an electronic document may include:
step 301, receiving a conversion command for converting a picture into a figure under the trigger of a predetermined operation for the picture in the current electronic document;
and 302, creating a graph with filling attribute as the picture in the current electronic document according to the conversion command and deleting the original picture resource corresponding to the picture in the current electronic document.
According to the method, the picture can be automatically converted into the graph under the triggering of the preset operation on the picture in the electronic document, so that the user can conveniently perform attribute setting, the picture can be conveniently converted into the graph by one key, the operation of the user is greatly simplified, and the processing efficiency of the electronic document is improved.
In one implementation manner of this embodiment, the detecting the predetermined operation for the picture in the current electronic document, and receiving the conversion command for the picture may include: when detecting the selection operation of the picture, displaying a command button for triggering the conversion of the picture to the graph; and receiving the conversion command when the triggering operation for the command button is detected. The conversion from the picture to the graph is triggered by the command button, so that the operation is more convenient and quicker, the user can conveniently convert the picture into the graph by one key, the process and the steps of the user operation are greatly simplified, and the complexity of the operation is reduced.
In practical applications, the above-mentioned conversion button may be preconfigured. For example, a conversion button may be preconfigured in the picture toolbar; and/or a conversion button can be preconfigured in the picture right key menu; and/or a shift button may be preconfigured in the tab of the picture right-key menu. Thus, the user clicks the conversion button to trigger the conversion button, and when the conversion button is triggered, the electronic device receives a conversion command for converting the selected picture into the graph.
In addition to the above implementation, the automatic conversion of pictures into graphics may be triggered in other ways. For example, a shortcut key for triggering the automatic conversion from a picture to a picture may be preconfigured, and after a user selects a certain picture of an electronic document, the shortcut key may be clicked to trigger the automatic conversion from a picture to a picture. In other words, the detecting of the predetermined operation for the picture in the current electronic document, and the receiving of the conversion command for the picture may include: when the selection operation of the picture and the triggering operation of a preconfigured shortcut key are detected, a conversion command for converting the picture into a graph is received, wherein the shortcut key is used for triggering the automatic conversion of the picture into the graph.
It should be noted that, the predetermined operation of the present embodiment for the picture in the current electronic document is not limited to the above two implementations. In specific applications, the specific implementation manner of the preset operation for the picture in the current electronic document is not limited herein, and the specific implementation manner can be freely set in combination with the characteristics of the application scene, the requirements of the user and the like.
In this embodiment, the generating, according to the conversion command, a graph with a filling attribute as the picture may include: when the conversion command is received, a document object API is called to insert a graphic object matched with the picture specification in the current electronic document; and setting the picture resource on the graph.
In one implementation manner of this embodiment, a document object API may be called to extract shape attribute information of the picture, and create a graphic object with the same profile attribute as the shape attribute information of the picture. Therefore, by creating the graph with the contour attribute identical to the size of the picture, the size, the shape and the like of the picture can be ensured to be unchanged before and after conversion, so that the user experience is improved.
In another implementation manner of this embodiment, when the current electronic document inserts a graphic object matching the picture specification, the document object API may be called to create the graphic object matching the picture specification according to a preset profile attribute. Here, the preset profile attribute may be set by the user, or may be configured by default. Therefore, the graph which is suitable for the picture specification is created through the preset profile attribute, the shape after picture conversion can be ensured to meet the requirement of a user or the basic requirement during electronic document processing, the user experience is improved, and meanwhile, the electronic document processing method and device can be better compatible with other functions of the electronic document, and further the processing efficiency of the electronic document is improved.
In this embodiment, the type of the inserted graphic object may be preset, or may be a user-defined type, or may select an appropriate graphic object type according to the characteristics of the current picture. For example, the graphical object may be a non-filled geometric figure, or may be a user-defined other non-filled figure. In a specific application, a user can create a self-defined graphic object and set the graphic object for converting the picture, so that the self-defined graphic object of the user can be used in the picture conversion picture, thereby being beneficial to meeting the personalized requirements of the user and further improving the user experience.
In an implementation manner of this embodiment, the setting the picture resource on the graphic may include: extracting an original picture resource in the current electronic document and copying to obtain a picture resource copy, and setting the picture resource copy on the graph; the deleting the original picture resources corresponding to the picture in the current electronic document may include: and deleting the original picture resources in the current electronic document after the picture resource copy is obtained.
It should be noted that, in this embodiment, the picture resource refers to example information for storing picture data. For example, when the picture A is inserted into an electronic document, the picture resource is a KBkiplaom example 1, when the picture A is converted into a graph B, a copy of the picture resource needs to be copied, namely a KBkiplaom example 2 is newly built, and then the KBkiplaom example 2 is set in the filling attribute of the graph B.
The implementation of the present embodiment is described below with an example.
The method comprises the steps of firstly, obtaining shape attribute information of a picture;
specifically, the process of obtaining the shape attribute of the picture may include: each picture displayed on the display interface of the electronic document is an AbstractShape instance, the Geometry2D instance can be obtained through a Geometry2D () function of the AbstractShape instance of the picture, and the shape attribute information of the picture can be obtained through an inter Path () function of the Geometry2D instance, for example, for a triangle picture, the shape attribute information is the coordinates of three vertices of the triangle.
Secondly, inserting a graphic object into the electronic document according to the shape attribute information of the picture (namely, the size parameter of the picture);
specifically, the graphic object may be inserted according to the shape attribute of the picture.
For example, inserting a triangle with vertices (1, 11) (2, 22) (3, 33) can be accomplished by:
Dim triArray(1 To 5,1 To 2)As Single
Dim nodeCnt As Single
triArray(1,1)=1
triArray(1,2)=11
triArray(2,1)=2
triArray(2,2)=22
triArray(3,1)=3
triArray(3,2)=33
triArray(4,1)=1
triArray(4,2)=11
application.Presentations(1).Slides(1).Shapes.AddCurve triArray。
thirdly, acquiring picture resources;
specifically, the process of obtaining the picture resource may be: the method comprises the steps of obtaining a Fill instance through a Fill () function of an Abstract shape instance, obtaining a blank instance through a blank () function of the Fill instance, obtaining a KBLIPAom instance 1 (namely an original picture resource) through a blank atom () function of the blank instance, creating a KBLIPAom instance 2, and calling a copy form () to copy the picture resource into a copy, wherein the copy is the KBLIPAom instance 2. Here, each picture resource corresponds to one such kbhiatom instance.
Deleting picture resources in the electronic document;
and fifthly, setting picture resources on the graphic objects inserted in the second step.
Specifically, a Fill () function of an abstract shape instance of a graph is used to obtain a Fill instance, a Blip () function of the Fill instance is used to obtain a Blip instance, and a setblip atom () function of the Blip instance is used to set a kbilip atom instance 2 to the Blip instance.
The following exemplifies the application procedure of the present embodiment.
As shown in fig. 4, when the user needs to make transparency setting for the rectangular picture a, the process flow may include:
step 401, a user clicks a picture a in a current electronic document to select it, and in response to the selecting operation, the electronic device detects that a picture object to be processed is the picture a;
step 402, a user right key selects a tab for setting a picture format, and in response to the selection operation, the electronic device displays the tab, wherein a command button for converting into a graph is arranged in the tab;
as shown in fig. 5, an exemplary diagram of the interface of this step is shown. It should be noted that, only the command button "convert to graphics" is displayed in the tab, and other command buttons or attribute setting options related to the picture object are not shown, which does not indicate that the tab does not include other command buttons or attribute setting options. That is, other command buttons or attribute setting options for the picture object may also be included in the tab for setting the picture format. The specific form of command buttons and/or attribute setting options is not limited herein.
Step 403, the user clicks the "convert to graphics" button, triggering the automatic conversion from picture a to graphic B;
step 404, in response to the trigger operation of the "convert to graphic" button, executing automatic conversion processing from the picture A to the graphic B in the electronic document;
in this step, the automatic conversion process may include: firstly, calling a document object API interface to insert a rectangular object R with the same size as a picture A, setting picture resources (such as memory address information) of an original picture into filling attributes of the rectangular object R, generating a graph B with filling attributes being the picture A, and deleting information of the picture A in the electronic document (such as picture resources of the picture A in the electronic document). As shown in fig. 6, an exemplary diagram of an interface after the graphic a is replaced with the graphic B in the electronic document.
In step 405, the user selects the graphic B, selects the tab for setting the graphic format in the right-click menu, sets transparency in the tab, and ends the process.
It should be noted that fig. 4 to fig. 6 are all examples, and in practical applications, the present embodiment may be implemented in other manners.
The method of the embodiment establishes a bridge for automatically converting the picture object in the electronic document into the graphic object, and can automatically convert the selected picture in the electronic document into the graphic under the triggering of the user operation, so that the user can set the functions which are not supported by the picture object but supported by the graphic object, such as transparency setting, custom cutting shape setting and the like.
Example two
A processing apparatus for a picture object in an electronic document, as shown in fig. 7, may include:
a receiving module 71 for receiving a conversion command for converting a picture into a graphic under the trigger of a predetermined operation for the picture in the current electronic document;
and the conversion module 72 is configured to create, according to the conversion command, a graph with a filling attribute being the picture in the current electronic document, and delete an original picture resource corresponding to the picture in the current electronic document.
In one implementation, the receiving module 71 may include: a first detection unit 711 for displaying a command button for triggering a picture to graphics conversion when a selection operation for the picture is detected; a second detection unit 712 for receiving the switch command when detecting a trigger operation for the command button. Therefore, the conversion from the picture to the graph is triggered by the command button, the operation is more convenient and quick, the user can conveniently convert the picture into the graph by one key, the process and the steps of the user operation are greatly simplified, and the complexity of the operation is reduced.
In one implementation, the conversion module 72 may include: an inserting unit 721 for, when receiving the conversion command, calling a document object API to insert a graphic object matching the picture specification in the current electronic document; and a filling unit 722, configured to set the picture resource to the graphics.
In one implementation manner of this embodiment, the inserting unit 721 may specifically be configured to call the document object API to extract the shape attribute information of the picture, and create a graphic object with the same contour attribute as the shape attribute information of the picture. Therefore, by creating the graph with the contour attribute identical to the size of the picture, the size, the shape and the like of the picture can be ensured to be unchanged before and after conversion, so that the user experience is improved.
In one implementation, the conversion module 72 may further include: a copy unit 723 and a delete unit 724; the copying unit 723 may be used to extract the original picture resource in the current electronic document and copy the original picture resource to obtain a picture resource copy; a deleting unit 724, configured to delete the original film resource in the current electronic document after obtaining the film resource copy; the filling unit 722 may be specifically configured to set the copy of the picture resource to the graphic.
It should be noted that the foregoing various implementations are exemplary implementations, and the receiving module 71 and the converting module 72 may be implemented in other manners. The specific implementation process of the corresponding functions is different, and the structures of the receiving module 71 and the converting module 72 are different. In specific applications, the specific structures of the receiving module 71 and the converting module 72 may be adjusted based on the specific implementation of the corresponding functions, which is not limited herein.
In practical applications, the processing device for the picture object in the electronic document of the embodiment may be disposed in the electronic device or may be implemented as the electronic device. The modules and units in the device can be respectively software, hardware or a combination of the two. Specifically, the receiving module 71 and the converting module 72 may be software, hardware, or a combination of both.
For further technical details of this embodiment, reference may be made to embodiment one.
Example III
A processing apparatus for a picture object in an electronic document, as shown in fig. 8, includes:
a display 81;
a memory 82 in which a computer program is stored;
the processor 83 is configured to read the computer program to perform the operations of the processing method of the picture object in the electronic document according to the first embodiment.
In practical applications, the processing device for the picture object in the electronic document of the embodiment may be implemented by an electronic device. The processing means may comprise a display 81, a memory 82 and a processor 83 in the infrastructure. On the basis of the basic structure, other components can be added according to the actual application requirements. For example, the processing device may further include: the display 81 may be implemented as a touch display supporting a touch operation by an input means such as a mouse, a keyboard, etc. On this basis, other components can be added, for example, the processing device can further comprise: voice input means, communication circuitry, etc.
For further technical details of this embodiment, reference may be made to embodiment one.
Example IV
A computer storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method for processing a picture object in an electronic document of embodiment one.
In practical applications, the computer storage medium of the present embodiment may be configured in the above electronic device, so as to implement the steps of the method for processing a picture object in an electronic document in the first embodiment.
For further technical details of this embodiment, reference may be made to embodiment one.
Note that the computer storage media of the present embodiment can include both permanent and non-permanent, removable and non-removable storage media, and can be implemented in any method or technology for storage of information. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, read only optical disk read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device.
Although the embodiments of the present application are described above, the embodiments are only used for facilitating understanding of the present application, and are not intended to limit the present application. Any person skilled in the art can make any modification and variation in form and detail without departing from the spirit and scope of the present disclosure, but the scope of the present disclosure is to be determined by the appended claims.

Claims (9)

1. A method for processing a picture object in an electronic document, comprising:
receiving a conversion command for converting a picture into a figure under the triggering of a predetermined operation for the picture in the current electronic document;
creating a graph with filling attribute as the picture in the current electronic document according to the conversion command, and deleting an original picture resource corresponding to the picture in the current electronic document;
wherein the predetermined operation includes: selecting operation;
the step of creating the graph with filling attribute as the picture in the current electronic document according to the conversion command comprises the following steps:
when the conversion command is received, a document object API is called to insert a graphic object matched with the picture specification in the current electronic document;
and setting the picture resource on the graph.
2. The method according to claim 1, wherein the receiving a conversion command for converting a picture into a graphic under the trigger of a predetermined operation for the picture in the current electronic document, comprises:
when detecting the selection operation of the picture, displaying a command button for triggering the conversion of the picture to the graph;
and receiving the conversion command when the triggering operation for the command button is detected.
3. The method of claim 1, wherein the calling a document object API to insert a graphical object that matches the picture specification comprises:
and calling a document object API to extract the shape attribute information of the picture, and creating a graphic object with the contour attribute identical to the shape attribute information of the picture.
4. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the setting the picture resource on the graph comprises the following steps: extracting an original picture resource in the current electronic document and copying to obtain a picture resource copy, and setting the picture resource copy on the graph;
the deleting the original picture resources corresponding to the picture in the current electronic document comprises the following steps: and deleting the original picture resources in the current electronic document after the picture resource copy is obtained.
5. A processing apparatus for a picture object in an electronic document, comprising:
the receiving module is used for receiving a conversion command for converting the picture into the graph under the triggering of a preset operation aiming at the picture in the current electronic document;
the conversion module is used for creating a graph with filling attribute as the picture in the current electronic document according to the conversion command and deleting the original picture resource corresponding to the picture in the current electronic document;
wherein the predetermined operation includes: selecting operation;
the conversion module comprises:
the inserting unit is used for calling a document object API to insert a graphic object matched with the picture specification in the current electronic document when the conversion command is received;
and the filling unit is used for setting the picture resources on the graph.
6. The apparatus of claim 5, wherein the receiving module comprises:
the first detection unit is used for displaying a command button for triggering the conversion of the picture to the graph when detecting the selection operation of the picture;
and the second detection unit is used for receiving the conversion command when detecting the triggering operation of the command button.
7. The apparatus of claim 5, wherein the conversion module further comprises: a copy unit and a delete unit;
the copying unit is used for extracting the original picture resources in the current electronic document and copying to obtain picture resource copies;
the deleting unit is used for deleting the original picture resources in the current electronic document after the picture resource copy is obtained;
the filling unit is specifically configured to set the copy of the picture resource on the graph.
8. A processing apparatus for a picture object in an electronic document, comprising:
a display;
a memory storing a computer program;
a processor configured to read the computer program to perform the operations of the method of processing a picture object in an electronic document as claimed in any one of claims 1 to 4.
9. A computer storage medium, characterized in that the computer storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the method for processing a picture object in an electronic document according to any of claims 1 to 4.
CN201711484891.2A 2017-12-29 2017-12-29 Method and device for processing picture object in electronic document Active CN109993815B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711484891.2A CN109993815B (en) 2017-12-29 2017-12-29 Method and device for processing picture object in electronic document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711484891.2A CN109993815B (en) 2017-12-29 2017-12-29 Method and device for processing picture object in electronic document

Publications (2)

Publication Number Publication Date
CN109993815A CN109993815A (en) 2019-07-09
CN109993815B true CN109993815B (en) 2023-11-07

Family

ID=67110357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711484891.2A Active CN109993815B (en) 2017-12-29 2017-12-29 Method and device for processing picture object in electronic document

Country Status (1)

Country Link
CN (1) CN109993815B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6253231B1 (en) * 1998-10-07 2001-06-26 Sony Corporation System and method for incorporating image data into electronic mail documents
JP2003173440A (en) * 2001-12-06 2003-06-20 Mitsubishi Electric Corp Image converting device and method, image display device, image transfer system and method, image converting program and image display program
JP2007179261A (en) * 2005-12-27 2007-07-12 Canon Inc Image processor, image processing method and control program
CN101820489A (en) * 2009-02-27 2010-09-01 佳能株式会社 Image processing equipment and image processing method
JP2011197995A (en) * 2010-03-19 2011-10-06 Casio Computer Co Ltd Image processor and image processing method
CN104063902A (en) * 2014-06-22 2014-09-24 湘潭大学 Finite element modeling method based on real material microstructure

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6253231B1 (en) * 1998-10-07 2001-06-26 Sony Corporation System and method for incorporating image data into electronic mail documents
JP2003173440A (en) * 2001-12-06 2003-06-20 Mitsubishi Electric Corp Image converting device and method, image display device, image transfer system and method, image converting program and image display program
JP2007179261A (en) * 2005-12-27 2007-07-12 Canon Inc Image processor, image processing method and control program
CN101820489A (en) * 2009-02-27 2010-09-01 佳能株式会社 Image processing equipment and image processing method
JP2011197995A (en) * 2010-03-19 2011-10-06 Casio Computer Co Ltd Image processor and image processing method
CN104063902A (en) * 2014-06-22 2014-09-24 湘潭大学 Finite element modeling method based on real material microstructure

Also Published As

Publication number Publication date
CN109993815A (en) 2019-07-09

Similar Documents

Publication Publication Date Title
US11778430B2 (en) Layers in messaging applications
US10514819B2 (en) Operating system support for location cards
KR101382517B1 (en) Method and mobile terminal for processing contacts
EP2778870B1 (en) Method and apparatus for copying and pasting of data
US10747391B2 (en) Method and device for executing applications through application selection screen
KR102310654B1 (en) Resizing technique for display content
CN105320509B (en) Picture processing method and picture processing device
CN104932773A (en) Information processing method and electronic equipment
WO2015184736A1 (en) Method and terminal for transforming background picture of touchscreen device
WO2023226371A1 (en) Target object interactive reproduction control method and apparatus, device and storage medium
KR20190054130A (en) Method and apparatus for processing motion objects
CN110134452B (en) Object processing method and device
CN111127469A (en) Thumbnail display method, device, storage medium and terminal
WO2015120370A1 (en) Automatically embedding digital maps in software applications
CN109993815B (en) Method and device for processing picture object in electronic document
CN113296906B (en) Task configuration method and device
CN106055416B (en) Method and device for data cross-application transfer
CN110058751B (en) Method and device for selecting electronic document content
CN110083812B (en) Picture layout method and device of electronic document and electronic equipment
US11054968B2 (en) Method and a device for managing a plurality of messages simultaneously
CN114846493A (en) Associating content items with captured images of meeting content
CN106775283B (en) Content display method, device and equipment
CN115808999B (en) Window display method, terminal device and computer readable storage medium
US20180033170A1 (en) Sketch-effect hatching

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