CN104216626B - A kind of image acquiring method and electronic equipment - Google Patents

A kind of image acquiring method and electronic equipment Download PDF

Info

Publication number
CN104216626B
CN104216626B CN201310217928.0A CN201310217928A CN104216626B CN 104216626 B CN104216626 B CN 104216626B CN 201310217928 A CN201310217928 A CN 201310217928A CN 104216626 B CN104216626 B CN 104216626B
Authority
CN
China
Prior art keywords
image
area
electronic equipment
user
size
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
CN201310217928.0A
Other languages
Chinese (zh)
Other versions
CN104216626A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310217928.0A priority Critical patent/CN104216626B/en
Publication of CN104216626A publication Critical patent/CN104216626A/en
Application granted granted Critical
Publication of CN104216626B publication Critical patent/CN104216626B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of image acquiring method, for mitigating electronic equipment burden.Methods described includes:The first identification image is shown in the display unit, wherein, first identification image is corresponding with the first object, and first identification image is used to identify first object;First identification image takes first area on the display unit;The first area is first size;Obtain the more new command for first identification image;More new command obtains the first image according to described in;When obtaining the first determination operation, the second image is shown in second area, second image is the Part I of described first image;The second area is the second size, and the first size and the second size are identical;Using second image as the second identification image.The invention also discloses the electronic equipment for realizing methods described.

Description

A kind of image acquiring method and electronic equipment
Technical field
The present invention relates to computer and built-in field, more particularly to a kind of image acquiring method and electronic equipment.
Background technology
With the continuous development of scientific technology, electronic technology has also obtained development at full speed, and the species of electronic product is also got over Come more, people have also enjoyed the various facilities that development in science and technology is brought.Present people can be set by various types of electronics It is standby, enjoy the comfortable life brought with development in science and technology.Such as the electronic equipment such as mobile phone have become people life in one not Can or scarce part, people it can be strengthened with other people in a manner of making a phone call, send short messages etc. by electronic equipments such as mobile phones Between contact.
In the prior art, user wants to handle picture sometimes when checking picture, such as may need to figure Piece is cut.Processing method typically now is:Image processing software is supplied to user one available in its user interface Mouse frame is selected or pulled to adjust the crop box of its position and length and width, and user is dragged the crop box on picture to select Desired position is selected, image processing software is cut after selecting.
The shortcomings that program is:In this way, if final required image is the image of prescribed level, then use Family, because being size and the location for manually adjusting crop box, bad may hold specific size in adjustment, Therefore it may need to adjust repeatedly, need response multiple for electronic equipment, heavy load, and because user grasps manually Make, the bad adjustment of size of crop box, the image that finally gives may be caused undesirable, it is also necessary to readjust, it is clear that The workload of electronic equipment is added, is operated for user also relatively complicated, operating efficiency is relatively low.
The content of the invention
The embodiment of the present invention provides a kind of image acquiring method and electronic equipment, for solving carrying out figure in the prior art Electronic equipment responds repeatedly and the technical problem of heavy load because needing during as adjustment, realizes the skill for mitigating electronic equipment burden Art effect.
A kind of image acquiring method, methods described are applied in electronic equipment, and the electronic equipment includes display unit, institute The method of stating includes:
The first identification image is shown in the display unit, wherein, first identification image is corresponding with the first object, institute The first identification image is stated to be used to identify first object;First identification image takes the firstth area on the display unit Domain;The first area is first size;
Obtain the more new command for first identification image;
More new command obtains the first image according to described in;
When obtaining the first determination operation, the second image is shown in second area, second image is described first The Part I of image;The second area is the second size, and the first size and the second size are identical;
Using second image as the second identification image.
Preferably, the first area and the second area are the same area.
Preferably, after more new command obtains the first image according to described in, and before the first determine instruction is obtained also Including step:
The Part II of described first image is shown in the second area;
Obtain the edit operation for described first image;
The edit operation is responded, the Part I of described first image is shown in the second area.
Preferably, when obtaining the first determine instruction, the step of the second image is shown in second area, includes:
When obtaining the first determine instruction, second image is obtained according to the Part I of described first image;
First identification image is replaced with second image in the second area.
Preferably, after more new command obtains the first image according to described in, and before the first determine instruction is obtained also Including step:
Described first image is shown on the display unit;
The second area is demarcated in described first image, the first of described first image is shown in the second area Part.
Preferably, also include step after using second image as the second identification image:In the first area In first identification image replaced with second identification image.
A kind of electronic equipment, the electronic equipment have display unit, and the electronic equipment includes:
First operating unit, for showing the first identification image on the display unit, wherein, the first mark figure As corresponding with the first object, first identification image is used to identify first object;First identification image is described First area is taken on display unit;The first area is first size;
First acquisition unit, for obtaining the more new command for first identification image;
Second acquisition unit, the first image is obtained for the more new command according to described in;
Second operating unit, for when obtaining first and determining operation, showing the second image in second area, described the Two images are the Part I of described first image;The second area is the second size, the first size and the second size It is identical;
3rd operating unit, for using second image as the second identification image.
Preferably, the first area and the second area are the same area.
Preferably, the electronic equipment also includes the 4th operating unit, the 3rd acquiring unit and the 5th operating unit;
4th operating unit is used for the Part II that described first image is shown in the second area;
3rd acquiring unit is used to obtain the edit operation for described first image;
5th operating unit is used to respond the edit operation, and described the is shown in the second area The Part I of one image.
Obtain subelement preferably, the 3rd operating unit includes first and replace subelement;
Described first, which obtains subelement, is used for when obtaining the first determine instruction, according to the Part I of described first image Obtain second image;
The replacement subelement is used to replace first identification image in the second area with second image.
Preferably, the electronic equipment also includes the 6th operating unit and demarcation unit;
6th operating unit is used to show described first image on the display unit;
The demarcation unit is used to demarcate the second area in described first image, and institute is shown in the second area State the Part I of the first image.
Preferably, the electronic equipment also includes replacement unit, for being identified in the first area with described second Image replaces first identification image.
Image acquiring method in the embodiment of the present invention can apply to the electronic equipment with display unit, methods described It can include:The first identification image is shown in the display unit, wherein, first identification image is corresponding with the first object, First identification image is used to identify first object;First identification image takes first on the display unit Region;The first area is first size;Obtain the more new command for first identification image;Refer to according to the renewal Order obtains the first image;When obtaining the first determine instruction, the second image is shown in second area, second image is institute State the Part I of the first image;The second area is the second size, and the first size and the second size are identical;By described in Second image is as the second identification image.
In the embodiment of the present invention, when needing to update first identification image, described first image can be first obtained, it After second image can be obtained according to described first image directly in the second area, the second area is one The region of fixed size, its size are identical with the first area.Using the display methods in the embodiment of the present invention, if finally Required image is the image of prescribed level, i.e., is finally desirable for and the first area size identical image, then is used Family directly the second area can be sized in adjustment it is identical with the size of the first area, and described Directly image is adjusted in second area, the size of the image so obtained is exactly the size of the second area naturally, Namely required size, without manually adjusting size and the location of crop box as in the prior art, described second The size in region is required size, and size is manually adjusted without user, and so, user is without because sanction will be adjusted Cut frame and carry out multi-pass operation, it is multiple without response for electronic equipment, alleviate the burden of electronic equipment.And because The size of the second area is presets, and without manually adjusting, the size of the image finally given is required size, institute Batch processing can be carried out to multiple image by stating electronic equipment, it is clear that reduced the workload of electronic equipment, grasped for user Work is also relatively simple, and operating efficiency is higher.
Brief description of the drawings
Fig. 1 is the broad flow diagram of image acquiring method in the embodiment of the present invention;
Fig. 2A is the schematic diagram of first area and the first identification image in the embodiment of the present invention;
Fig. 2 B are the schematic diagram of the Part II of second area and the first image in the embodiment of the present invention;
Fig. 2 C are the schematic diagram that user carries out edit operation for the first image in the second area in the embodiment of the present invention;
Fig. 2 D are the schematic diagram that user carries out edit operation outside second area for the first image in the embodiment of the present invention;
Fig. 2 E are the schematic diagram of the Part I of second area and the first image in the embodiment of the present invention;
Fig. 2 F are second area and the second image schematic diagram in the embodiment of the present invention;
Fig. 3 is the detailed structure view of electronic equipment in the embodiment of the present invention.
Embodiment
Image acquiring method in the embodiment of the present invention can apply to the electronic equipment with display unit, methods described It can include:The first identification image is shown in the display unit, wherein, first identification image is corresponding with the first object, First identification image is used to identify first object;First identification image takes first on the display unit Region;The first area is first size;Obtain the more new command for first identification image;Refer to according to the renewal Order obtains the first image;When obtaining the first determine instruction, the second image is shown in second area, second image is institute State the Part I of the first image;The second area is the second size, and the first size and the second size are identical;By described in Second image is as the second identification image.
In the embodiment of the present invention, when needing to update first identification image, described first image can be first obtained, it After second image can be obtained according to described first image directly in the second area, the second area is one The region of fixed size, its size are identical with the first area.Using the display methods in the embodiment of the present invention, if finally Required image is the image of prescribed level, i.e., is finally desirable for and the first area size identical image, then is used Family directly the second area can be sized in adjustment it is identical with the size of the first area, and described Directly image is adjusted in second area, the size of the image so obtained is exactly the size of the second area naturally, Namely required size, without manually adjusting size and the location of crop box as in the prior art, described second The size in region is required size, and size is manually adjusted without user, and so, user is without because sanction will be adjusted Cut frame and carry out multi-pass operation, it is multiple without response for electronic equipment, alleviate the burden of electronic equipment.And because The size of the second area is presets, and without manually adjusting, the size of the image finally given is required size, institute Batch processing can be carried out to multiple image by stating electronic equipment, it is clear that reduced the workload of electronic equipment, grasped for user Work is also relatively simple, and operating efficiency is higher.
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
In the embodiment of the present invention, the electronic equipment can be PC (personal computer), notebook, PAD (tablet personal computer), The different electronic equipment of mobile phone etc., as long as the electronic equipment has display unit.To described in the embodiment of the present invention The size of the display unit of electronic equipment is not also limited, the display unit can with size it is larger can also size compared with Small, i.e., described electronic equipment can be the electronic equipment for having large scale display unit, or the electronic equipment can also be Electronic equipment with small size display unit.
In addition, the terms "and/or", only a kind of incidence relation for describing affiliated partner, represents there may be Three kinds of relations, for example, A and/or B, can be represented:Individualism A, while A and B be present, these three situations of individualism B.Separately Outside, character "/" herein, it is a kind of relation of "or" to typically represent forward-backward correlation object.
The preferred embodiment of the present invention is described in detail below in conjunction with the accompanying drawings.
Embodiment one
Fig. 1 is referred to, the embodiment of the present invention provides a kind of image acquiring method, and methods described can apply to have display The electronic equipment of unit, the main flow of methods described are as follows:
Step 101:The first identification image is shown in the display unit, wherein, first identification image and first pair As corresponding, first identification image is used to identify first object;First identification image is on the display unit Take first area;The first area is first size.
In the embodiment of the present invention, it can determine that an area size is institute in the viewing area of the display unit first State the first area of first size.
In the embodiment of the present invention, position of the first area in the viewing area can be by the electronic equipment certainly Dynamic determination, or position of the first area in the viewing area can be set by user.
For example, if user institute is it is seen that a certain social class website, then the first area can be used to show The region of contact head image, at this moment the position of the first area determined by the electronic equipment, or in some nets In standing, the position of the first area can also be changed by user by the mode such as mobile.
In the embodiment of the present invention, the first size of the first area can be automatically determined by the electronic equipment, Or the first size of the first area can be set by user.
For example, if user institute is it is seen that a certain social class website, then the first area can be used to show The region of contact head image, at this moment the first size of the first area determined by the electronic equipment, or In some websites, the first size of the first area can also voluntarily be changed by user.However in general, it is described The situation that the size of first area is voluntarily determined by the electronic equipment is more.
That is, generally, the size and size of the first area all fix.
If specifically, the first size of the first area is automatically determined by the electronic equipment, then described First size can be set at random by the electronic equipment, or at least one chi can also be stored with the electronic equipment Very little, the electronic equipment can select a size as the first size from least one size of storage.
Wherein, if the electronic equipment selects a size as described from least one size of storage One size, then the electronic equipment arbitrarily can select a size as first chi from least one size It is very little, or the electronic equipment can also select a certain size as first chi from least one size It is very little.
If specifically, the first size of the first area is set by user, then user can be to institute State electronic equipment to be operated, such as a value can be inputted to the electronic equipment and is used as the first size, so as to described Electronic equipment can determine that the area size of the first area is the first size of user's input.Or the electronics At least one size can also be stored with equipment, then the electronic equipment can be shown described in its storage at least to user One size, user can operate to the electronic equipment, so as to indicate the electronic equipment from described in storage at least The size that user specifies is selected in one size as the first size.
In the embodiment of the present invention, first identification image can be corresponding with first object, the first mark figure As can be used for identifying first object.
For example, first object can be a specific contact person, such as the artificial A of the contact, then described first Identification image can be the image relevant with A, and A can be represented with first identification image.Such as first identification image It can be A photo.
For example, first object can be an application, such as the application is B, such as first object can be Word applications, the different application of game application etc., then first identification image can be to this using the related figures of B Mark, can be represented to apply B with the icon.For example, if first object is applied for word, then first identification image Can be icon corresponding to word applications, user can open word applications by clicking on the icon, for example, if described first Object is game application, then first identification image can be with icon corresponding to game application, and user is by clicking on the icon The game application, etc. can be opened.
Step 102:Obtain the more new command for first identification image.
After first identification image is shown on the display unit, user may wish to first identification image Operated, such as may wish to adjust first identification image, or want directly to be replaced described the with new image One identification image.
At this moment, user can be updated operation for first identification image, such as user can directly use finger Or other operating bodies carry out the renewal to first identification image and operated, or user can also be by keyboard, mouse etc. External input device carries out the renewal to first identification image and operated, or user can also use gesture control, voice The modes such as control operate to carry out the renewal.
After user carries out the renewal operation, the electronic equipment can obtain the renewal operation, and can basis More new command described in the renewal operation generation.
Step 103:More new command obtains the first image according to described in.
The electronic equipment can obtain first figure after more new command described in generation according to the more new command Picture.
Wherein, there are several different situations.
Optionally, if user only wishes to be adjusted first identification image, then the electronic equipment according to According to the more new command obtain described first image can or first identification image.
Optionally, if user wants to replace first identification image, then the renewal operation that user is carried out It can be the operation for obtaining a new image, then first figure that the electronic equipment more new command according to described in obtains Seem the images different from first identification image.
Specifically, if the renewal operation that user is carried out is to obtain the operation of a new image, then Yong Huke To be to re-shoot an image as described first image, or the image that user can also store from the electronic equipment One image of middle selection is as described first image.
In the embodiment of the present invention, after described first image is obtained, described first can be shown on the display unit Image.The embodiment of the present invention mainly introduces two kinds of different situations.
First, after described first image is obtained, first figure can be shown in the second area of the display unit The Part II of picture, now the second area and the first area can be the same areas, i.e. obtain first figure As after, the Part II of described first image can be directly shown in the first area.
In embodiments of the present invention, the Part II of described first image can refer to the part figure in described first image Picture, or the Part II of described first image may also mean that the whole of described first image, i.e. the of described first image Two parts can be less than described first image, or the Part II of described first image can also be equal to described first image. It can specifically be determined according to actual conditions, if for example, the size of described first image is more than the first area, then The Part II of the described first image shown in the first area can be the parts of images in described first image, such as The size of fruit described first image is not more than the first area, then the described first image shown in the first area Part II can be described first image whole.
So, if described first image is identical with first identification image, relayed equivalent in the first area The Part II of continuous display described first image, if described first image is different from first identification image, equivalent to First identification image substituted for the Part II of described first image in the first area.
After showing the Part II of described first image in the first area, user may be needed to first figure The Part II of picture carries out some edit operations, for example, the edit operation can be by described first image move and/ Or the operation of scaling, or the edit operation can also be other the possible editor behaviour carried out for described first image Make.
In the embodiment of the present invention, when carrying out the edit operation, can by centered on mouse or gesture drop point to described First image quickly scale and position, then, if described first image is large-size images, this operation allows for A pocket is quickly accurately positioned in large-size images becomes very convenient, more reduces scaling and the interaction cut Number, reduce the number that the electronic equipment needs respond, alleviate the burden of the electronic equipment.
Specifically, the method in the embodiment of the present invention (Hypertext Markup Language, can be surpassed by HTML5 Text mark up language) realize.
So, make before the Part II of described first image is shown in the second area, be first to described the One image adds IMG (a kind of label in a HTML5) label, because an image is right after an IMG label is enclosed It is exactly visible for user, therefore described first image is added into the IMG labels, it is ensured that described first image It is visible that Part II, which is shown in after the second area for user, so as to ensure that user can be adjusted to it.
In the embodiment of the present invention, if user has carried out the edit operation for the Part II of described first image, I.e. if user has carried out the edit operation for described first image, then the electronic equipment can obtain the editor Operation, the electronic equipment can respond, in secondth area after the edit operation is obtained to the edit operation The Part I of described first image is shown in domain.
Specifically, user can carry out the edit operation directly in the second area for described first image, If for example, the display unit is touch sensitive display unit, then user can be directly with finger or other operating bodies described The edit operation is carried out for described first image in second area, or, no matter whether the display unit is to touch to show Show unit, user can be directed to first figure in the second area by external input devices such as mouse, keyboards The Part II of picture carries out the edit operation.Wherein, when the edit operation is zoom operations, according to external input device (for example, mouse) or gesture are quickly scaled and positioned centered on the point in the second area, and this causes in large scale figure A pocket is very convenient as being quickly accurately positioned in (in described first image), more reduces scaling and cuts Interaction times.
Specifically, user can carry out the edit operation outside the second area for described first image.For example, If the display unit is touch sensitive display unit, then user can be directly with finger or other operating bodies in secondth area Overseas to carry out the edit operation for described first image, in this case, such as user is probably in the second area The edit operation such as scaling, mobile is carried out to described first image outside, accordingly the described first image in the second area Part II also correspond to receive the edit operation, or, no matter whether the display unit is that to touch display single Member, user can be entered by external input devices such as mouse, keyboards by the described first image outside the second area The edit operation go to realize that the editor of the Part II progress to the described first image in the second area grasps Make.In addition, it is necessary to explanation, when the edit operation is zoom operations, according to external input device (for example, mouse) or Person's gesture in the second area point (for example, can with the starting point of zoom operations, remaining point is located at the second area In addition, or or zoom operations end point, remaining point be located at the second area beyond, etc.) centered on enter The quick scaling of row and positioning, this quickly to be accurately positioned a pocket very in large-size images (described first image) It is convenient, more reduce scaling and the interaction times cut.Certainly, when the edit operation is zoom operations and the contracting Put operation caused by point it is uncorrelated to the point in second area when, can be the zoom operations by the central point of second area Central point to being quickly accurately positioned on large-sized image (described first image).
Specifically, user can also be by modes such as gesture control, Voice commands come to described in described first image progress Edit operation.
Wherein, the Part I of described first image can be the parts of images in described first image, or described The Part I of one image may also mean that the whole of described first image.That is, the Part I of described first image can be with small It can also be equal to described first image in the Part I of described first image, or described first image.
For example, showing the Part II of described first image in the second area, user is directed to described first image The edit operation has been carried out, the electronic equipment can respond after obtaining the edit operation to the edit operation, Edit instruction is generated, by performing the edit instruction, the electronic equipment can show described the in the second area The Part I of one image, user may think that the Part I of described first image is the image effect required for oneself, that User can carry out the first determination operation, and the electronic equipment can obtain described first and determine operation.
In the embodiment of the present invention, the Part I of described first image is the subset of described first image, first figure The Part II of picture is also the subset of described first image.The Part I of described first image and the second of described first image Part can be the same or different.
Determine to operate for example, user can carry out described first using finger or other operating bodies, or user can also Described first is carried out by external input devices such as mouse, keyboards and determines that operation, or user can also use gesture control, language The modes such as sound control determine operation to carry out described first.
2nd, after described first image is obtained, described first image can be shown in the display unit, it is now described Second area and the first area can be different zones.For example, after described first image is obtained, a volume can be opened Editing interface, described first image is shown in the editing interface.Wherein, the editing interface can be full screen display, or May not be full screen display, the editing interface can cover in the first area, or the editing interface with it is described First area can be simultaneously displayed on the display unit.
There can be a regional frame in the editing interface, the size of the regional frame can be with the first area Size is identical, and the size of the regional frame is fixed.That is, the regional frame can be described as the second area.
If specifically, position of the second area in the editing interface is automatically determined by the electronic equipment, Specifically electronic equipment can be selected arbitrarily so described second area described in which position in the editing interface, i.e., described electricity Sub- equipment can determine any one position in the editing interface as the position where the second area.Or the electricity Sub- equipment can arbitrarily select a position as the position where the second area in the white space of the editing interface Put.
If specifically, position of the second area in the editing interface is set by user, then user The electronic equipment can be operated, so as to indicate that the electronic equipment includes the second area needed for user Position.
When in initially display described first image on the editing interface, the second area can be located at the editor Optional position on interface.So, user can complete the adjustment to described first image according to the second area.Can be with There is different adjustment modes.
1st, position of the second area on the editing interface be fixed, i.e., described second area can with motionless, User can complete to adjust by mobile and/or scaling described first image.
It is, after showing described first image in the editing interface, user may be needed to described first image Carry out some edit operations.Such as the edit operation can be by the operation that described first image moves and/or scales, Or the edit operation can also be other the possible edit operations carried out for described first image.User can pass through Mobile and/or scaling described first image, makes the different piece that described first image can be shown in the second area, so as to Therefrom obtain the Part I for the described first image that user wants.
Specifically, the method in the embodiment of the present invention (Hypertext Markup Language, can be surpassed by HTML5 Text mark up language) realize.
So, the second area is set in the editing interface, that is, sets at least one DIV (in HTML5 A kind of label), for example, can at least set two DIV.So that the second area is rectangle as an example, then two DIV, therein First DIV can be used to indicate that the housing of the second area, and the 2nd DIV therein can be used for described first image Ensure that at least parts of images is located in the second area in described first image in adjustment, and be unlikely to described first image By all out of the second area.
Wherein it is possible to it is that the electronic equipment is set automatically according to the size of the first area in the editing interface The second area.
Meanwhile make before described first image is shown in the editing interface, to be added first to described first image One IMG (a kind of label in HTML5) label because an image after an IMG label is enclosed for a user It is exactly visible, therefore described first image is added into the IMG labels, it is ensured that described first image is shown in the volume For user it is visible after editing interface, so as to ensure that user can be adjusted to it.
In embodiments of the present invention, the Part I of described first image can refer to the part figure in described first image Picture, or the Part I of described first image may also mean that the whole of described first image, i.e. the of described first image A part can be less than described first image, or the Part I of described first image can also be equal to described first image.
In the embodiment of the present invention, if user has carried out the edit operation for described first image, then the electricity Sub- equipment can obtain the edit operation, and the electronic equipment can be grasped after the edit operation is obtained to the editor Responded, the Part I of described first image is shown in the second area.
Specifically, user can carry out the edit operation directly in the second area for described first image, If for example, the display unit is touch sensitive display unit, then user can be directly with finger or other operating bodies described The edit operation is carried out for described first image in second area, or, no matter whether the display unit is to touch to show Show unit, user can be directed to first figure in the second area by external input devices such as mouse, keyboards The Part II of picture carries out the edit operation.
Specifically, user can carry out the edit operation outside the second area for described first image.For example, If the display unit is touch sensitive display unit, then user can be directly with finger or other operating bodies in secondth area Overseas to carry out the edit operation for described first image, in this case, such as user is probably in the second area The edit operation such as scaling, mobile is carried out to described first image outside, accordingly the described first image in the second area Also correspond to receive the edit operation, or, no matter whether the display unit is touch sensitive display unit, and user may be used To come to carry out the editor behaviour by the described first image outside the second area by external input devices such as mouse, keyboards Make to realize the edit operation carried out to the described first image in the second area.
Specifically, user can also be by modes such as gesture control, Voice commands come to described in described first image progress Edit operation.
For example, showing described first image in the editing interface, user has carried out described for described first image Edit operation, the electronic equipment can respond after obtaining the edit operation to the edit operation, and generation editor refers to Order, by performing the edit instruction, the electronic equipment can show the of described first image in the second area A part, user may think that the Part I of described first image is the image effect required for oneself, then user can be with Carry out first and determine operation, the electronic equipment can obtain described first and determine operation.
Determine to operate for example, user can carry out described first using finger or other operating bodies, or user can also Described first is carried out by external input devices such as mouse, keyboards and determines that operation, or user can also use gesture control, language The modes such as sound control determine operation to carry out described first.
2nd, position of the second area on the editing interface is unfixed that is, described second area can move Dynamic, user can be by moving and/or scaling the second area to complete the adjustment to described first image.
It is, after showing described first image in the editing interface, user may be needed to described first image Carry out some edit operations.Such as the edit operation can be the operation for moving the second area.User can be with By the movement second area, make the different piece that described first image can be shown in the second area, so as to therefrom Obtain the Part I for the described first image that user wants.
I.e. user by the movement second area can make that described first image can be shown in the second area Different content, so as to therefrom obtain the Part I for the described first image that user wants.
In embodiments of the present invention, the Part I of described first image can refer to the part figure in described first image Picture, or the Part I of described first image may also mean that the whole of described first image, i.e. the of described first image A part can be less than described first image, or the Part I of described first image can also be equal to described first image.
Specifically, the method in the embodiment of the present invention (Hypertext Markup Language, can be surpassed by HTML5 Text mark up language) realize.
So, the second area is set in the editing interface, that is, sets at least one DIV (in HTML5 A kind of label), for example, can at least set two DIV.So that the second area is rectangle as an example, then two DIV, therein First DIV can be used to indicate that the housing of the second area, and the 2nd DIV therein can be used for described first image Ensure that at least parts of images is located in the second area in described first image in adjustment, and be unlikely to described first image By all out of the second area.
Wherein it is possible to it is that the electronic equipment is set automatically according to the size of the first area in the editing interface The second area.
Meanwhile make before described first image is shown in the editing interface, to be added first to described first image One IMG (a kind of label in HTML5) label because an image after an IMG label is enclosed for a user It is exactly visible, therefore described first image is added into the IMG labels, it is ensured that described first image is shown in the volume For user it is visible after editing interface, so as to ensure that user can be adjusted to it.
In embodiments of the present invention, the Part I of described first image can refer to the part figure in described first image Picture, or the Part I of described first image may also mean that the whole of described first image, i.e. the of described first image A part can be less than described first image, or the Part I of described first image can also be equal to described first image.
In the embodiment of the present invention, if user has carried out the edit operation for described first image, then the electricity Sub- equipment can obtain the edit operation, and the electronic equipment can be grasped after the edit operation is obtained to the editor Responded, the Part I of described first image is shown in the second area.
For example, showing described first image in the editing interface, user has carried out described for described first image Edit operation, the electronic equipment can respond after obtaining the edit operation to the edit operation, and generation editor refers to Order, by performing the edit instruction, the electronic equipment can move the second area in the editing interface, so as to The Part I of described first image is shown in the second area, user may feel, first of described first image Point it is the image effect required for oneself, then user can carry out the first determination operation, and the electronic equipment can obtain institute State the first determination operation.
Determine to operate for example, user can carry out described first using finger or other operating bodies, or user can also Described first is carried out by external input devices such as mouse, keyboards and determines that operation, or user can also use gesture control, language The modes such as sound control determine operation to carry out described first.
Step 104:When obtaining the first determination operation, the second image is shown in second area, second image is The Part I of described first image;The second area is the second size, and the first size and the second size are identical.
The electronic equipment can determine that operation is carried out after obtain user described first determines operation to described first Response, the first determine instruction is generated, by performing first determine instruction, described second can be shown in the second area Image, second image are the Part I of described first image, that is, user adjusts the part determined, so can Allow user's " What You See Is What You Get ".The size of the second area is second size, and second size can be with described One size is identical.
If the first, the second area and the first area are the same area.
The electronic equipment can determine that operation is carried out after obtain user described first determines operation to described first Response, the first determine instruction is generated, by performing first determine instruction, generated according to the Part I of described first image Second image, the content of second image are exactly the content of the Part I of described first image.Generating described the After two images, the electronic equipment can replace first identification image in the second area with second image.
I.e., for a user, its described first image being adjusted to needed for oneself Part I, carry out it is first true During fixed operation and acquisition second image, its image seen in the second area does not appear to change, interior Hold the content for the Part I for being all described first image.But for the electronic equipment, described is adjusted in user During the Part I of one image, described first image is shown in the electronic equipment in the second area, when user enters , it is necessary to obtain second image according to described first image after row the first determination operation, and in the second area Described first image is replaced with second image, that is, shows second image, the display object of the electronic equipment occurs Change.
In embodiments of the present invention, the second area and the first area are the same area, because having used before Described first image substituted for first identification image, therefore, after described first image is replaced with second image, institute Electronic equipment is stated equivalent to making second image substituted for first identification image in the first area.
Wherein, in the embodiment of the present invention, after second image is obtained, can be added first for second image IMG labels so that second image is visible to user, makes second image replace institute in the first area again afterwards State the first identification image.
After making second image replace first identification image, first identification image can be deposited Storage, or first identification image can also be abandoned, the present invention is not limited.
It is very short the time required to whole process, therefore for a user, it is in described first be adjusted to needed for oneself During the Part I of image, progress first determine operation and obtain second image, its image seen seems do not have Change, content is all the content of the Part I of described first image.But for the electronic equipment, adjusted in user To described first image Part I when, described first image is shown in the electronic equipment, when user carries out described the After one determines operation, the electronic equipment needs to obtain second image according to described first image, and in firstth area Second image is made to replace first identification image in domain, described first image is no longer shown, that is to say, that the electronics The display object of equipment is changed.
In the embodiment of the present invention, the process of second image different from described first image is obtained, can be specifically to pass through Canvas (a kind of WEB (internet) drawing element) is carried out, i.e. after user, which carries out described first, determines operation, the electricity Sub- equipment can call canvas, and described first image is handled by canvas, and processing foundation is exactly to make described first Content in image is only left the content of the Part I of described first image, i.e., will remove described first in described first image The Part I of image is dismissed, so as to obtain second image.
Meanwhile after user carries out the first determination operation, actually also just finish the volume to described first image The process of collecting.
If the 2nd, the second area is different regions from the first area.
1st, position of the second area on the editing interface be fixed, i.e., described second area can with motionless, User can complete to adjust by mobile and/or scaling described first image.
The electronic equipment can determine that operation is carried out after obtain user described first determines operation to described first Response, the first determine instruction is generated, by performing first determine instruction, generated according to the Part I of described first image Second image, the content of second image are exactly the content of the Part I of described first image.Generating described the After two images, the electronic equipment can replace described first image in the second area with second image, and can To make second image replace first identification image in the first area.
I.e., for a user, its described first image being adjusted to needed for oneself Part I, carry out it is first true During fixed operation and acquisition second image, its image seen in the second area does not appear to change, interior Hold the content for the Part I for being all described first image.But for the electronic equipment, described is adjusted in user During the Part I of one image, described first image is shown in the electronic equipment in the second area, when user enters , it is necessary to obtain second image according to described first image after row the first determination operation, and in the second area Described first image is replaced with second image, that is, shows second image, the display object of the electronic equipment occurs Change.
In embodiments of the present invention, the second area and the first area are different zones, therefore, with described the After two images replace described first image, user can also carry out one second and determine operation, and the electronic equipment is obtaining institute After stating the second determination operation, the described second determination operation can be responded, the second determine instruction be generated, by described in execution Second determine instruction, the electronic equipment can make second image replace the first mark figure in the first area Picture.
Or after described first image is replaced with second image, the electronic equipment can automatically generate described Second determine instruction, by performing second determine instruction, described in the electronic equipment can make in the first area Second image replaces first identification image.
Wherein, in the embodiment of the present invention, after second image is obtained, can be added first for second image IMG labels so that second image is visible to user, makes second image replace institute in the second area again afterwards State the first image.
In the embodiment of the present invention, after second image is obtained, second image can be made first described second Described first image is replaced in region, makes second image replace the first mark figure in the first area again afterwards Picture;Or after second image is obtained, described the can be replaced in the second area with season second image One image, and make second image replace first identification image in the first area.
After making second image replace first identification image, first identification image can be deposited Storage, or first identification image can also be abandoned, the present invention is not limited.
In the embodiment of the present invention, the process of second image different from described first image is obtained, can be specifically to pass through Canvas (a kind of WEB (internet) drawing element) is carried out, i.e. after user, which carries out described first, determines operation, the electricity Sub- equipment can call canvas, and described first image is handled by canvas, and processing foundation is exactly to make described first Content in image is only left the content of the Part I of described first image, i.e., will remove described first in described first image The Part I of image is dismissed, so as to obtain second image.
Meanwhile after user carries out the first determination operation, actually also just finish the volume to described first image The process of collecting.
2nd, position of the second area on the editing interface is unfixed that is, described second area can move Dynamic, user can be by moving and/or scaling the second area to complete to adjust.
The electronic equipment can determine that operation is carried out after obtain user described first determines operation to described first Response, the first determine instruction is generated, by performing first determine instruction, generated according to the Part I of described first image Second image, the content of second image are exactly the content of the Part I of described first image.Generating described the After two images, the electronic equipment can make second image replace described first image in the second area, and can To make second image replace first identification image in the first area.
I.e., for a user, its described first image being adjusted to needed for oneself Part I, carry out it is first true During fixed operation and acquisition second image, its image seen in the second area does not appear to change, interior Hold the content for the Part I for being all described first image.But for the electronic equipment, described is adjusted in user During the Part I of one image, described first image is shown in the electronic equipment in the second area, when user enters , it is necessary to obtain second image according to described first image after row the first determination operation, and in the second area Described first image is replaced with second image, that is, shows second image, the display object of the electronic equipment occurs Change.
In embodiments of the present invention, the second area and the first area are different zones, therefore, with described the After two images replace described first image, user can also carry out one second and determine operation, and the electronic equipment is obtaining institute After stating the second determination operation, the described second determination operation can be responded, the second determine instruction be generated, by described in execution Second determine instruction, the electronic equipment can make second image replace the first mark figure in the first area Picture.
Or after described first image is replaced with second image, the electronic equipment can automatically generate described Second determine instruction, by performing second determine instruction, described in the electronic equipment can make in the first area Second image replaces first identification image.
Wherein, in the embodiment of the present invention, after second image is obtained, can be added first for second image IMG labels so that second image is visible to user, makes second image replace institute in the second area again afterwards State the first image.
In the embodiment of the present invention, after second image is obtained, second image can be made first described second Described first image is replaced in region, makes second image replace the first mark figure in the first area again afterwards Picture;Or after second image is obtained, described the can be replaced in the second area with season second image One image, and make second image replace first identification image in the first area.
After making second image replace first identification image, first identification image can be deposited Storage, or first identification image can also be abandoned, the present invention is not limited.
In the embodiment of the present invention, the process of second image different from described first image is obtained, can be specifically to pass through Canvas (a kind of WEB (internet) drawing element) is carried out, i.e. after user, which carries out described first, determines operation, the electricity Sub- equipment can call canvas, and described first image is handled by canvas, and processing foundation is exactly to make described first Content in image is only left the content of the Part I of described first image, i.e., will remove described first in described first image The Part I of image is dismissed, so as to obtain second image.
Meanwhile after user carries out the first determination operation, actually also just finish the volume to described first image The process of collecting.
Step 105:Using second image as the second identification image.
The electronic equipment can make second image after second image is obtained according to described first image For second identification image, second identification image can be used for identifying first object.
Preferably, in another embodiment of the present invention, the electronic equipment is after second identification image is obtained, Ke Yi First identification image is replaced with second identification image in the first area.Because of the size of second identification image It is identical with the second area, then the size of second identification image is also just identical with the first area, therefore, described Electronic equipment directly can replace first identification image in the first area with second identification image, and described the Two identification images can be just shown in the first area.
If the size of required image is fixed dimension, then, can be direct by the way of in the embodiment of the present invention First the size in region is fixed, follow-up Image Adjusting can be adjusted in the region of the fixation, and user need not The size of image is adjusted manually, obtained picture size more standard.Also, if required picture is more, it is necessary at batch Reason, and the size of required picture is all consistent, then the electronics can be significantly reduced using the method in the embodiment of the present invention The burden of equipment, the operating efficiency of the electronic equipment is lifted, is also brought great advantage to the user.
The image acquiring method in the present invention is introduced below by way of several specific embodiments, the following examples are mainly situated between Several possible application scenarios for the methods described that continued.It should be noted that the embodiment in the present invention is served only for explaining this hair It is bright, and cannot be used for the limitation present invention.Every embodiment for meeting inventive concept is within protection scope of the present invention, originally Art personnel know naturally should be how according to thought progress modification of the invention.
Embodiment two
The electronic equipment is PC, and the electronic equipment has display unit.
In the embodiment of the present invention, user A wants to adjust the contact head image of oneself in the A of website.For the A of website, The size of its contact head image is fixed, such as its size is the first size.And the page A in website A The position in the middle region for showing its contact head image and size are also fixed, and the region is the first area, and described the The size in one region is the first size.
The first area is shown in page A, the first identification image is shown in the first area, such as Fig. 2A institutes Show, the B expressions first area in A the representation pages A, Fig. 2A in Fig. 2A, the image in B is the first mark figure Picture.That is user A former contact head image.User A is properly termed as the first object, then first identification image be with it is described First object is corresponding and is used for the image for identifying first object.
After first identification image is shown on the display unit, user may wish to first identification image Operated, such as may wish to adjust first identification image, or want directly to be replaced described the with new image One identification image.
At this moment, user can be updated operation for first identification image.In the embodiment of the present invention, the electronics Equipment can have shooting unit, and user obtains a new image by the shooting unit, that is, user is carried out The renewal operation.
The electronic equipment can obtain the renewal operation, and can generate more new command according to the renewal operation, The image that user is obtained by the shooting unit can be obtained by more new command, the electronic equipment described in execution, the figure As being properly termed as the first image.
After described first image is obtained, described first image can be shown in the second area of the display unit Part II, now the second area and the first area can be the same areas, i.e. obtain described first image Afterwards, the Part II of described first image can be directly shown in the first area.In the embodiment of the present invention, described first The Part II of image can be less than described first image, i.e. what is shown in the first area can be described first The parts of images of image, as shown in Figure 2 B, B in A representation pages A, Fig. 2 B in Fig. 2 B represent the second area, in B Image is the Part II of described first image.It can be seen that some image is not at institute in described first image State in first area.And can see, the second area and the first area are the same area.
The image being not in the embodiment of the present invention, in described first image in the first area can not also show Show, you can only to show the part being located in described first image in the first area, but in Fig. 2 B come by taking display as an example Explanation.
It is due to that the size of described first image is more than the size of the first area in the embodiment of the present invention, therefore can be with The parts of images of described first image is only shown in the first area.But in other embodiments, even if described first The size of image and the size of the first area differ, can also be by adjusting the size of described first image, described in order First image is just shown in the first area.
After showing the Part II of described first image in the first area, user may be needed to first figure The Part II of picture carries out some edit operations, for example, the edit operation can be by described first image move and/ Or the operation of scaling, or the edit operation can also be other the possible editor behaviour carried out for described first image Make.
In the embodiment of the present invention, if user has carried out the edit operation for the Part II of described first image, I.e. if user has carried out the edit operation for described first image, then the electronic equipment can obtain the editor Operation, the electronic equipment can respond, in secondth area after the edit operation is obtained to the edit operation The Part I of described first image is shown in domain.
In the embodiment of the present invention, user can be directly in the second area for described in described first image progress Edit operation, for example, the display unit is touch sensitive display unit, then user is in institute directly with finger or other operating bodies State the edit operation carried out in second area for described first image.As shown in Figure 2 C, the A representation page A in Fig. 2 C, B in Fig. 2 C represents the second area.In Fig. 2 C, user with a finger in the second area for described the One image moves operation, and the arrow in Fig. 2 C represents the moving direction of user's finger.
Or in the embodiment of the present invention, what user can also be carried out outside the second area for described first image The edit operation, for example, the display unit is touch sensitive display unit, then user is directly to use finger or other operating bodies The edit operation carried out in the second area for described first image.As shown in Figure 2 D, the A in Fig. 2 D represents page B in face A, Fig. 2 D represents the second area.In Fig. 2 D, user is directed to institute with a finger outside the second area State the first image and move operation, the arrow in Fig. 2 D represents the moving direction of user's finger.
In the embodiment of the present invention, the Part II of described first image is shown in the second area, user is directed to institute State the first image and carried out the edit operation, the electronic equipment can be to the edit operation after obtaining the edit operation Responded, generate edit instruction, by performing the edit instruction, the electronic equipment can show in the second area Show the Part I of described first image, as shown in Figure 2 E, the B in A representation pages A, Fig. 2 E in Fig. 2 E represents described second Region, what is shown in the second area in Fig. 2 E is exactly the Part I of described first image.User may feel, described The Part I of first image is the image effect required for oneself, then user can carry out the first determination operation, the electricity Sub- equipment can obtain described first and determine operation.
Determine to operate for example, user can carry out described first using finger or other operating bodies, or user can also Described first is carried out by external input devices such as mouse, keyboards and determines that operation, or user can also use gesture control, language The modes such as sound control determine operation to carry out described first.
The electronic equipment can determine that operation is carried out after obtain user described first determines operation to described first Response, the first determine instruction is generated, by performing first determine instruction, generated according to the Part I of described first image Second image, the content of second image are exactly the content of the Part I of described first image.Generating described the After two images, the electronic equipment can replace described first image in the second area with second image, such as scheme Shown in 2F, the B in A representation pages A, Fig. 2 F in Fig. 2 F represents the second area, is shown described in Fig. 2 F in second area Be exactly second image.As can be seen that the content of second image in Fig. 2 F is exactly Fig. 2 E from Fig. 2 F and Fig. 2 E Described in the first image Part I content.
In embodiments of the present invention, the second area and the first area are the same area, because having used before Described first image substituted for first identification image, therefore, after described first image is replaced with second image, institute Electronic equipment is stated equivalent to making second image substituted for first identification image in the first area.
, can be by described first after making second image replace first identification image in the embodiment of the present invention Identification image is stored, or can also abandon first identification image, and the present invention is not limited.
Embodiment three
The electronic equipment is PAD, and the electronic equipment has display unit.
In the embodiment of the present invention, user A wants to adjust the contact head image of oneself in the A of website.For the A of website, The size of its contact head image is fixed, such as its size is the first size.And the page A in website A The position in the middle region for showing its contact head image and size are also fixed, and the region is the first area, and described the The size in one region is the first size.
The first area is shown in page A, the first identification image is shown in the first area, i.e. user A's Former contact head image.User A is properly termed as the first object, then first identification image be and first object pair The image for identifying first object and should be used for.
After first identification image is shown on the display unit, user may wish to first identification image Operated, such as may wish to adjust first identification image, or want directly to be replaced described the with new image One identification image.
At this moment, user can be updated operation for first identification image.In the embodiment of the present invention, the electronics Some images are stored with equipment, user therefrom have selected an image, that is, user has carried out the renewal operation.
The electronic equipment can obtain the renewal operation, and can generate more new command according to the renewal operation, By more new command described in execution, the electronic equipment can obtain the image of user's selection, and the image is properly termed as the first figure Picture.
After described first image is obtained, described first image can be shown in the display unit, now described Two regions and the first area can be different zones.For example, after described first image is obtained, an editor can be opened Interface, described first image is shown in the editing interface.Wherein, the editing interface can be displayed in full screen, Huo Zheye It can not be full screen display, the editing interface can cover in the first area, or the editing interface and described the One region can be simultaneously displayed on the display unit.
There can be a regional frame in the editing interface, the size of the regional frame can be with the first area Size is identical, and the size of the regional frame is fixed.That is, the regional frame can be described as the second area.
In the embodiment of the present invention, position of the second area on the editing interface be it is fixed, i.e., described second Region can be with motionless, and user can complete to adjust by mobile and/or scaling described first image.
After showing described first image in the editing interface, user may need to carry out described first image Edit operation.Such as the edit operation can be by the operation that described first image moves and/or scales, it is or described Edit operation can also be other the possible edit operations carried out for described first image.User can by it is mobile and/ Or scaling described first image, make the different piece that described first image can be shown in the second area, so as to therefrom obtain Obtain the Part I for the described first image that user wants.
Specifically, the method in the embodiment of the present invention (Hypertext Markup Language, can be surpassed by HTML5 Text mark up language) realize.
So, the second area is set in the editing interface, that is, sets at least one DIV (in HTML5 A kind of label), for example, can at least set two DIV.So that the second area is rectangle as an example, then two DIV, therein First DIV can be used to indicate that the housing of the second area, and the 2nd DIV therein can be used for described first image Ensure that at least parts of images is located in the second area in described first image in adjustment, and be unlikely to described first image By all out of the second area.
Wherein it is possible to it is that the electronic equipment is set automatically according to the size of the first area in the editing interface The second area.
Meanwhile make before described first image is shown in the editing interface, to be added first to described first image One IMG (a kind of label in HTML5) label because an image after an IMG label is enclosed for a user It is exactly visible, therefore described first image is added into the IMG labels, it is ensured that described first image is shown in the volume For user it is visible after editing interface, so as to ensure that user can be adjusted to it.
In the embodiment of the present invention, if user has carried out the edit operation for described first image, then the electricity Sub- equipment can obtain the edit operation, and the electronic equipment can be grasped after the edit operation is obtained to the editor Responded, the Part I of described first image is shown in the second area.
In the embodiment of the present invention, user is to carry out the editor behaviour for described first image outside the second area Make, for example, user is come by entering to the described first image outside the second area by mouse this external input device The edit operation go to realize the edit operation carried out to the described first image in the second area.
In the embodiment of the present invention, described first image is shown in the editing interface, user is directed to described first image The edit operation has been carried out, the electronic equipment can respond after obtaining the edit operation to the edit operation, Edit instruction is generated, by performing the edit instruction, the electronic equipment can show described the in the second area The Part I of one image, user may think that the Part I of described first image is the image effect required for oneself, that User can carry out the first determination operation, and the electronic equipment can obtain described first and determine operation.
For example, user is the first determination operation to carry out by mouse.
The electronic equipment can determine that operation is carried out after obtain user described first determines operation to described first Response, the first determine instruction is generated, by performing first determine instruction, generated according to the Part I of described first image Second image, the content of second image are exactly the content of the Part I of described first image.Generating described the After two images, the electronic equipment can replace described first image in the second area with second image, and can To make second image replace first identification image in the first area.
I.e., for a user, its described first image being adjusted to needed for oneself Part I, carry out it is first true During fixed operation and acquisition second image, its image seen in the second area does not appear to change, interior Hold the content for the Part I for being all described first image.But for the electronic equipment, described is adjusted in user During the Part I of one image, described first image is shown in the electronic equipment in the second area, when user enters , it is necessary to obtain second image according to described first image after row the first determination operation, and in the second area Described first image is replaced with second image, that is, shows second image, the display object of the electronic equipment occurs Change.
In embodiments of the present invention, the second area and the first area are different zones, therefore, with described the After two images replace described first image, user can also carry out one second and determine operation, and the electronic equipment is obtaining institute After stating the second determination operation, the described second determination operation can be responded, the second determine instruction be generated, by described in execution Second determine instruction, the electronic equipment can make second image replace the first mark figure in the first area Picture.
Wherein, in the embodiment of the present invention, after second image is obtained, can be added first for second image IMG labels so that second image is visible to user, makes second image replace institute in the second area again afterwards State the first image.
, can be by described first after making second image replace first identification image in the embodiment of the present invention Identification image is stored, or can also abandon first identification image, and the present invention is not limited.
Example IV
The electronic equipment is mobile phone, and the electronic equipment has display unit.
In the embodiment of the present invention, user A wants to adjust the contact head image of oneself in the A of website.For the A of website, The size of its contact head image is fixed, such as its size is the first size.And the page A in website A The position in the middle region for showing its contact head image and size are also fixed, and the region is the first area, and described the The size in one region is the first size.
The first area is shown in page A, the first identification image is shown in the first area, i.e. user A's Former contact head image.User A is properly termed as the first object, then first identification image be and first object pair The image for identifying first object and should be used for.
After first identification image is shown on the display unit, user may wish to first identification image Operated, such as may wish to adjust first identification image, or want directly to be replaced described the with new image One identification image.
At this moment, user can be updated operation for first identification image.In the embodiment of the present invention, the electronics Some images are stored with equipment, user therefrom have selected an image, that is, user has carried out the renewal operation.
The electronic equipment can obtain the renewal operation, and can generate more new command according to the renewal operation, By more new command described in execution, the electronic equipment can obtain the image of user's selection, and the image is properly termed as the first figure Picture.
After described first image is obtained, described first image can be shown in the display unit, now described Two regions and the first area can be different zones.For example, after described first image is obtained, an editor can be opened Interface, described first image is shown in the editing interface.Wherein, the editing interface can be displayed in full screen, Huo Zheye It can not be full screen display, the editing interface can cover in the first area, or the editing interface and described the One region can be simultaneously displayed on the display unit.
There can be a regional frame in the editing interface, the size of the regional frame can be with the first area Size is identical, and the size of the regional frame is fixed.That is, the regional frame can be described as the second area.
In the embodiment of the present invention, position of the second area on the editing interface be it is unfixed, i.e., described Two regions can move, and user can complete to adjust by the movement second area.Now, the edit operation can be The operation of the mobile second area.
It is, after showing described first image in the editing interface, user may be needed to described first image Carry out some edit operations.Such as the edit operation can be the operation for moving the second area.User can be with By the movement second area, make the different piece that described first image can be shown in the second area, so as to therefrom Obtain the Part I for the described first image that user wants.
Specifically, the method in the embodiment of the present invention (Hypertext Markup Language, can be surpassed by HTML5 Text mark up language) realize.
So, the second area is set in the editing interface, that is, sets at least one DIV (in HTML5 A kind of label), for example, can at least set two DIV.So that the second area is rectangle as an example, then two DIV, therein First DIV can be used to indicate that the housing of the second area, and the 2nd DIV therein can be used for described first image Ensure that at least parts of images is located in the second area in described first image in adjustment, and be unlikely to described first image By all out of the second area.
Wherein it is possible to it is that the electronic equipment is set automatically according to the size of the first area in the editing interface The second area.
Meanwhile make before described first image is shown in the editing interface, to be added first to described first image One IMG (a kind of label in HTML5) label because an image after an IMG label is enclosed for a user It is exactly visible, therefore described first image is added into the IMG labels, it is ensured that described first image is shown in the volume For user it is visible after editing interface, so as to ensure that user can be adjusted to it.
In the embodiment of the present invention, if user has carried out the edit operation for described first image, then the electricity Sub- equipment can obtain the edit operation, and the electronic equipment can be grasped after the edit operation is obtained to the editor Responded, the Part I of described first image is shown in the second area.
In the embodiment of the present invention, user is to carry out the edit operation for described first image by gesture control, i.e. User is moved by second area described in gesture control.
In the embodiment of the present invention, described first image is shown in the editing interface, user is directed to described first image The edit operation has been carried out, the electronic equipment can respond after obtaining the edit operation to the edit operation, Edit instruction is generated, by performing the edit instruction, the electronic equipment can show described the in the second area The Part I of one image, user may think that the Part I of described first image is the image effect required for oneself, that User can carry out the first determination operation, and the electronic equipment can obtain described first and determine operation.
For example, user is the first determination operation to carry out by gesture control.
The electronic equipment can determine that operation is carried out after obtain user described first determines operation to described first Response, the first determine instruction is generated, by performing first determine instruction, generated according to the Part I of described first image Second image, the content of second image are exactly the content of the Part I of described first image.Generating described the After two images, the electronic equipment can replace described first image in the second area with second image, and can To make second image replace first identification image in the first area.
I.e., for a user, its described first image being adjusted to needed for oneself Part I, carry out it is first true During fixed operation and acquisition second image, its image seen in the second area does not appear to change, interior Hold the content for the Part I for being all described first image.But for the electronic equipment, described is adjusted in user During the Part I of one image, described first image is shown in the electronic equipment in the second area, when user enters , it is necessary to obtain second image according to described first image after row the first determination operation, and in the second area Described first image is replaced with second image, that is, shows second image, the display object of the electronic equipment occurs Change.
In embodiments of the present invention, the second area and the first area are different zones, therefore, with described the After two images replace described first image, user can also carry out one second and determine operation, and the electronic equipment is obtaining institute After stating the second determination operation, the described second determination operation can be responded, the second determine instruction be generated, by described in execution Second determine instruction, the electronic equipment can make second image replace the first mark figure in the first area Picture.
Wherein, in the embodiment of the present invention, after second image is obtained, can be added first for second image IMG labels so that second image is visible to user, makes second image replace institute in the second area again afterwards State the first image.
, can be by described first after making second image replace first identification image in the embodiment of the present invention Identification image is stored, or can also abandon first identification image, and the present invention is not limited.
Introduce the electronic equipment in the present invention below in conjunction with the accompanying drawings.
Embodiment five
Fig. 3 is referred to, the embodiment of the present invention provides a kind of electronic equipment, and the electronic equipment can have display unit, The electronic equipment can include the first operating unit 301, first acquisition unit 302, second acquisition unit 303, second and operate The operating unit 305 of unit 304 and the 3rd.
Preferably, the electronic equipment can also include the 4th operating unit 306, the 3rd acquiring unit the 307, the 5th operates Unit 308, the 6th operating unit 309, demarcation unit 310 and replacement unit 311.
First operating unit 301 can be used on the display unit showing the first identification image, wherein, described first Identification image is corresponding with the first object, and first identification image is used to identify first object;First identification image First area is taken on the display unit;The first area is first size.
First acquisition unit 302 can be used for obtaining the more new command for first identification image.
Second acquisition unit 303 can be used for the more new command according to described in and obtain the first image.
Second operating unit 304 can be used for, when obtaining the first determination operation, the second image being shown in second area, Second image is the Part I of described first image;The second area is the second size, the first size and Two sizes are identical.
3rd operating unit 305 can be used for using second image as the second identification image.
In one embodiment of the invention, the 3rd operating unit 305 can include first and obtain subelement and replace subelement.
The first acquisition subelement can be used for when obtaining the first determine instruction, according to the first of described first image Part obtains second image.
The replacement subelement can be used for replacing first mark in the second area with second image Image.
In one embodiment of the invention, the first area and the second area can be the same area.
4th operating unit 306 can be used in the second area Part II for showing described first image.
3rd acquiring unit 307 can be used for obtaining the edit operation for described first image.
5th operating unit 308 can be used for responding the edit operation, and institute is shown in the second area State the Part I of the first image.
6th operating unit 309 can be used for showing described first image on the display unit.
Demarcation unit 310 can be used for demarcating the second area in described first image, show in the second area Show the Part I of described first image.
Replacement unit 311 can be used for replacing first mark in the first area with second identification image Image.
Image acquiring method in the embodiment of the present invention can apply to the electronic equipment with display unit, methods described It can include:The first identification image is shown in the display unit, wherein, first identification image is corresponding with the first object, First identification image is used to identify first object;First identification image takes first on the display unit Region;The first area is first size;Obtain the more new command for first identification image;Refer to according to the renewal Order obtains the first image;When obtaining the first determine instruction, the second image is shown in second area, second image is institute State the Part I of the first image;The second area is the second size, and the first size and the second size are identical;By described in Second image is as the second identification image.
In the embodiment of the present invention, when needing to update first identification image, described first image can be first obtained, it After second image can be obtained according to described first image directly in the second area, the second area is one The region of fixed size, its size are identical with the first area.Using the display methods in the embodiment of the present invention, if finally Required image is the image of prescribed level, i.e., is finally desirable for and the first area size identical image, then is used Family directly the second area can be sized in adjustment it is identical with the size of the first area, and described Directly image is adjusted in second area, the size of the image so obtained is exactly the size of the second area naturally, Namely required size, without manually adjusting size and the location of crop box as in the prior art, described second The size in region is required size, and size is manually adjusted without user, and so, user is without because sanction will be adjusted Cut frame and carry out multi-pass operation, it is multiple without response for electronic equipment, alleviate the burden of electronic equipment.And because The size of the second area is presets, and without manually adjusting, the size of the image finally given is required size, institute Batch processing can be carried out to multiple image by stating electronic equipment, it is clear that reduced the workload of electronic equipment, grasped for user Work is also relatively simple, and operating efficiency is higher.
It is apparent to those skilled in the art that for convenience and simplicity of description, only with above-mentioned each function The division progress of module, can be as needed and by above-mentioned function distribution by different function moulds for example, in practical application Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of work(described above Energy.The specific work process of the system, apparatus, and unit of foregoing description, it may be referred to corresponding in preceding method embodiment Journey, it will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the module or The division of unit, only a kind of division of logic function, can there are other dividing mode, such as multiple units when actually realizing Or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, institute Display or the mutual coupling discussed or direct-coupling or communication connection can be by some interfaces, device or unit INDIRECT COUPLING or communication connection, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the application is substantially The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer It is each that equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform the application The all or part of step of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD Etc. it is various can be with the medium of store program codes.
Described above, above example is implemented above only the technical scheme of the application to be described in detail The explanation of example is only intended to help the method and its core concept for understanding the present invention, should not be construed as limiting the invention.This Those skilled in the art the invention discloses technical scope in, the change or replacement that can readily occur in should all be covered Within protection scope of the present invention.

Claims (10)

1. a kind of image acquiring method, methods described is applied in electronic equipment, and the electronic equipment includes display unit, and it is special Sign is that methods described includes:
The first identification image is shown in the display unit, wherein, first identification image is corresponding with the first object, and described One identification image is used to identify first object;First identification image takes first area on the display unit; The first area is first size;
Obtain the more new command for first identification image;
More new command obtains the first image according to described in;
The Part II of described first image is shown in second area;
Obtain the edit operation for described first image;Also, the edit operation is included with external input device or gesture The first image is zoomed in and out and positioned centered on drop point;
The edit operation is responded, the Part I of described first image is shown in the second area;
When obtaining the first determination operation, the second image is shown in the second area, second image is described first The Part I of image;The second area is the second size, and the first size and the second size are identical;
Using second image as the second identification image.
2. the method as described in claim 1, it is characterised in that the first area and the second area are the same area.
3. the method as described in claim 1, it is characterised in that when obtaining the first determine instruction, shown in second area The step of second image, includes:
When obtaining the first determine instruction, second image is obtained according to the Part I of described first image;
First identification image is replaced with second image in the second area.
4. the method as described in claim 1, it is characterised in that after more new command obtains the first image according to described in, and Also include step before the first determine instruction is obtained:
Described first image is shown on the display unit;
The second area is demarcated in described first image, first of described first image is shown in the second area Point.
5. the method as described in claim 1, it is characterised in that after using second image as the second identification image also Including step:First identification image is replaced with second identification image in the first area.
6. a kind of electronic equipment, the electronic equipment has display unit, it is characterised in that the electronic equipment includes:
First operating unit, for showing the first identification image on the display unit, wherein, first identification image with First object is corresponding, and first identification image is used to identify first object;First identification image is in the display First area is taken on unit;The first area is first size;
First acquisition unit, for obtaining the more new command for first identification image;
Second acquisition unit, the first image is obtained for the more new command according to described in;
4th operating unit, for showing the Part II of described first image in second area;
3rd acquiring unit, for obtaining the edit operation for described first image;Also, beyond the edit operation includes The first image is zoomed in and out and positioned centered on portion's input unit or gesture drop point;
5th operating unit, for being responded to the edit operation, described first image is shown in the second area Part I;
Second operating unit, for when obtaining first and determining operation, showing the second image in the second area, described the Two images are the Part I of described first image;The second area is the second size, the first size and the second size It is identical;
3rd operating unit, for using second image as the second identification image.
7. electronic equipment as claimed in claim 6, it is characterised in that the first area and the second area are same area Domain.
8. electronic equipment as claimed in claim 6, it is characterised in that the 3rd operating unit includes first and obtains subelement With replacement subelement;
Described first, which obtains subelement, is used for when obtaining the first determine instruction, is obtained according to the Part I of described first image Second image;
The replacement subelement is used to replace first identification image in the second area with second image.
9. electronic equipment as claimed in claim 6, it is characterised in that the electronic equipment also includes the 6th operating unit and mark Order member;
6th operating unit is used to show described first image on the display unit;
The demarcation unit is used to demarcate the second area in described first image, and described the is shown in the second area The Part I of one image.
10. electronic equipment as claimed in claim 6, it is characterised in that the electronic equipment also includes replacement unit, for First identification image is replaced with second identification image in the first area.
CN201310217928.0A 2013-06-03 2013-06-03 A kind of image acquiring method and electronic equipment Active CN104216626B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310217928.0A CN104216626B (en) 2013-06-03 2013-06-03 A kind of image acquiring method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310217928.0A CN104216626B (en) 2013-06-03 2013-06-03 A kind of image acquiring method and electronic equipment

Publications (2)

Publication Number Publication Date
CN104216626A CN104216626A (en) 2014-12-17
CN104216626B true CN104216626B (en) 2017-12-29

Family

ID=52098181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310217928.0A Active CN104216626B (en) 2013-06-03 2013-06-03 A kind of image acquiring method and electronic equipment

Country Status (1)

Country Link
CN (1) CN104216626B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775342A (en) * 2015-11-25 2017-05-31 中兴通讯股份有限公司 Picture method of cutting out and device based on pressure sensitive technology
CN107463306B (en) * 2017-07-12 2020-02-14 北京潘达互娱科技有限公司 Image display method and device
CN107704292A (en) * 2017-10-18 2018-02-16 维沃移动通信有限公司 Picture method to set up and mobile terminal in a kind of application program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599017A (en) * 2009-07-14 2009-12-09 阿里巴巴集团控股有限公司 A kind of generation mthods, systems and devices of head image of network user
CN102135878A (en) * 2010-01-26 2011-07-27 腾讯科技(深圳)有限公司 Head portrait setting method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4756876B2 (en) * 2004-06-09 2011-08-24 キヤノン株式会社 Image display control device, image display control method, program, and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599017A (en) * 2009-07-14 2009-12-09 阿里巴巴集团控股有限公司 A kind of generation mthods, systems and devices of head image of network user
CN102135878A (en) * 2010-01-26 2011-07-27 腾讯科技(深圳)有限公司 Head portrait setting method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
怎么换QQ头像;百度经验;《百度经验》;20121025;1-2页 *

Also Published As

Publication number Publication date
CN104216626A (en) 2014-12-17

Similar Documents

Publication Publication Date Title
US11790158B1 (en) System and method for using a dynamic webpage editor
US9436673B2 (en) Automatic application of templates to content
CN105874449B (en) For extracting and generating the system and method for showing the image of content
CN106303723A (en) Method for processing video frequency and device
EP4002107A1 (en) Data binding method, apparatus, and device of mini program, and storage medium
CN107111496A (en) customizable blade application
CN106575190A (en) Icon resizing
CN106575290A (en) Presenting dataset of spreadsheet in form based view
CN109643218A (en) The animation of user interface element
CN108279964A (en) The implementation method and device that text control, mask for copy editor render
JP2018536952A (en) Method and apparatus for controlling a smart device and computer storage medium
CN106610826A (en) Making method and device for online scenario application
US20190354261A1 (en) System and method for creating visual representation of data based on generated glyphs
US20230297609A1 (en) Systems and methods for naming objects based on object content
KR20150016565A (en) Application text adjusting method, device, and terminal
CN104216626B (en) A kind of image acquiring method and electronic equipment
CN108924440A (en) Paster display methods, device, terminal and computer readable storage medium
CN110515524B (en) Method, device, terminal and storage medium for inputting information
CN108829486A (en) A kind of background setting method, device, equipment and storage medium
CN102314223B (en) A kind of method and apparatus carrying out adaptive input in non-input scene for user
CN106776634A (en) A kind of method for network access, device and terminal device
CN112328149B (en) Picture format setting method and device and electronic equipment
CN108733281A (en) A kind of image interception method, system and terminal device
DE112020002244T5 (en) Apparatus, method and graphical user interface for creating CGR objects
CN111752428A (en) Icon arrangement method and device, electronic equipment and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant