CN109993815A - The processing method and processing device of object picture in electronic document - Google Patents
The processing method and processing device of object picture in electronic document Download PDFInfo
- Publication number
- CN109993815A CN109993815A CN201711484891.2A CN201711484891A CN109993815A CN 109993815 A CN109993815 A CN 109993815A CN 201711484891 A CN201711484891 A CN 201711484891A CN 109993815 A CN109993815 A CN 109993815A
- Authority
- CN
- China
- Prior art keywords
- picture
- electronic document
- current electronic
- resource
- conversion command
- 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.)
- Granted
Links
- 238000012545 processing Methods 0.000 title claims abstract description 22
- 238000003672 processing method Methods 0.000 title claims abstract description 16
- 238000006243 chemical reaction Methods 0.000 claims abstract description 63
- 238000000034 method Methods 0.000 claims description 20
- 238000003860 storage Methods 0.000 claims description 14
- 238000004590 computer program Methods 0.000 claims description 9
- 230000009471 action Effects 0.000 claims description 8
- 238000001514 detection method Methods 0.000 claims description 6
- 238000003780 insertion Methods 0.000 claims description 5
- 230000037431 insertion Effects 0.000 claims description 5
- 238000012217 deletion Methods 0.000 claims description 3
- 230000037430 deletion Effects 0.000 claims description 3
- 239000000284 extract Substances 0.000 claims description 3
- 235000015170 shellfish Nutrition 0.000 claims 1
- 230000006870 function Effects 0.000 description 14
- 230000008569 process Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 7
- 230000004044 response Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
Disclosed herein is a kind of processing method and processing devices of object picture in electronic document, comprising: under for the triggering of the predetermined operation of picture in Current electronic document, receives the conversion command for picture to be converted to figure;According to the conversion command, according to the conversion command, it is the figure of the picture in Current electronic document creation fill area attribute, and delete the original picture resource that the picture is corresponded in Current electronic document.Picture can be converted to figure automatically by the application, simplify user's operation, also improve the treatment effeciency of electronic document.
Description
Technical field
The present invention relates to net application technology, the processing method and processing device of object picture in espespecially a kind of electronic document.
Background technique
In electronic document, picture and figure can all carry out property operations, and transparency, customized sanction can be set in Drawing Object
It cultrates the attributes such as shape, but object picture cannot do similar setting operation.If user needs to the picture in electronic document
Object does similar setting operation, then must do the pre-operation of very complicated to object picture manually, treatment effeciency is low, user's body
It is also poor to test.
Summary of the invention
The present invention provides a kind of processing method and processing devices of object picture in electronic document, can at least simplify user behaviour
Make.
The present invention provides following technical solutions.
The processing method of object picture in a kind of electronic document, comprising:
Under for the triggering of the predetermined operation of picture in Current electronic document, receive for picture to be converted to figure
Conversion command;
It is the figure in Current electronic document creation fill area attribute according to the conversion command according to the conversion command
The figure of piece, and delete the original picture resource that the picture is corresponded in Current electronic document.
Wherein, the predetermined operation detected for picture in Current electronic document receives and turns for the picture
Change order, comprising: detect for the picture when choosing operation, display is pressed for triggering picture to the order that figure is converted
Button;When detecting the trigger action for the order button, the conversion command is received.
Wherein, described is the figure of the picture in Current electronic document creation fill area attribute according to the conversion command,
It include: to call document object API to be inserted into and the picture specification phase in Current electronic document when receiving the conversion command
Matched Drawing Object;It is arranged on the picture resource to the figure.
Wherein, the Drawing Object for calling document object API insertion to match with the picture specification, comprising: call
Document object API extracts the shape attribute information of the picture, and creates shape attribute information phase of the profile attributes with the picture
Same Drawing Object.
Wherein, on the setting picture resource to the figure, comprising: extract the original picture in Current electronic document
Resource is simultaneously copied to obtain picture resource copy, is arranged on the picture resource copy to the figure;The deletion Current electronic
The original picture resource of the picture is corresponded in document, comprising: after obtaining picture resource copy, delete in Current electronic document
The original picture resource.
The processing unit of object picture in a kind of electronic document, comprising:
Receiving module, for receiving for that will scheme under for the triggering of the predetermined operation of picture in Current electronic document
Piece is converted to the conversion command of figure;
Conversion module, for being the picture in Current electronic document creation fill area attribute according to the conversion command
Figure, and delete the original picture resource that the picture is corresponded in Current electronic document.
Wherein, the receiving module, comprising:
First detection unit is directed to when choosing operation of the picture for detecting, shows for triggering picture to figure
The order button of shape conversion;
Second detection unit receives the conversion command when for detecting the trigger action for being directed to the order button.
Wherein, the conversion module, comprising:
It is inserted into unit, for calling document object API to be inserted into Current electronic document when receiving the conversion command
The Drawing Object to match with the picture specification;
Fills unit, for the picture resource to be arranged to the figure.
Wherein, the conversion module, further includes: copy cell and deletion unit;Copy cell, for extracting Current electronic
Original picture resource and copy in document is to obtain picture resource copy;Delete unit, for obtain picture resource copy it
Afterwards, the original picture resource in Current electronic document is deleted;The fills unit is specifically used for that the picture resource pair is arranged
In sheet to the figure.
The processing unit of object picture in a kind of electronic document, comprising:
Display;
It is stored with the memory of computer program;
Processor is configured to read processing method of the computer program to execute object picture in above-mentioned electronic document
Operation.
A kind of computer storage medium is stored with computer program, the calculating on the computer readable storage medium
Machine program realizes the step of processing method of object picture in above-mentioned electronic document when being executed by processor.
The advantages of the application, includes at least:
The embodiment of the present invention can be under for the triggering of the predetermined operation of picture in electronic document, by the picture automatic conversion
It can facilitate one key of user that picture is converted to figure so that user carries out attribute setting for figure, not only significantly simplify user behaviour
Make, and improves the treatment effeciency of electronic document.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right
Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this
The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is the schematic diagram of one exemplary context of use of the application;
Fig. 2 is the schematic diagram of the application another exemplary application environment;
Fig. 3 is the processing method flow diagram of object picture in the electronic document of embodiment one;
Fig. 4 is the exemplary execution flow diagram that picture A transparency in electronic document is arranged;
Fig. 5 is the examples of interfaces figure for showing " being converted to figure " button of picture A;
Fig. 6 is the examples of interfaces figure being automatically converted to picture A in electronic document after figure B;
Fig. 7 is the structural schematic diagram of the processing unit of object picture in the electronic document of embodiment two;
Fig. 8 is the structural schematic diagram of the processing unit of object picture in the electronic document of embodiment three.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention
Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application
Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions
It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable
Sequence executes shown or described step.
Electronic equipment described herein can be any equipment for supporting document process.The electronic equipment can there are many
Way of realization.For example, the electronic equipment can be such as mobile phone, tablet computer, laptop, palm PC, individual digital
Assistant (Personal Digital Assistant, PDA), portable media player (Portable Media Player,
PMP), mobile terminal devices such as navigation device, wearable device, Intelligent bracelet, pedometer, and desktop computer etc. are solid
Determine terminal device.
In the related technology, in office documents software for editing such as WPS, Microsoft Office, there are picture and Drawing Object,
But object picture can not image pattern object transparency, the attributes such as customized cutting shape equally can be set.When user need to
When picture is arranged transparency or customized cutting shape is arranged, need to be done as follows completion: needs first separately deposit object picture
For picture file A;It is inserted into an AutoShape;AutoShape is arranged is filled with picture filling, and picture uses picture file A;
Delete object picture;The filling transparency of figure is set, customized cutting shape attribute is set.It will thus be seen that being set to picture
User needs to do cumbersome pre-operation when setting certain attributes, not only low efficiency, but also time-consuming and laborious.
For the setting of certain attributes (for example, transparency, customized cutting shape etc.) of object picture in the related technology
The problem of cumbersome complicated, low efficiency, the following technical solutions are proposed by the application, can a key picture is converted into figure, it is convenient
User is arranged to above-mentioned attribute is completed, and can simplify user's operation, improve efficiency.
As shown in Figure 1, being a kind of exemplary context of use schematic diagram of the application.As shown in Figure 1, user is by office software
It is installed on computer, computer provides a user the editting function of electronic document by running the office software, and user can be
The enterprising style of writing shelves edit operation of the user interface of the electronic document, computer generate corresponding in response to the documents editing operation of user
The document of format executes corresponding document format processing.
As shown in Fig. 2, being the another exemplary application environment exemplary diagram of the application.In application environment as shown in Figure 2, use
Office application program is installed in mobile device by family, and mobile device runs the office application program and provides a user electronic document
Editting function, the enterprising style of writing shelves edit operation of the electronic document user interface that user can be presented on the mobile apparatus, movement set
The standby documents editing operation that may be in response to user generates the document of corresponding format or executes corresponding document format processing.
In addition to this, the application applies also for other environment.It is appreciated that the technical solution of the application is applicable to electricity
In the various application environments of subdocument.For specific application environment, not limit herein.
The implementation of technical scheme is described in detail below.
Embodiment one
As shown in figure 3, in a kind of electronic document object picture processing method, may include:
Step 301, it under for the triggering of the predetermined operation of picture in Current electronic document, receives for converting picture
For the conversion command of figure;
Step 302, according to the conversion command, according to the conversion command, in Current electronic document creation fill area attribute
For the figure of the picture, and delete the original picture resource that the picture is corresponded in Current electronic document.
The method of the present embodiment, can be automatic by the picture under for the triggering of the predetermined operation of picture in electronic document
Figure is converted to, so that user carries out attribute setting, can facilitate one key of user that picture is converted to figure, not only significantly simplify use
Family operation, and improve the treatment effeciency of electronic document.
In a kind of implementation of the present embodiment, the predetermined operation detected for picture in Current electronic document,
The conversion command for being directed to the picture is received, may include: to detect for the picture when choosing operation, is shown for touching
The order button that hair picture is converted to figure;When detecting the trigger action for the order button, the conversion life is received
It enables.Conversion of the picture to figure is triggered by order button, more convenient operation is quick, and one key of user can be facilitated to be converted to picture
Figure has significantly simplified the process and step, the complexity for reducing operation of user's operation.
In practical application, above-mentioned switching button can be pre-configured with.Turn for example, can be pre-configured in picture toolbar
Change button;And/or switching button can be pre-configured in picture right-click menu;And/or it can be in picture right-click menu
Switching button is pre-configured in tabs.In this way, user, which clicks switching button, can trigger the switching button, in switching button quilt
When triggering, electronic equipment has received the conversion command that chosen picture is switched to figure.
In addition to above-mentioned implementation, automatic conversion of the picture to figure can be also triggered by other means.For example, can be with
It is pre-configured with the shortcut key for triggering picture to figure automatic conversion, user chooses some picture of electronic document to click later
The shortcut key can trigger shortcut key of the picture to figure automatic conversion.In other words, described to detect for Current electronic document
The predetermined operation of middle picture receives the conversion command for being directed to the picture, may include: to detect choosing for the picture
When the trigger action of operation and preconfigured shortcut key, the conversion command that the picture is converted to figure is received, this is quick
Key is the shortcut key for triggering picture to figure automatic conversion.
It should be noted that the present embodiment is not limited to above two reality for the predetermined operation of picture in Current electronic document
Existing mode.In concrete application, the characteristics of in combination with application scenarios, the demand of user oneself etc. freely set, for being directed to currently
The specific implementation of the predetermined operation of picture in electronic document not limits herein.
It is described according to the conversion command in the present embodiment, the figure that fill area attribute is the picture is generated, can wrap
It includes: when receiving the conversion command, document object API being called to be inserted into and the picture specification phase in Current electronic document
The Drawing Object matched;It is arranged on the picture resource to the figure.
In a kind of implementation of the present embodiment, document object API can be called to extract the shape attribute letter of the picture
Breath, and create profile attributes Drawing Object identical with the shape attribute information of the picture.In this way, by creation profile attributes with
The identical figure of the size of picture, it can be ensured that rear its size, shape etc. remain unchanged picture before switching, to promote user
Experience.
In another implementation of the present embodiment, call document object API in the insertion of Current electronic document and the figure
When the Drawing Object that piece specification matches, it can also be created according to preset profile attributes and the picture specification phase
The Drawing Object matched.Here, preset profile attributes can be user's self-setting, be also possible to according to default configuration
's.In this way, the figure being adapted by the creation of preset profile attributes with picture specification, it can be ensured that after picture conversion
Shape meet the needs of users or basic demand when electronic document handles, be conducive to promote user experience, while can be with
Electronic document other function is preferably compatible with, and then improves the treatment effeciency of electronic document.
In the present embodiment, the type of be inserted into Drawing Object can be preset, can also be that user is customized
Type can also select suitable graphic object type according to the characteristics of current image.It is filled out for example, the Drawing Object can be nothing
The geometric figure filled can also be other customized packless figures of user.In concrete application, user can create and make by oneself
Simultaneously the Drawing Object is arranged for picture transform graphical, in this way, can be by the customized Drawing Object of user in the Drawing Object of justice
Among picture transform graphical, is conducive to the individual demand for meeting user, further promotes user experience.
It may include: to mention on the setting picture resource to the figure in a kind of implementation of the present embodiment
It takes the original picture resource in Current electronic document and copies to obtain picture resource copy, which is set described in
On figure;It is described to delete the original picture resource that the picture is corresponded in Current electronic document, it may include: to obtain picture resource
After copy, the original picture resource in Current electronic document is deleted.
It should be noted that picture resource refers to the example information for storing image data in the present embodiment.For example, figure
Its picture resource is KBlipAtom example 1 when piece A is inserted into electronic document, when picture A is converted to figure B, needs to copy the picture
The copy of resource creates a KBlipAtom example 2, then the KBlipAtom example 2 setting is arrived to the filling category of figure B
In property.
Illustrate the realization process of the present embodiment with an example below.
The first step obtains the shape attribute information of picture;
Specifically, obtain picture shape attribute process may include: shown on the display interface of electronic document it is every
A picture is an AbstractShape example, passes through geometry2D () function of the AbstractShape example of picture
Geometry2D example can be obtained, which can be obtained by interpretPath () function of Geometry2D example
Shape attribute information, for example, shape attribute information here is three of the triangle for the picture of a triangle
The coordinate on vertex.
Second step is inserted into figure pair according to the shape attribute information (i.e. the dimensional parameters of picture) of picture in an electronic document
As;
Specifically, Drawing Object can be inserted into according to the shape attribute of picture.
For example, it is inserted into the triangle that a vertex is (1,11) (2,22) (3,33), it can be real by following process
It is existing:
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。
Third step obtains picture resource;
It is obtained specifically, the process for obtaining picture resource may is that by the fill () function of AbstractShape example
Fill example, then Blip example is obtained by the blip () function of Fill example, the blipAtom () function of Blip example obtains
KBlipAtom example 1 (i.e. original picture resource) creates a KBlipAtom example 2, calls CopyForm () by picture resource
A copy is copied, which is KBlipAtom example 2.Here, each picture resource corresponds to as one
KBlipAtom example.
4th step deletes the picture resource in electronic document;
5th step is arranged on the Drawing Object that picture resource is inserted into second step.
Specifically, Fill example is obtained by the fill () function of the AbstractShape example of figure, Fill example
Blip () function obtains Blip example, and the setting of KBlipAtom example 2 is arrived Blip by setblipAtom () function of Blip example
In example.
The application process of the present embodiment is exemplified below.
As shown in figure 4, process flow may include: when user needs to do the setting of transparency to rectangle picture A
Step 401, user clicks picture A in Current electronic document to choose it, chooses operation in response to this, electronics is set
It is standby to detect that current object picture to be processed is picture A;
Step 402, the tabs of user's right button selection setting picture format, in response to the selection operation, electronic equipment is aobvious
Show the tabs, the order button of " being converted to figure " is equipped in the tabs;
As shown in figure 5, being the examples of interfaces figure of this step.It " is converted to it should be noted that being only shown in the tabs
The order button of figure ", is not shown other order buttons relevant to object picture or attribute setting options, this does not indicate the choosing
Xiang Kazhong does not include other order buttons or attribute setting options.That is, can also be wrapped in the tabs of setting picture format
The order button or attribute setting options of object picture are directed to containing other.For the tool of order button and/or attribute setting options
Body form not limits herein.
Step 403, user clicks " being converted to figure " button, triggers automatic conversion of the picture A to figure B;
Step 404, in response to the trigger action of " being converted to figure " button, picture A is executed in electronic document to figure B's
Automatic conversion processing;
In this step, automatic conversion processing may include: that document object api interface is first called to be inserted into one with picture A
An equal amount of rectangular object R, then by picture resource (for example, the memory address information) setting of original picture to rectangular object R's
In fill area attribute, generate the figure B that fill area attribute is picture A, among this, delete picture A in electronic document information (for example,
The picture resource of picture A in electronic document).As shown in fig. 6, being replaced by the interface after figure B for figure A in electronic document
Exemplary diagram.
Step 405, user chooses figure B, and the tabs of selection setting graphical format, sets in tabs in right-click menu
Transparency is set, process terminates.
It should be noted that above-mentioned fig. 4 to fig. 6 is example, in practical applications, the present embodiment can also pass through its other party
Formula is realized.
The method of the present embodiment establishes object picture in electronic document, can to the bridge of automatic conversion between Drawing Object
The picture being selected in electronic document is converted into figure automatically under the triggering of user's operation, so that user makees picture pair to it
As the function setting, such as setting transparency, customized cutting shape etc. that do not support but Drawing Object is supported.
Embodiment two
The processing unit of object picture in a kind of electronic document, as shown in fig. 7, may include:
Receiving module 71, under for the triggering of the predetermined operation of picture in Current electronic document, reception is used for will
Picture is converted to the conversion command of figure;
Conversion module 72, for being the picture in Current electronic document creation fill area attribute according to the conversion command
Figure, and delete the original picture resource that the picture is corresponded in Current electronic document.
In a kind of implementation, the receiving module 71 may include: first detection unit 711, be directed to for detecting
When choosing operation of the picture shows the order button converted for triggering picture to figure;Second detection unit 712 is used
When detecting the trigger action for the order button, the conversion command is received.Scheme in this way, being triggered by order button
Conversion of the piece to figure, more convenient operation is quick, can facilitate one key of user that picture is converted to figure, significantly simplify user's operation
Process and step, reduce the complexity of operation.
In a kind of implementation, the conversion module 72 may include: insertion unit 721, for receiving described turn
When changing order, document object API is called to be inserted into the Drawing Object to match with the picture specification in Current electronic document;Filling
Unit 722, for the picture resource to be arranged to the figure.
In a kind of implementation of the present embodiment, it is inserted into unit 721, specifically can be used for that document object API is called to extract
The shape attribute information of the picture, and create profile attributes Drawing Object identical with the shape attribute information of the picture.This
Sample passes through identical with the size of the picture figure of creation profile attributes, it can be ensured that picture before switching after its size, shape etc.
It remains unchanged, to promote user experience.
In a kind of implementation, the conversion module 72 can also include: copy cell 723 and delete unit 724;Its
In, copy cell 723 can be used for extracting the original picture resource in Current electronic document and copy to obtain picture resource pair
This;Unit 724 is deleted, can be used for after obtaining picture resource copy, the original picture in Current electronic document is deleted
Resource;The fills unit 722 is particularly used on the setting picture resource copy to the figure.
It should be noted that above-mentioned various implementations are example implementations, receiving module 71, conversion module 72
It can also realize by other means respectively.The specific implementation process of corresponding function is different, the knot of receiving module 71, conversion module 72
Structure is difference.In concrete application, receiving module 71, conversion module 72 specific structure can be based on the specific implementation of its corresponding function
Mode is adjusted, in this regard, not limiting herein.
In practical application, the processing unit of object picture be can be set in electronic equipment or can in the present embodiment electronic document
To be embodied as electronic equipment.Each module, each unit can be the combination of software, hardware or both respectively in the device.It is specific next
It says, receiving module 71, conversion module 72 can be the combination of software, hardware or both respectively.
The other technologies details of the present embodiment can refer to embodiment one.
Embodiment three
The processing unit of object picture in a kind of electronic document, as shown in Figure 8, comprising:
Display 81;
It is stored with the memory 82 of computer program;
Processor 83 is configured to read the computer program to execute object picture in electronic document described in embodiment one
Processing method operation.
In practical application, the processing unit of object picture can be by electronic equipment come real in the present embodiment electronic document
It is existing.It may include display 81, memory 82 and processor 83 in the foundation structure of the processing unit.This foundation structure it
On, other component can be increased according to the needs of practical application.For example, can also include: that mouse, keyboard etc. are defeated in the processing unit
Enter component, display 81 can be implemented as supporting the touch control display of touch control operation.On this basis, other portions can also be increased
Part, for example, can also include: voice-input component, telecommunication circuit etc. in the processing unit.
The other technologies details of the present embodiment can refer to embodiment one.
Example IV
A kind of computer storage medium is stored with computer program, the calculating on the computer readable storage medium
The step of processing method of object picture in electronic document described in embodiment one is realized when machine program is executed by processor.
In practical application, the computer storage medium of the present embodiment is configured in above-mentioned electronic equipment, is implemented with realizing
In electronic document described in example one the step of the processing method of object picture.
The other technologies details of the present embodiment can refer to embodiment one.
It should be noted that the computer storage medium of the present embodiment may include permanent and non-permanent, removable
With non-movable storage medium, information storage can be accomplished by any method or technique.Information can be computer-readable finger
It enables, data structure, the module of program or other data.The example of the storage medium of computer includes, but are not limited to phase change memory
(PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other kinds of arbitrary access are deposited
Reservoir (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other in
Deposit technology, read-only disc read only memory (CD-ROM) (CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic box type magnetic
Band, disk storage or other magnetic storage devices or any other non-transmission medium, can be used for storing can be visited by calculating equipment
The information asked.
Although disclosed herein embodiment it is as above, the content only for ease of understanding the present invention and use
Embodiment is not intended to limit the invention.Technical staff in any fields of the present invention is taken off not departing from the present invention
Under the premise of the spirit and scope of dew, any modification and variation, but the present invention can be carried out in the form and details of implementation
Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.
Claims (11)
1. the processing method of object picture in a kind of electronic document characterized by comprising
Under for the triggering of the predetermined operation of picture in Current electronic document, the conversion for picture to be converted to figure is received
Order;
It is the picture in Current electronic document creation fill area attribute according to the conversion command according to the conversion command
Figure, and delete the original picture resource that the picture is corresponded in Current electronic document.
2. the method according to claim 1, wherein it is described detect in Current electronic document picture it is pre-
Fixed operation, receives the conversion command for being directed to the picture, comprising:
It detects for when choosing operation of the picture, shows the order button converted for triggering picture to figure;
When detecting the trigger action for the order button, the conversion command is received.
3. the method according to claim 1, wherein described according to the conversion command, in Current electronic document
Create the figure that fill area attribute is the picture, comprising:
When receiving the conversion command, document object API is called to be inserted into and the picture specification phase in Current electronic document
Matched Drawing Object;
It is arranged on the picture resource to the figure.
4. according to the method described in claim 3, it is characterized in that, calling document object API insertion is advised with the picture
The Drawing Object that lattice match, comprising:
It calls document object API to extract the shape attribute information of the picture, and creates the shape category of profile attributes Yu the picture
The property identical Drawing Object of information.
5. according to the method described in claim 3, it is characterized in that,
On the setting picture resource to the figure, comprising: extract the original picture resource in Current electronic document and copy
Shellfish is arranged on the picture resource copy to the figure with obtaining picture resource copy;
Described delete corresponds to the original picture resource of the picture in Current electronic document, comprising: obtain picture resource copy it
Afterwards, the original picture resource in Current electronic document is deleted.
6. the processing unit of object picture in a kind of electronic document characterized by comprising
Receiving module, under for the triggering of the predetermined operation of picture in Current electronic document, receiving for turning picture
It is changed to the conversion command of figure;
Conversion module, for being the figure of the picture in Current electronic document creation fill area attribute according to the conversion command,
And delete the original picture resource that the picture is corresponded in Current electronic document.
7. device according to claim 6, which is characterized in that the receiving module, comprising:
First detection unit is directed to when choosing operation of the picture for detecting, display turns for triggering picture to figure
The order button changed;
Second detection unit receives the conversion command when for detecting the trigger action for being directed to the order button.
8. device according to claim 6, which is characterized in that the conversion module, comprising:
It is inserted into unit, for when receiving the conversion command, calling document object API in the insertion of Current electronic document and institute
State the Drawing Object that picture specification matches;
Fills unit, for the picture resource to be arranged to the figure.
9. device according to claim 8, which is characterized in that the conversion module, further includes: copy cell and deletion are single
Member;
Copy cell, for extracting the original picture resource in Current electronic document and copying to obtain picture resource copy;
Unit is deleted, for deleting the original picture resource in Current electronic document after obtaining picture resource copy;
The fills unit is specifically used for being arranged on the picture resource copy to the figure.
10. the processing unit of object picture in a kind of electronic document characterized by comprising
Display;
It is stored with the memory of computer program;
Processor is configured to read the computer program with picture in any one of perform claim requirement 1 to 6 electronic document
The operation of the processing method of object.
11. a kind of computer storage medium, which is characterized in that be stored with computer journey on the computer readable storage medium
Sequence, the computer program realize object picture in electronic document described in any one of claims 1 to 6 when being executed by processor
Processing method the step of.
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 true CN109993815A (en) | 2019-07-09 |
CN109993815B 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)
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 |
-
2017
- 2017-12-29 CN CN201711484891.2A patent/CN109993815B/en active Active
Patent Citations (7)
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 |
US20100220929A1 (en) * | 2009-02-27 | 2010-09-02 | Canon Kabushiki Kaisha | Image processing apparatus, image processing method, and computer-readable storage medium |
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 |
---|---|
CN109993815B (en) | 2023-11-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5467157B2 (en) | Method and mobile terminal for processing contacts | |
US10082949B2 (en) | Apparatus and method for application peel | |
US11513753B2 (en) | Data processing method and electronic terminal | |
US20100313126A1 (en) | Method and apparatus for providing selection area for touch interface | |
CN107562323A (en) | icon moving method, device and terminal | |
KR20140143971A (en) | Shared home screen apparatus and method thereof | |
CN104731500B (en) | A kind of information processing method and electronic equipment | |
US9747007B2 (en) | Resizing technique for display content | |
CN106896998B (en) | Method and device for processing operation object | |
CN112230909A (en) | Data binding method, device and equipment of small program and storage medium | |
US11895076B2 (en) | Electronic messaging platform that allows users to edit and delete messages after sending | |
WO2017177820A1 (en) | File sending method and device in instant communication | |
EP2757458A2 (en) | Method and electronic device for displaying application | |
US9965147B2 (en) | Display method and electronic device | |
CN109993815A (en) | The processing method and processing device of object picture in electronic document | |
US20220147693A1 (en) | Systems and Methods for Generating Documents from Video Content | |
CN110058751A (en) | Select the method and device of electronic document content | |
KR102208628B1 (en) | Method for editing a document and mobile terminal using the method | |
CN105446575B (en) | A kind of information processing method and electronic equipment | |
KR20170093427A (en) | Implement the method and system of the story keyboard for a social network service |
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 |