CN104216626A - Image obtaining method and electronic device - Google Patents

Image obtaining method and electronic device Download PDF

Info

Publication number
CN104216626A
CN104216626A CN201310217928.0A CN201310217928A CN104216626A CN 104216626 A CN104216626 A CN 104216626A CN 201310217928 A CN201310217928 A CN 201310217928A CN 104216626 A CN104216626 A CN 104216626A
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.)
Granted
Application number
CN201310217928.0A
Other languages
Chinese (zh)
Other versions
CN104216626B (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

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses an image obtaining method used for reducing burden of an electronic device. The method includes the steps that a first identification image is displayed on a display unit, wherein the first identification image corresponds to a first object and is used for identifying the first object; the first identification image occupies a first area on the display unit; the first area is of a first size; an updating instruction for the first identification image is obtained; a first image is obtained according to the updating instruction; when a first determined operation is obtained, a second image is displayed in a second area, wherein the second image is a first part of the first image; the second area is of a second size, and the first size is the same with the second size; the second image serves as a second identification image. The invention further discloses the electronic device used for achieving the method.

Description

A kind of image acquiring method and electronic equipment
Technical field
The present invention relates to computing machine and built-in field, particularly a kind of image acquiring method and electronic equipment.
Background technology
Along with the development of science and technology, electronic technology have also been obtained development at full speed, and the kind of electronic product also gets more and more, and people have also enjoyed the various facilities that development in science and technology brings.Present people can pass through various types of electronic equipment, enjoy the comfortable life along with development in science and technology brings.Such as, the electronic equipments such as mobile phone have become an indispensable part in people's life, and people can be strengthened and contacting between other people in mode of making a phone call, send short messages etc. by electronic equipments such as mobile phones.
In prior art, user wants when checking picture to process picture sometimes, such as, may need to carry out cutting to picture.Now general disposal route is: image processing software is supplied to the available mouse frame choosing of user one or pulls to adjust the crop box of its position and length and width in its user interface, this crop box carries out dragging to select desired position by user on picture, and after selected, image processing software carries out cutting.
The shortcoming of the program is: adopt in this way, if final required image is the image of prescribed level, so user when adjusting because be manually adjust the size of crop box and residing position, the size that the bad assurance of possibility is concrete, therefore adjustment may be needed repeatedly, response is needed repeatedly for electronic equipment, bear heavier, and because user's manual operation, the bad adjustment of size of crop box, the image that finally obtains may be caused undesirable, also need to readjust, obviously increase the workload of electronic equipment, also comparatively loaded down with trivial details concerning operation user, operating efficiency is lower.
Summary of the invention
The embodiment of the present invention provides a kind of image acquiring method and electronic equipment, repeatedly bearing heavier technical matters, achieving the technique effect alleviating electronic equipment burden for solving in prior art the electronic equipment when carrying out Image Adjusting because needing response.
A kind of image acquiring method, described method is applied in electronic equipment, and described electronic equipment comprises display unit, and described method comprises:
Show the first identification image at described display unit, wherein, described first identification image is corresponding with the first object, and described first identification image is for identifying described first object; Described first identification image takies first area on described display unit; Described first area is first size;
Obtain the update instruction for described first identification image;
The first image is obtained according to described update instruction;
When acquisition the first determination operation, show the second image in second area, described second image is the Part I of described first image; Described second area is the second size, described first size and second measure-alike;
Using described second image as the second identification image.
Preferably, described first area and described second area are the same area.
Preferably, after obtaining the first image according to described update instruction, and also comprised step before instruction is determined in acquisition first:
The Part II of described first image is shown in described second area;
Obtain the editing operation for described first image;
Described editing operation is responded, in described second area, shows the Part I of described first image.
Preferably, when instruction is determined in acquisition first, the step showing the second image in second area comprises:
When instruction is determined in acquisition first, the Part I according to described first image obtains described second image;
Described first identification image is replaced with described second image in described second area.
Preferably, after obtaining the first image according to described update instruction, and also comprised step before instruction is determined in acquisition first:
Described display unit shows described first image;
Described first image demarcates described second area, in described second area, shows the Part I of described first image.
Preferably, described second image is also comprised step after the second identification image: replace described first identification image with described second identification image in described first area.
A kind of electronic equipment, described electronic equipment has display unit, and described electronic equipment comprises:
First operating unit, for showing the first identification image on described display unit, wherein, described first identification image is corresponding with the first object, and described first identification image is for identifying described first object; Described first identification image takies first area on described display unit; Described first area is first size;
First acquiring unit, for obtaining the update instruction for described first identification image;
Second acquisition unit, for obtaining the first image according to described update instruction;
Second operating unit, for when acquisition the first determination operation, in second area, show the second image, described second image is the Part I of described first image; Described second area is the second size, described first size and second measure-alike;
3rd operating unit, for using described second image as the second identification image.
Preferably, described first area and described second area are the same area.
Preferably, described electronic equipment also comprises the 4th operating unit, the 3rd acquiring unit and the 5th operating unit;
Described 4th operating unit is used for the Part II showing described first image in described second area;
Described 3rd acquiring unit is for obtaining the editing operation for described first image;
Described 5th operating unit is used for responding described editing operation, shows the Part I of described first image in described second area.
Preferably, described 3rd operating unit comprises the first acquisition subelement and replaces subelement;
Described first obtains subelement is used for when instruction is determined in acquisition first, and the Part I according to described first image obtains described second image;
Described replacement subelement is used for replacing described first identification image with described second image in described second area.
Preferably, described electronic equipment also comprises the 6th operating unit and demarcates unit;
Described 6th operating unit for showing described first image on described display unit;
Described demarcation unit, for demarcating described second area on described first image, shows the Part I of described first image in described second area.
Preferably, described electronic equipment also comprises replacement unit, for replacing described first identification image with described second identification image in described first area.
Image acquiring method in the embodiment of the present invention can be applied to the electronic equipment with display unit, described method can comprise: show the first identification image at described display unit, wherein, described first identification image is corresponding with the first object, and described first identification image is for identifying described first object; Described first identification image takies first area on described display unit; Described first area is first size; Obtain the update instruction for described first identification image; The first image is obtained according to described update instruction; When instruction is determined in acquisition first, show the second image in second area, described second image is the Part I of described first image; Described second area is the second size, described first size and second measure-alike; Using described second image as the second identification image.
In the embodiment of the present invention, when needs upgrade described first identification image, first can obtain described first image, directly in described second area, described second image can be obtained according to described first image afterwards, described second area is the region of a fixed size, and its size is identical with described first area.Adopt the display packing in the embodiment of the present invention, if final required image is the image of prescribed level, namely final required is the image measure-alike with described first area, what so the size of described second area can directly be set to described first area by user when adjusting is measure-alike, and directly image is adjusted in described second area, the size of the image obtained like this is exactly the size of described second area naturally, namely required size, without the need to size and the residing position of adjustment crop box manual as in prior art, the size of described second area is required size, without the need to the manual adjust size of user, so, user is also without the need to carrying out multi-pass operations because of adjusting crop box, for electronic equipment also without the need to response repeatedly, alleviate the burden of electronic equipment.And because the size of described second area is for presetting, without the need to manual adjustment, the size of the image finally obtained is required size, described electronic equipment can carry out batch processing to multiple image, obviously the workload of electronic equipment is decreased, operate also comparatively simply concerning user, operating efficiency is higher.
Accompanying drawing explanation
Fig. 1 is the main flow figure of image acquiring method in the embodiment of the present invention;
Fig. 2 A is the schematic diagram of first area and the first identification image in the embodiment of the present invention;
Fig. 2 B is the schematic diagram of the Part II of second area and the first image in the embodiment of the present invention;
Fig. 2 C is the schematic diagram that in the embodiment of the present invention, user carries out editing operation in the second area for the first image;
Fig. 2 D is the schematic diagram that in the embodiment of the present invention, user carries out editing operation outside second area for the first image;
Fig. 2 E is the schematic diagram of the Part I of second area and the first image in the embodiment of the present invention;
Fig. 2 F is 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 be applied to the electronic equipment with display unit, described method can comprise: show the first identification image at described display unit, wherein, described first identification image is corresponding with the first object, and described first identification image is for identifying described first object; Described first identification image takies first area on described display unit; Described first area is first size; Obtain the update instruction for described first identification image; The first image is obtained according to described update instruction; When instruction is determined in acquisition first, show the second image in second area, described second image is the Part I of described first image; Described second area is the second size, described first size and second measure-alike; Using described second image as the second identification image.
In the embodiment of the present invention, when needs upgrade described first identification image, first can obtain described first image, directly in described second area, described second image can be obtained according to described first image afterwards, described second area is the region of a fixed size, and its size is identical with described first area.Adopt the display packing in the embodiment of the present invention, if final required image is the image of prescribed level, namely final required is the image measure-alike with described first area, what so the size of described second area can directly be set to described first area by user when adjusting is measure-alike, and directly image is adjusted in described second area, the size of the image obtained like this is exactly the size of described second area naturally, namely required size, without the need to size and the residing position of adjustment crop box manual as in prior art, the size of described second area is required size, without the need to the manual adjust size of user, so, user is also without the need to carrying out multi-pass operations because of adjusting crop box, for electronic equipment also without the need to response repeatedly, alleviate the burden of electronic equipment.And because the size of described second area is for presetting, without the need to manual adjustment, the size of the image finally obtained is required size, described electronic equipment can carry out batch processing to multiple image, obviously the workload of electronic equipment is decreased, operate also comparatively simply concerning user, operating efficiency is higher.
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In the embodiment of the present invention, described electronic equipment can be the electronic equipment that PC (personal computer), notebook, PAD (panel computer), mobile phone etc. are different, as long as described electronic equipment has display unit.In the embodiment of the present invention, the size of the described display unit of described electronic equipment is not also limited, described display unit can size comparatively large also can size less, namely described electronic equipment can be the electronic equipment with large scale display unit, or described electronic equipment also can be the electronic equipment with small size display unit.
In addition, term "and/or" herein, being only a kind of incidence relation describing affiliated partner, can there are three kinds of relations in expression, and such as, A and/or B, can represent: individualism A, exists A and B simultaneously, these three kinds of situations of individualism B.In addition, character "/" herein, general expression forward-backward correlation is to the relation liking a kind of "or".
Below in conjunction with accompanying drawing, the preferred embodiment of the present invention is described in detail.
Embodiment one
Refer to Fig. 1, the embodiment of the present invention provides a kind of image acquiring method, and described method can be applied to the electronic equipment with display unit, and the main flow of described method is as follows:
Step 101: show the first identification image at described display unit, wherein, described first identification image is corresponding with the first object, and described first identification image is for identifying described first object; Described first identification image takies first area on described display unit; Described first area is first size.
In the embodiment of the present invention, first can determine in the viewing area of described display unit that an area size is the described first area of described first size.
In the embodiment of the present invention, the position of described first area in described viewing area can be determined automatically by described electronic equipment, or the position of described first area in described viewing area can be set by user.
Such as, if user institute is it is seen that a certain social class website, so described first area can be the region for showing contact head image, at this moment the position of described first area is determined by described electronic equipment, or in some website, the position of described first area also can be changed by modes such as movements by user.
In the embodiment of the present invention, the described first size of described first area can be determined automatically by described electronic equipment, or the described first size of described first area can be set by user.
Such as, if user institute is it is seen that a certain social class website, so described first area can be the region for showing contact head image, at this moment the described first size of described first area is determined by described electronic equipment, or in some website, the described first size of described first area also can be changed by user voluntarily.But in general, the size of described first area situation about being determined voluntarily by described electronic equipment is more.
That is, generally, the size of described first area and size all fix.
Concrete, if the described first size of described first area is determined automatically by described electronic equipment, so described first size can be set at random by described electronic equipment, or also can store at least one size in described electronic equipment, described electronic equipment can select a size as described first size from least one size described in storage.
Wherein, if described electronic equipment selects a size as described first size from least one size described in storage, so described electronic equipment can select a size as described first size arbitrarily from least one size described, or described electronic equipment also can select a specific size as described first size from least one size described.
Concrete, if the described first size of described first area is set by user, so user can operate described electronic equipment, such as can input a value as described first size to described electronic equipment, thus described electronic equipment can determine that the area size of described first area is the described first size that user inputs.Or, also at least one size can be stored in described electronic equipment, so described electronic equipment can show at least one size described in its storage to user, user can operate described electronic equipment, thus indicates described electronic equipment from the size selecting user to specify at least one size described in storing as described first size.
In the embodiment of the present invention, described first identification image can be corresponding with described first object, and described first identification image may be used for identifying described first object.
Such as, described first object can be a concrete contact person, and such as this contact people is A, and so described first identification image can be the image relevant with A, can represent A with described first identification image.Such as described first identification image can be the photo of A.
Such as, described first object can be an application, and such as this is applied as B, the application that such as described first object can be word application, application etc. of playing is different, so described first identification image can be the icon relevant to this application B, can represent application B with this icon.If such as described first object is word application, so described first identification image can be the icon of word application correspondence, user can open word application by clicking this icon, if such as described first object is game application, so described first identification image can be played and be applied corresponding icon, user can open this game application by clicking this icon, etc.
Step 102: obtain the update instruction for described first identification image.
After described display unit shows described first identification image, user may want to operate described first identification image, such as, may want to adjust described first identification image, or wants directly to replace described first identification image with new image.
At this moment, user can carry out renewal rewards theory for described first identification image, such as user directly can carry out described renewal rewards theory with finger or other operating bodies to described first identification image, or user also can carry out described renewal rewards theory by the external input device such as keyboard, mouse to described first identification image, or user also can use gesture the modes such as control, Voice command to carry out described renewal rewards theory.
After user carries out described renewal rewards theory, described electronic equipment can obtain described renewal rewards theory, and can generate described update instruction according to described renewal rewards theory.
Step 103: obtain the first image according to described update instruction.
Described electronic equipment, after the described update instruction of generation, can obtain described first image according to described update instruction.
Wherein, several different situation is had.
Optionally, to adjust described first identification image if user just hopes, described first image that so described electronic equipment obtains according to described update instruction can or described first identification image.
Optionally, if user wants to replace described first identification image, the described renewal rewards theory that so user carries out can be the operation of the new image of acquisition one, and so described electronic equipment is the image different from described first identification image according to described first image that described update instruction obtains.
Concrete, if the operation of the described renewal rewards theory that user the carries out image that to be acquisition one new, so user takes an image again as described first image, or selects an image as described first image in user's image that also can store from described electronic equipment.
In the embodiment of the present invention, after described first image of acquisition, described first image can be shown on described display unit.The embodiment of the present invention mainly introduces two kinds of different situations.
One, after described first image of acquisition, the Part II of described first image can be shown in the second area of described display unit, now described second area and described first area can be the same areas, namely, after described first image of acquisition, directly can show the Part II of described first image in described first area.
In embodiments of the present invention, the Part II of described first image can refer to the parts of images in described first image, or the Part II of described first image also can refer to the whole of described first image, namely, the Part II of described first image can be less than described first image, or the Part II of described first image also can equal described first image.Specifically can determine according to actual conditions, such as, if the size of described first image is greater than described first area, the Part II of described first image so shown in described first area can be the parts of images in described first image, if the size of described first image is not more than described first area, the Part II of described first image so shown in described first area can be the whole of described first image.
So, if described first image is identical with described first identification image, be equivalent to the Part II continuing described first image of display in described first area, if described first image is different from described first identification image, be equivalent to substituted for described first identification image with the Part II of described first image in described first area.
Show the Part II of described first image in described first area after, user may need to carry out some editing operations to the Part II of described first image, such as described editing operation can be carried out by described first image moving and/or the operation of convergent-divergent, or described editing operation also can be other the possible editing operations carried out for described first image.
In the embodiment of the present invention, when carrying out described editing operation, quick convergent-divergent and location can be carried out to described first image by centered by mouse or gesture drop point, so, if described first image is large-size images, this operation just makes in large-size images, accurately locate a pocket fast and becomes very convenient, decreases the interaction times of convergent-divergent and cutting more, decrease the number of times that described electronic equipment needs response, alleviate the burden of described electronic equipment.
Concrete, the method in the embodiment of the present invention can be passed through HTML5 (Hypertext Markup Language, HTML (Hypertext Markup Language)) and realize.
So, make before the Part II of described first image is presented in described second area, to an IMG (a kind of label in HTML5) label be added first to described first image, because an image is exactly visible after being enclosed an IMG label for user, therefore described first image is added described IMG label, can ensure that the Part II of described first image is visible after being presented at described second area concerning user, thus ensure that user can adjust it.
In the embodiment of the present invention, if user has carried out described editing operation for the Part II of described first image, if namely user has carried out described editing operation for described first image, so described electronic equipment can obtain described editing operation, described electronic equipment is after the described editing operation of acquisition, can respond described editing operation, in described second area, show the Part I of described first image.
Concrete, user directly can carry out described editing operation for described first image in described second area, such as, if described display unit is touch sensitive display unit, so user directly can carry out described editing operation for described first image with finger or other operating bodies in described second area, or, no matter whether described display unit is touch sensitive display unit, and user can carry out described editing operation by the external input device such as mouse, keyboard for the Part II of described first image in described second area.Wherein, when described editing operation is zoom operations, according to external input device (such as, mouse) or the point of gesture in described second area centered by fast convergent-divergent and location, it is very convenient that this makes at the upper pocket of accurately locating fast of large-size images (on described first image), decreases the interaction times of convergent-divergent and cutting more.
Concrete, user can carry out described editing operation for described first image outside described second area.Such as, if described display unit is touch sensitive display unit, so user directly can carry out described editing operation for described first image with finger or other operating bodies outside described second area, in this case, such as user has carried out convergent-divergent to described first image outside described second area, move and wait editing operation, the Part II of described first image in corresponding described second area is also equivalent to receive described editing operation, or, no matter whether described display unit is touch sensitive display unit, user can by mouse, the external input devices such as keyboard carry out described editing operation to realize the described editing operation carried out the Part II of described first image in described second area by described first image outside described second area.In addition, it should be noted that, when described editing operation is zoom operations, according to external input device (such as, mouse) or the point of gesture in described second area is (such as, can the starting point of zoom operations, remaining point is positioned at beyond described second area, or, also can be the end point of zoom operations, remaining point is positioned at beyond described second area, etc.) centered by carry out quick convergent-divergent and location, it is very convenient that this makes at the upper pocket of accurately locating fast of large-size images (described first image), decrease the interaction times of convergent-divergent and cutting more.Certainly, when described editing operation for some during zoom operations and in the point that produces of this zoom operations and second area uncorrelated time, can be that the central point of described zoom operations is to the upper accurate location fast of large-sized image (described first image) by the central point of second area.
Concrete, the modes such as user also can be controlled by gesture, Voice command carry out described editing operation to described first image.
Wherein, the Part I of described first image can be the parts of images in described first image, or the Part I of described first image also can refer to the whole of described first image.That is, the Part I of described first image can be less than described first image, or the Part I of described first image also can equal described first image.
Such as, the Part II of described first image is shown in described second area, user has carried out described editing operation for described first image, can respond described editing operation after described electronic equipment obtains described editing operation, Generation Edit instruction, by performing described edit instruction, described electronic equipment can show the Part I of described first image in described second area, user may feel, the Part I of described first image is the image effect required for oneself, so user can carry out the first determination operation, described electronic equipment can obtain described first determination operation.
In the embodiment of the present invention, the Part I of described first image is the subset of described first image, and the Part II of described first image is also the subset of described first image.The Part I of described first image and the Part II of described first image can be the same or different.
Such as, user can utilize finger or other operating bodies to carry out described first determination operation, or user also can carry out described first determination operation by the external input device such as mouse, keyboard, or user also can use gesture the modes such as control, Voice command to carry out described first determination operation.
Two, after described first image of acquisition, can show described first image in described display unit, now described second area and described first area can be zoness of different.Such as, after described first image of acquisition, an editing interface can be opened, in described editing interface, show described first image.Wherein, described editing interface can be full screen display, or may not be full screen display, and described editing interface can cover in described first area, or described editing interface and described first area can be simultaneously displayed on described display unit.
Can have a regional frame in described editing interface, the size of described regional frame can measure-alike with described first area, and the size of described regional frame is fixing.That is, namely this regional frame can be described as described second area.
Concrete, if the position of described second area in described editing interface is determined automatically by described electronic equipment, so described second area specifically in described editing interface electronic equipment described in which position can select arbitrarily, namely described electronic equipment can determine the position of any one position in described editing interface as described second area place.Or described electronic equipment can select arbitrarily a position as the position at described second area place in the white space of described editing interface.
Concrete, if the position of described second area in described editing interface is set by user, so user can operate described electronic equipment, thus indicates described electronic equipment that described second area is presented at user desired position.
When initially showing described first image on described editing interface, described second area can be positioned at the optional position on described editing interface.So, user can carry out to described first image according to described second area adjustment.Different adjustment modes can be had.
1, the position of described second area on described editing interface is fixing, and namely described second area can be motionless, and user can complete adjustment by the first image described in mobile and/or convergent-divergent.
Namely, show described first image in described editing interface after, user may need to carry out some editing operations to described first image.Such as described editing operation can be carried out by described first image moving and/or the operation of convergent-divergent, or described editing operation also can be other the possible editing operations carried out for described first image.User by the first image described in mobile and/or convergent-divergent, can make the different piece that can show described first image in described second area, thus therefrom obtains the Part I of described first image that user wants.
Concrete, the method in the embodiment of the present invention can be passed through HTML5 (Hypertext Markup Language, HTML (Hypertext Markup Language)) and realize.
So, in described editing interface, set described second area, namely set at least one DIV (a kind of label in HTML5), such as, at least can set two DIV.Rectangle for described second area, then two DIV, a DIV wherein may be used for the housing representing described second area, the 2nd DIV wherein may be used in the adjustment to described first image, ensure to have at least parts of images to be positioned at described second area in described first image, and is unlikely to described first image and has all been shifted out described second area.
Wherein, can be that described electronic equipment is provided with described second area according to the size of described first area automatically in described editing interface.
Simultaneously, make before described first image is presented in described editing interface, to an IMG (a kind of label in HTML5) label be added first to described first image, because an image is exactly visible after being enclosed an IMG label for user, therefore described first image is added described IMG label, can ensure that described first image is visible after being presented at described editing interface concerning user, thus ensure that user can adjust it.
In embodiments of the present invention, the Part I of described first image can refer to the parts of images in described first image, or the Part I of described first image also can refer to the whole of described first image, namely, the Part I of described first image can be less than described first image, or the Part I of described first image also can equal described first image.
In the embodiment of the present invention, if user has carried out described editing operation for described first image, so described electronic equipment can obtain described editing operation, described electronic equipment is after the described editing operation of acquisition, can respond described editing operation, in described second area, show the Part I of described first image.
Concrete, user directly can carry out described editing operation for described first image in described second area, such as, if described display unit is touch sensitive display unit, so user directly can carry out described editing operation for described first image with finger or other operating bodies in described second area, or, no matter whether described display unit is touch sensitive display unit, and user can carry out described editing operation by the external input device such as mouse, keyboard for the Part II of described first image in described second area.
Concrete, user can carry out described editing operation for described first image outside described second area.Such as, if described display unit is touch sensitive display unit, so user directly can carry out described editing operation for described first image with finger or other operating bodies outside described second area, in this case, such as user has carried out convergent-divergent to described first image outside described second area, move and wait editing operation, described first image in corresponding described second area is also equivalent to receive described editing operation, or, no matter whether described display unit is touch sensitive display unit, user can by mouse, the external input devices such as keyboard carry out described editing operation to realize the described editing operation carried out described first image in described second area by described first image outside described second area.
Concrete, the modes such as user also can be controlled by gesture, Voice command carry out described editing operation to described first image.
Such as, described first image is shown in described editing interface, user has carried out described editing operation for described first image, can respond described editing operation after described electronic equipment obtains described editing operation, Generation Edit instruction, by performing described edit instruction, described electronic equipment can show the Part I of described first image in described second area, user may feel, the Part I of described first image is the image effect required for oneself, so user can carry out the first determination operation, described electronic equipment can obtain described first determination operation.
Such as, user can utilize finger or other operating bodies to carry out described first determination operation, or user also can carry out described first determination operation by the external input device such as mouse, keyboard, or user also can use gesture the modes such as control, Voice command to carry out described first determination operation.
2, the position of described second area on described editing interface is unfixed, and namely described second area can move, the adjustment that user can come described first image by second area described in mobile and/or convergent-divergent.
Namely, show described first image in described editing interface after, user may need to carry out some editing operations to described first image.Such as described editing operation can be the operation described second area being carried out movement.User by mobile described second area, can make the different piece that can show described first image in described second area, thus therefrom obtains the Part I of described first image that user wants.
Namely user can make the different content that can show described first image in described second area by mobile described second area, thus therefrom obtains the Part I of described first image that user wants.
In embodiments of the present invention, the Part I of described first image can refer to the parts of images in described first image, or the Part I of described first image also can refer to the whole of described first image, namely, the Part I of described first image can be less than described first image, or the Part I of described first image also can equal described first image.
Concrete, the method in the embodiment of the present invention can be passed through HTML5 (Hypertext Markup Language, HTML (Hypertext Markup Language)) and realize.
So, in described editing interface, set described second area, namely set at least one DIV (a kind of label in HTML5), such as, at least can set two DIV.Rectangle for described second area, then two DIV, a DIV wherein may be used for the housing representing described second area, the 2nd DIV wherein may be used in the adjustment to described first image, ensure to have at least parts of images to be positioned at described second area in described first image, and is unlikely to described first image and has all been shifted out described second area.
Wherein, can be that described electronic equipment is provided with described second area according to the size of described first area automatically in described editing interface.
Simultaneously, make before described first image is presented in described editing interface, to an IMG (a kind of label in HTML5) label be added first to described first image, because an image is exactly visible after being enclosed an IMG label for user, therefore described first image is added described IMG label, can ensure that described first image is visible after being presented at described editing interface concerning user, thus ensure that user can adjust it.
In embodiments of the present invention, the Part I of described first image can refer to the parts of images in described first image, or the Part I of described first image also can refer to the whole of described first image, namely, the Part I of described first image can be less than described first image, or the Part I of described first image also can equal described first image.
In the embodiment of the present invention, if user has carried out described editing operation for described first image, so described electronic equipment can obtain described editing operation, described electronic equipment is after the described editing operation of acquisition, can respond described editing operation, in described second area, show the Part I of described first image.
Such as, described first image is shown in described editing interface, user has carried out described editing operation for described first image, can respond described editing operation after described electronic equipment obtains described editing operation, Generation Edit instruction, by performing described edit instruction, described electronic equipment can move described second area in described editing interface, thus in described second area, show the Part I of described first image, user may feel, the Part I of described first image is the image effect required for oneself, so user can carry out the first determination operation, described electronic equipment can obtain described first determination operation.
Such as, user can utilize finger or other operating bodies to carry out described first determination operation, or user also can carry out described first determination operation by the external input device such as mouse, keyboard, or user also can use gesture the modes such as control, Voice command to carry out described first determination operation.
Step 104: when acquisition the first determination operation, show the second image in second area, described second image is the Part I of described first image; Described second area is the second size, described first size and second measure-alike.
Described electronic equipment is after described first determination operation obtaining user, can respond described first determination operation, generate first and determine instruction, instruction is determined by performing described first, described second image can be shown in described second area, described second image is the Part I of described first image, and namely user adjusts the part determined, can allow user's " What You See Is What You Get " like this.Described second area is of a size of described second size, and described second size can be identical with described first size.
If a described second area and described first area are the same area.
Described electronic equipment is after described first determination operation obtaining user, can respond described first determination operation, generate first and determine instruction, instruction is determined by performing described first, Part I according to described first image generates described second image, and the content of described second image is exactly the content of the Part I of described first image.After described second image of generation, described electronic equipment can replace described first identification image with described second image in described second area.
Namely, for user, it is being adjusted to the Part I of described first image needed for oneself, carrying out the first determination operation and is obtaining in the process of described second image, its image seen in described second area seems not change, and content is all the content of the Part I of described first image.But for described electronic equipment, when user adjusts to the Part I of described first image, what described electronic equipment showed in described second area is described first image, after user carries out described first determination operation, need to obtain described second image according to described first image, and described first image is replaced with described second image in described second area, namely show described second image, the display object of described electronic equipment there occurs change.
In embodiments of the present invention, described second area and described first area are the same area, because substituted for described first identification image with described first image before, therefore, after replacing described first image with described second image, described electronic equipment is equivalent in described first area, make described second image substituted for described first identification image.
Wherein, in the embodiment of the present invention, after described second image of acquisition, first can add IMG label for described second image, make described second image visible to user, make described second image in described first area, replace described first identification image afterwards again.
After making described second image replace described first identification image, described first identification image can be stored, or also described first identification image can be abandoned, the present invention does not limit.
Whole process required time is very short, therefore for user, it is being adjusted to the Part I of described first image needed for oneself, carrying out the first determination operation and is obtaining in the process of described second image, its image seen seems not change, and content is all the content of the Part I of described first image.But for described electronic equipment, when user adjusts to the Part I of described first image, what described electronic equipment showed is described first image, after user carries out described first determination operation, described electronic equipment needs to obtain described second image according to described first image, and in described first area, make described second image replace described first identification image, and described first image no longer shows, that is, the display object of described electronic equipment there occurs change.
In the embodiment of the present invention, obtain the process of second image different from described first image, can be specifically undertaken by canvas (a kind of WEB (internet) drawing element), namely, after user carries out described first determination operation, described electronic equipment can call canvas, by canvas, described first image is processed, process is according to being exactly the content making the content in described first image only be left the Part I of described first image, dismiss by the Part I except described first image in described first image, thus obtain described second image.
Meanwhile, after user carries out described first determination operation, in fact also just finish the editing process to described first image.
If two described second areas and described first area are different regions.
1, the position of described second area on described editing interface is fixing, and namely described second area can be motionless, and user can complete adjustment by the first image described in mobile and/or convergent-divergent.
Described electronic equipment is after described first determination operation obtaining user, can respond described first determination operation, generate first and determine instruction, instruction is determined by performing described first, Part I according to described first image generates described second image, and the content of described second image is exactly the content of the Part I of described first image.After described second image of generation, described electronic equipment can replace described first image with described second image in described second area, and described second image can be made in described first area to replace described first identification image.
Namely, for user, it is being adjusted to the Part I of described first image needed for oneself, carrying out the first determination operation and is obtaining in the process of described second image, its image seen in described second area seems not change, and content is all the content of the Part I of described first image.But for described electronic equipment, when user adjusts to the Part I of described first image, what described electronic equipment showed in described second area is described first image, after user carries out described first determination operation, need to obtain described second image according to described first image, and described first image is replaced with described second image in described second area, namely show described second image, the display object of described electronic equipment there occurs change.
In embodiments of the present invention, described second area and described first area are zones of different, therefore, after replacing described first image with described second image, user can also carry out second determination operation, described electronic equipment is after described second determination operation of acquisition, can respond described second determination operation, generate second and determine instruction, determine instruction by performing described second, described electronic equipment can make described second image replace described first identification image in described first area.
Or, after replacing described first image with described second image, described electronic equipment automatically can generate described second and determine instruction, determines instruction by performing described second, and described electronic equipment can make described second image replace described first identification image in described first area.
Wherein, in the embodiment of the present invention, after described second image of acquisition, first can add IMG label for described second image, make described second image visible to user, make described second image in described second area, replace described first image afterwards again.
In the embodiment of the present invention, after described second image of acquisition, first can make described second image in described second area, replace described first image, make described second image in described first area, replace described first identification image afterwards again; Or, after described second image of acquisition, described first image can be replaced with described second image in season in described second area, and make described second image in described first area, replace described first identification image.
After making described second image replace described first identification image, described first identification image can be stored, or also described first identification image can be abandoned, the present invention does not limit.
In the embodiment of the present invention, obtain the process of second image different from described first image, can be specifically undertaken by canvas (a kind of WEB (internet) drawing element), namely, after user carries out described first determination operation, described electronic equipment can call canvas, by canvas, described first image is processed, process is according to being exactly the content making the content in described first image only be left the Part I of described first image, dismiss by the Part I except described first image in described first image, thus obtain described second image.
Meanwhile, after user carries out described first determination operation, in fact also just finish the editing process to described first image.
2, the position of described second area on described editing interface is unfixed, and namely described second area can move, and user can complete adjustment by second area described in mobile and/or convergent-divergent.
Described electronic equipment is after described first determination operation obtaining user, can respond described first determination operation, generate first and determine instruction, instruction is determined by performing described first, Part I according to described first image generates described second image, and the content of described second image is exactly the content of the Part I of described first image.After described second image of generation, described electronic equipment can make described second image in described second area, replace described first image, and described second image can be made in described first area to replace described first identification image.
Namely, for user, it is being adjusted to the Part I of described first image needed for oneself, carrying out the first determination operation and is obtaining in the process of described second image, its image seen in described second area seems not change, and content is all the content of the Part I of described first image.But for described electronic equipment, when user adjusts to the Part I of described first image, what described electronic equipment showed in described second area is described first image, after user carries out described first determination operation, need to obtain described second image according to described first image, and described first image is replaced with described second image in described second area, namely show described second image, the display object of described electronic equipment there occurs change.
In embodiments of the present invention, described second area and described first area are zones of different, therefore, after replacing described first image with described second image, user can also carry out second determination operation, described electronic equipment is after described second determination operation of acquisition, can respond described second determination operation, generate second and determine instruction, determine instruction by performing described second, described electronic equipment can make described second image replace described first identification image in described first area.
Or, after replacing described first image with described second image, described electronic equipment automatically can generate described second and determine instruction, determines instruction by performing described second, and described electronic equipment can make described second image replace described first identification image in described first area.
Wherein, in the embodiment of the present invention, after described second image of acquisition, first can add IMG label for described second image, make described second image visible to user, make described second image in described second area, replace described first image afterwards again.
In the embodiment of the present invention, after described second image of acquisition, first can make described second image in described second area, replace described first image, make described second image in described first area, replace described first identification image afterwards again; Or, after described second image of acquisition, described first image can be replaced with described second image in season in described second area, and make described second image in described first area, replace described first identification image.
After making described second image replace described first identification image, described first identification image can be stored, or also described first identification image can be abandoned, the present invention does not limit.
In the embodiment of the present invention, obtain the process of second image different from described first image, can be specifically undertaken by canvas (a kind of WEB (internet) drawing element), namely, after user carries out described first determination operation, described electronic equipment can call canvas, by canvas, described first image is processed, process is according to being exactly the content making the content in described first image only be left the Part I of described first image, dismiss by the Part I except described first image in described first image, thus obtain described second image.
Meanwhile, after user carries out described first determination operation, in fact also just finish the editing process to described first image.
Step 105: using described second image as the second identification image.
Described electronic equipment, can using described second image as described second identification image after obtaining described second image according to described first image, and described second identification image also may be used for identifying described first object.
Preferably, in another embodiment of the present invention, described electronic equipment, after described second identification image of acquisition, can replace described first identification image with described second identification image in described first area.Because the size of described second identification image is identical with described second area, the size of so described second identification image is also just identical with described first area, therefore, described electronic equipment directly can replace described first identification image with described second identification image in described first area, and described second identification image can just be presented in described first area.
If required image is of a size of fixed measure, so adopt the mode in the embodiment of the present invention, directly first the size in region can be fixed, follow-up Image Adjusting can adjust in this fixing region, user without the need to manually adjusting the size of image, the picture size obtained comparatively standard.Further, if required picture is more, batch processing is needed, and the size of required picture is all consistent, so adopt the method in the embodiment of the present invention significantly can reduce the burden of described electronic equipment, promote the work efficiency of described electronic equipment, also bring great advantage to the user.
Introduce the image acquiring method in the present invention below by way of several specific embodiment, the following examples mainly describe several possible application scenarios of described method.It should be noted that, the embodiment in the present invention only for explaining the present invention, and can not be used for limiting the present invention.Every embodiment meeting inventive concept is all within protection scope of the present invention, and those skilled in the art know how should carry out modification according to thought of the present invention naturally.
Embodiment two
Described electronic equipment is PC, and described electronic equipment has display unit.
In the embodiment of the present invention, user A wants the contact head image adjusting oneself in the A of website.For website A, the size of its contact head image is fixing, and such as its size is described first size.And in the page A of website A, showing the position in the region of its contact head image and size is also fixing, this region is described first area, and described first area is of a size of described first size.
Show described first area in page A, show the first identification image in described first area, as shown in Figure 2 A, the A representation page A in Fig. 2 A, the B in Fig. 2 A represents described first area, and the image in B is described first identification image.The i.e. former contact head image of user A.User A can be called the first object, and so described first identification image is corresponding with described first object and for identifying described first object image.
After described display unit shows described first identification image, user may want to operate described first identification image, such as, may want to adjust described first identification image, or wants directly to replace described first identification image with new image.
At this moment, user can carry out renewal rewards theory for described first identification image.In the embodiment of the present invention, described electronic equipment can have shooting unit, and user obtains a new image by described shooting unit, is namely equivalent to user and has carried out described renewal rewards theory.
Described electronic equipment can obtain described renewal rewards theory, and update instruction can be generated according to described renewal rewards theory, by performing described update instruction, described electronic equipment can obtain the image that user is obtained by described shooting unit, and this image can be called the first image.
After described first image of acquisition, the Part II of described first image can be shown in the second area of described display unit, now described second area and described first area can be the same areas, namely, after described first image of acquisition, directly can show the Part II of described first image in described first area.In the embodiment of the present invention, the Part II of described first image can be less than described first image, namely, what show in described first area can be the parts of images of described first image, as shown in Figure 2 B, A representation page A in Fig. 2 B, the B in Fig. 2 B represents described second area, and the image in B is the Part II of described first image.Can see that in described first image, some image is not arranged in described first area.And can see, described second area and described first area are the same area.
In the embodiment of the present invention, the image not being arranged in described first area in described first image also can not show, and namely only can show the part being arranged in described first area in described first image, but is be shown as example to illustrate in Fig. 2 B.
Be because the size of described first image is greater than the size of described first area in the embodiment of the present invention, therefore only can show the parts of images of described first image in described first area.But in other embodiments, even if the size of described first image is not identical with the size of described first area, also can, by the size of described first image of adjustment, make described first image just be presented in described first area.
Show the Part II of described first image in described first area after, user may need to carry out some editing operations to the Part II of described first image, such as described editing operation can be carried out by described first image moving and/or the operation of convergent-divergent, or described editing operation also can be other the possible editing operations carried out for described first image.
In the embodiment of the present invention, if user has carried out described editing operation for the Part II of described first image, if namely user has carried out described editing operation for described first image, so described electronic equipment can obtain described editing operation, described electronic equipment is after the described editing operation of acquisition, can respond described editing operation, in described second area, show the Part I of described first image.
In the embodiment of the present invention, user can directly in described second area for the described editing operation that described first image carries out, such as, described display unit is touch sensitive display unit, so user be direct finger or other operating bodies in described second area for the described editing operation that described first image carries out.As shown in Figure 2 C, the A representation page A in Fig. 2 C, the B in Fig. 2 C represents described second area.In Fig. 2 C, user carries out moving operation for described first image in described second area with a finger, and the arrow in Fig. 2 C represents the moving direction that user points.
Or, in the embodiment of the present invention, user also can in the outer described editing operation carried out for described first image of described second area, such as, described display unit is touch sensitive display unit, so user be direct finger or other operating bodies in described second area for the described editing operation that described first image carries out.As shown in Figure 2 D, the A representation page A in Fig. 2 D, the B in Fig. 2 D represents described second area.In Fig. 2 D, user carries out moving operation for described first image outside described second area with a finger, and the arrow in Fig. 2 D represents the moving direction that user points.
In the embodiment of the present invention, the Part II of described first image is shown in described second area, user has carried out described editing operation for described first image, can respond described editing operation after described electronic equipment obtains described editing operation, Generation Edit instruction, by performing described edit instruction, described electronic equipment can show the Part I of described first image in described second area, as shown in Figure 2 E, A representation page A in Fig. 2 E, B in Fig. 2 E represents described second area, what show in the described second area in Fig. 2 E is exactly the Part I of described first image.User may feel, the Part I of described first image is the image effect required for oneself, and so user can carry out the first determination operation, and described electronic equipment can obtain described first determination operation.
Such as, user can utilize finger or other operating bodies to carry out described first determination operation, or user also can carry out described first determination operation by the external input device such as mouse, keyboard, or user also can use gesture the modes such as control, Voice command to carry out described first determination operation.
Described electronic equipment is after described first determination operation obtaining user, can respond described first determination operation, generate first and determine instruction, instruction is determined by performing described first, Part I according to described first image generates described second image, and the content of described second image is exactly the content of the Part I of described first image.After described second image of generation, described electronic equipment can replace described first image with described second image in described second area, as shown in Figure 2 F, A representation page A in Fig. 2 F, B in Fig. 2 F represents described second area, and what show in second area described in Fig. 2 F is exactly described second image.As can be seen from Fig. 2 F and Fig. 2 E, the content of described second image in Fig. 2 F is exactly the content of the Part I of the first image described in Fig. 2 E.
In embodiments of the present invention, described second area and described first area are the same area, because substituted for described first identification image with described first image before, therefore, after replacing described first image with described second image, described electronic equipment is equivalent in described first area, make described second image substituted for described first identification image.
In the embodiment of the present invention, after making described second image replace described first identification image, described first identification image can be stored, or also described first identification image can be abandoned, the present invention does not limit.
Embodiment three
Described electronic equipment is PAD, and described electronic equipment has display unit.
In the embodiment of the present invention, user A wants the contact head image adjusting oneself in the A of website.For website A, the size of its contact head image is fixing, and such as its size is described first size.And in the page A of website A, showing the position in the region of its contact head image and size is also fixing, this region is described first area, and described first area is of a size of described first size.
Show described first area in page A, in described first area, show the first identification image, be i.e. the former contact head image of user A.User A can be called the first object, and so described first identification image is corresponding with described first object and for identifying described first object image.
After described display unit shows described first identification image, user may want to operate described first identification image, such as, may want to adjust described first identification image, or wants directly to replace described first identification image with new image.
At this moment, user can carry out renewal rewards theory for described first identification image.In the embodiment of the present invention, store some images in described electronic equipment, user therefrom have selected an image, is namely equivalent to user and has carried out described renewal rewards theory.
Described electronic equipment can obtain described renewal rewards theory, and can generate update instruction according to described renewal rewards theory, and by performing described update instruction, described electronic equipment can obtain the image that user selects, and this image can be called the first image.
After described first image of acquisition, can show described first image in described display unit, now described second area and described first area can be zoness of different.Such as, after described first image of acquisition, an editing interface can be opened, in described editing interface, show described first image.Wherein, described editing interface can be full screen display, or may not be full screen display, and described editing interface can cover in described first area, or described editing interface and described first area can be simultaneously displayed on described display unit.
Can have a regional frame in described editing interface, the size of described regional frame can measure-alike with described first area, and the size of described regional frame is fixing.That is, namely this regional frame can be described as described second area.
In the embodiment of the present invention, the position of described second area on described editing interface is fixing, and namely described second area can be motionless, and user can complete adjustment by the first image described in mobile and/or convergent-divergent.
Show described first image in described editing interface after, user may need to carry out some editing operations to described first image.Such as described editing operation can be carried out by described first image moving and/or the operation of convergent-divergent, or described editing operation also can be other the possible editing operations carried out for described first image.User by the first image described in mobile and/or convergent-divergent, can make the different piece that can show described first image in described second area, thus therefrom obtains the Part I of described first image that user wants.
Concrete, the method in the embodiment of the present invention can be passed through HTML5 (Hypertext Markup Language, HTML (Hypertext Markup Language)) and realize.
So, in described editing interface, set described second area, namely set at least one DIV (a kind of label in HTML5), such as, at least can set two DIV.Rectangle for described second area, then two DIV, a DIV wherein may be used for the housing representing described second area, the 2nd DIV wherein may be used in the adjustment to described first image, ensure to have at least parts of images to be positioned at described second area in described first image, and is unlikely to described first image and has all been shifted out described second area.
Wherein, can be that described electronic equipment is provided with described second area according to the size of described first area automatically in described editing interface.
Simultaneously, make before described first image is presented in described editing interface, to an IMG (a kind of label in HTML5) label be added first to described first image, because an image is exactly visible after being enclosed an IMG label for user, therefore described first image is added described IMG label, can ensure that described first image is visible after being presented at described editing interface concerning user, thus ensure that user can adjust it.
In the embodiment of the present invention, if user has carried out described editing operation for described first image, so described electronic equipment can obtain described editing operation, described electronic equipment is after the described editing operation of acquisition, can respond described editing operation, in described second area, show the Part I of described first image.
In the embodiment of the present invention, user carries out described editing operation for described first image outside described second area, such as, user is by the described editing operation of this external input device of mouse by carrying out described editing operation to realize carrying out described first image in described second area to described first image outside described second area.
In the embodiment of the present invention, described first image is shown in described editing interface, user has carried out described editing operation for described first image, can respond described editing operation after described electronic equipment obtains described editing operation, Generation Edit instruction, by performing described edit instruction, described electronic equipment can show the Part I of described first image in described second area, user may feel, the Part I of described first image is the image effect required for oneself, so user can carry out the first determination operation, described electronic equipment can obtain described first determination operation.
Such as, user is described first determination operation undertaken by mouse.
Described electronic equipment is after described first determination operation obtaining user, can respond described first determination operation, generate first and determine instruction, instruction is determined by performing described first, Part I according to described first image generates described second image, and the content of described second image is exactly the content of the Part I of described first image.After described second image of generation, described electronic equipment can replace described first image with described second image in described second area, and described second image can be made in described first area to replace described first identification image.
Namely, for user, it is being adjusted to the Part I of described first image needed for oneself, carrying out the first determination operation and is obtaining in the process of described second image, its image seen in described second area seems not change, and content is all the content of the Part I of described first image.But for described electronic equipment, when user adjusts to the Part I of described first image, what described electronic equipment showed in described second area is described first image, after user carries out described first determination operation, need to obtain described second image according to described first image, and described first image is replaced with described second image in described second area, namely show described second image, the display object of described electronic equipment there occurs change.
In embodiments of the present invention, described second area and described first area are zones of different, therefore, after replacing described first image with described second image, user can also carry out second determination operation, described electronic equipment is after described second determination operation of acquisition, can respond described second determination operation, generate second and determine instruction, determine instruction by performing described second, described electronic equipment can make described second image replace described first identification image in described first area.
Wherein, in the embodiment of the present invention, after described second image of acquisition, first can add IMG label for described second image, make described second image visible to user, make described second image in described second area, replace described first image afterwards again.
In the embodiment of the present invention, after making described second image replace described first identification image, described first identification image can be stored, or also described first identification image can be abandoned, the present invention does not limit.
Embodiment four
Described electronic equipment is mobile phone, and described electronic equipment has display unit.
In the embodiment of the present invention, user A wants the contact head image adjusting oneself in the A of website.For website A, the size of its contact head image is fixing, and such as its size is described first size.And in the page A of website A, showing the position in the region of its contact head image and size is also fixing, this region is described first area, and described first area is of a size of described first size.
Show described first area in page A, in described first area, show the first identification image, be i.e. the former contact head image of user A.User A can be called the first object, and so described first identification image is corresponding with described first object and for identifying described first object image.
After described display unit shows described first identification image, user may want to operate described first identification image, such as, may want to adjust described first identification image, or wants directly to replace described first identification image with new image.
At this moment, user can carry out renewal rewards theory for described first identification image.In the embodiment of the present invention, store some images in described electronic equipment, user therefrom have selected an image, is namely equivalent to user and has carried out described renewal rewards theory.
Described electronic equipment can obtain described renewal rewards theory, and can generate update instruction according to described renewal rewards theory, and by performing described update instruction, described electronic equipment can obtain the image that user selects, and this image can be called the first image.
After described first image of acquisition, can show described first image in described display unit, now described second area and described first area can be zoness of different.Such as, after described first image of acquisition, an editing interface can be opened, in described editing interface, show described first image.Wherein, described editing interface can be full screen display, or may not be full screen display, and described editing interface can cover in described first area, or described editing interface and described first area can be simultaneously displayed on described display unit.
Can have a regional frame in described editing interface, the size of described regional frame can measure-alike with described first area, and the size of described regional frame is fixing.That is, namely this regional frame can be described as described second area.
In the embodiment of the present invention, the position of described second area on described editing interface is unfixed, and namely described second area can move, and user can complete adjustment by mobile described second area.Now, described editing operation can be the operation of mobile described second area.
Namely, show described first image in described editing interface after, user may need to carry out some editing operations to described first image.Such as described editing operation can be the operation described second area being carried out movement.User by mobile described second area, can make the different piece that can show described first image in described second area, thus therefrom obtains the Part I of described first image that user wants.
Concrete, the method in the embodiment of the present invention can be passed through HTML5 (Hypertext Markup Language, HTML (Hypertext Markup Language)) and realize.
So, in described editing interface, set described second area, namely set at least one DIV (a kind of label in HTML5), such as, at least can set two DIV.Rectangle for described second area, then two DIV, a DIV wherein may be used for the housing representing described second area, the 2nd DIV wherein may be used in the adjustment to described first image, ensure to have at least parts of images to be positioned at described second area in described first image, and is unlikely to described first image and has all been shifted out described second area.
Wherein, can be that described electronic equipment is provided with described second area according to the size of described first area automatically in described editing interface.
Simultaneously, make before described first image is presented in described editing interface, to an IMG (a kind of label in HTML5) label be added first to described first image, because an image is exactly visible after being enclosed an IMG label for user, therefore described first image is added described IMG label, can ensure that described first image is visible after being presented at described editing interface concerning user, thus ensure that user can adjust it.
In the embodiment of the present invention, if user has carried out described editing operation for described first image, so described electronic equipment can obtain described editing operation, described electronic equipment is after the described editing operation of acquisition, can respond described editing operation, in described second area, show the Part I of described first image.
In the embodiment of the present invention, user controls to carry out described editing operation for described first image by gesture, that is, user controls described second area by gesture and moves.
In the embodiment of the present invention, described first image is shown in described editing interface, user has carried out described editing operation for described first image, can respond described editing operation after described electronic equipment obtains described editing operation, Generation Edit instruction, by performing described edit instruction, described electronic equipment can show the Part I of described first image in described second area, user may feel, the Part I of described first image is the image effect required for oneself, so user can carry out the first determination operation, described electronic equipment can obtain described first determination operation.
Such as, user controls by gesture described first determination operation carried out.
Described electronic equipment is after described first determination operation obtaining user, can respond described first determination operation, generate first and determine instruction, instruction is determined by performing described first, Part I according to described first image generates described second image, and the content of described second image is exactly the content of the Part I of described first image.After described second image of generation, described electronic equipment can replace described first image with described second image in described second area, and described second image can be made in described first area to replace described first identification image.
Namely, for user, it is being adjusted to the Part I of described first image needed for oneself, carrying out the first determination operation and is obtaining in the process of described second image, its image seen in described second area seems not change, and content is all the content of the Part I of described first image.But for described electronic equipment, when user adjusts to the Part I of described first image, what described electronic equipment showed in described second area is described first image, after user carries out described first determination operation, need to obtain described second image according to described first image, and described first image is replaced with described second image in described second area, namely show described second image, the display object of described electronic equipment there occurs change.
In embodiments of the present invention, described second area and described first area are zones of different, therefore, after replacing described first image with described second image, user can also carry out second determination operation, described electronic equipment is after described second determination operation of acquisition, can respond described second determination operation, generate second and determine instruction, determine instruction by performing described second, described electronic equipment can make described second image replace described first identification image in described first area.
Wherein, in the embodiment of the present invention, after described second image of acquisition, first can add IMG label for described second image, make described second image visible to user, make described second image in described second area, replace described first image afterwards again.
In the embodiment of the present invention, after making described second image replace described first identification image, described first identification image can be stored, or also described first identification image can be abandoned, the present invention does not limit.
The electronic equipment in the present invention is introduced below in conjunction with accompanying drawing.
Embodiment five
Refer to Fig. 3, the embodiment of the present invention provides a kind of electronic equipment, described electronic equipment can have display unit, and described electronic equipment can comprise the first operating unit 301, first acquiring unit 302, second acquisition unit 303, second operating unit 304 and the 3rd operating unit 305.
Preferably, described electronic equipment can also comprise the 4th operating unit 306, the 3rd acquiring unit 307, the 5th operating unit 308, the 6th operating unit 309, demarcate unit 310 and replacement unit 311.
First operating unit 301 may be used for showing the first identification image on described display unit, and wherein, described first identification image is corresponding with the first object, and described first identification image is for identifying described first object; Described first identification image takies first area on described display unit; Described first area is first size.
First acquiring unit 302 may be used for obtaining the update instruction for described first identification image.
Second acquisition unit 303 may be used for obtaining the first image according to described update instruction.
Second operating unit 304 may be used for, when acquisition the first determination operation, showing the second image in second area, and described second image is the Part I of described first image; Described second area is the second size, described first size and second measure-alike.
3rd operating unit 305 may be used for described second image as the second identification image.
In one embodiment of the invention, the 3rd operating unit 305 can comprise the first acquisition subelement and replace subelement.
Described first obtains subelement may be used for when instruction is determined in acquisition first, and the Part I according to described first image obtains described second image.
Described replacement subelement may be used for replacing described first identification image with described second image in described second area.
In one embodiment of the invention, described first area and described second area can be the same area.
4th operating unit 306 may be used for the Part II showing described first image in described second area.
3rd acquiring unit 307 may be used for obtaining the editing operation for described first image.
5th operating unit 308 may be used for responding described editing operation, shows the Part I of described first image in described second area.
6th operating unit 309 may be used on described display unit, show described first image.
Demarcate unit 310 to may be used for demarcating described second area on described first image, in described second area, show the Part I of described first image.
Replacement unit 311 may be used for replacing described first identification image with described second identification image in described first area.
Image acquiring method in the embodiment of the present invention can be applied to the electronic equipment with display unit, described method can comprise: show the first identification image at described display unit, wherein, described first identification image is corresponding with the first object, and described first identification image is for identifying described first object; Described first identification image takies first area on described display unit; Described first area is first size; Obtain the update instruction for described first identification image; The first image is obtained according to described update instruction; When instruction is determined in acquisition first, show the second image in second area, described second image is the Part I of described first image; Described second area is the second size, described first size and second measure-alike; Using described second image as the second identification image.
In the embodiment of the present invention, when needs upgrade described first identification image, first can obtain described first image, directly in described second area, described second image can be obtained according to described first image afterwards, described second area is the region of a fixed size, and its size is identical with described first area.Adopt the display packing in the embodiment of the present invention, if final required image is the image of prescribed level, namely final required is the image measure-alike with described first area, what so the size of described second area can directly be set to described first area by user when adjusting is measure-alike, and directly image is adjusted in described second area, the size of the image obtained like this is exactly the size of described second area naturally, namely required size, without the need to size and the residing position of adjustment crop box manual as in prior art, the size of described second area is required size, without the need to the manual adjust size of user, so, user is also without the need to carrying out multi-pass operations because of adjusting crop box, for electronic equipment also without the need to response repeatedly, alleviate the burden of electronic equipment.And because the size of described second area is for presetting, without the need to manual adjustment, the size of the image finally obtained is required size, described electronic equipment can carry out batch processing to multiple image, obviously the workload of electronic equipment is decreased, operate also comparatively simply concerning user, operating efficiency is higher.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by device is divided into different functional modules, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described module or unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that the technical scheme of the application contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform all or part of step of method described in each embodiment of the application.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above, above embodiment is only in order to be described in detail the technical scheme of the application, but the explanation of above embodiment just understands method of the present invention and core concept thereof for helping, and should not be construed as limitation of the present invention.Those skilled in the art are in the technical scope that the present invention discloses, and the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.

Claims (12)

1. an image acquiring method, described method is applied in electronic equipment, and described electronic equipment comprises display unit, it is characterized in that, described method comprises:
Show the first identification image at described display unit, wherein, described first identification image is corresponding with the first object, and described first identification image is for identifying described first object; Described first identification image takies first area on described display unit; Described first area is first size;
Obtain the update instruction for described first identification image;
The first image is obtained according to described update instruction;
When acquisition the first determination operation, show the second image in second area, described second image is the Part I of described first image; Described second area is the second size, described first size and second measure-alike;
Using described second image as the second identification image.
2. the method for claim 1, is characterized in that, described first area and described second area are the same area.
3. the method for claim 1, is characterized in that, after obtaining the first image according to described update instruction, and also comprises step before instruction is determined in acquisition first:
The Part II of described first image is shown in described second area;
Obtain the editing operation for described first image;
Described editing operation is responded, in described second area, shows the Part I of described first image.
4. method as claimed in claim 3, it is characterized in that, when instruction is determined in acquisition first, the step showing the second image in second area comprises:
When instruction is determined in acquisition first, the Part I according to described first image obtains described second image;
Described first identification image is replaced with described second image in described second area.
5. the method for claim 1, is characterized in that, after obtaining the first image according to described update instruction, and also comprises step before instruction is determined in acquisition first:
Described display unit shows described first image;
Described first image demarcates described second area, in described second area, shows the Part I of described first image.
6. the method for claim 1, is characterized in that, described second image is also comprised step after the second identification image: in described first area, replace described first identification image with described second identification image.
7. an electronic equipment, described electronic equipment has display unit, it is characterized in that, described electronic equipment comprises:
First operating unit, for showing the first identification image on described display unit, wherein, described first identification image is corresponding with the first object, and described first identification image is for identifying described first object; Described first identification image takies first area on described display unit; Described first area is first size;
First acquiring unit, for obtaining the update instruction for described first identification image;
Second acquisition unit, for obtaining the first image according to described update instruction;
Second operating unit, for when acquisition the first determination operation, in second area, show the second image, described second image is the Part I of described first image; Described second area is the second size, described first size and second measure-alike;
3rd operating unit, for using described second image as the second identification image.
8. electronic equipment as claimed in claim 7, it is characterized in that, described first area and described second area are the same area.
9. electronic equipment as claimed in claim 7, it is characterized in that, described electronic equipment also comprises the 4th operating unit, the 3rd acquiring unit and the 5th operating unit;
Described 4th operating unit is used for the Part II showing described first image in described second area;
Described 3rd acquiring unit is for obtaining the editing operation for described first image;
Described 5th operating unit is used for responding described editing operation, shows the Part I of described first image in described second area.
10. electronic equipment as claimed in claim 9, is characterized in that, described 3rd operating unit comprises the first acquisition subelement and replaces subelement;
Described first obtains subelement is used for when instruction is determined in acquisition first, and the Part I according to described first image obtains described second image;
Described replacement subelement is used for replacing described first identification image with described second image in described second area.
11. electronic equipments as claimed in claim 7, is characterized in that, described electronic equipment also comprises the 6th operating unit and demarcates unit;
Described 6th operating unit for showing described first image on described display unit;
Described demarcation unit, for demarcating described second area on described first image, shows the Part I of described first image in described second area.
12. electronic equipments as claimed in claim 7, it is characterized in that, described electronic equipment also comprises replacement unit, for replacing described first identification image with described second identification image in described 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 true CN104216626A (en) 2014-12-17
CN104216626B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016188199A1 (en) * 2015-11-25 2016-12-01 中兴通讯股份有限公司 Method and device for clipping pictures
CN107463306A (en) * 2017-07-12 2017-12-12 北京潘达互娱科技有限公司 Method for displaying image 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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050278636A1 (en) * 2004-06-09 2005-12-15 Canon Kabushiki Kaisha Image processing apparatus, image processing method, program for implementing the method, and storage medium storing the program
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050278636A1 (en) * 2004-06-09 2005-12-15 Canon Kabushiki Kaisha Image processing apparatus, image processing method, program for implementing the method, and storage medium storing the program
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头像", 《百度经验》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016188199A1 (en) * 2015-11-25 2016-12-01 中兴通讯股份有限公司 Method and device for clipping pictures
CN107463306A (en) * 2017-07-12 2017-12-12 北京潘达互娱科技有限公司 Method for displaying image and device
CN107704292A (en) * 2017-10-18 2018-02-16 维沃移动通信有限公司 Picture method to set up and mobile terminal in a kind of application program

Also Published As

Publication number Publication date
CN104216626B (en) 2017-12-29

Similar Documents

Publication Publication Date Title
CN107111496A (en) customizable blade application
US10185819B2 (en) Extension configuration and interaction
CN109074375B (en) Content selection in web documents
US10126918B2 (en) Customized guided workflow element arrangement
CN112230914B (en) Method, device, terminal and storage medium for producing small program
US20140164912A1 (en) Generating system, method of interactive page templates and storage medium thereof
KR101638725B1 (en) Application text adjusting method, device, terminal, program, and recording medium
JP2022520263A (en) Mini-program data binding methods, appliances, devices and computer programs
CN107111497A (en) Development support system
CN111796821A (en) Page updating method and device
CN109213480B (en) Method, storage medium, equipment and system for developing background management page
CN103412748A (en) Display control method, device and system for user interface of embedded platform
CN112783783A (en) Webpage point burying method, device and equipment and readable storage medium
CN105989216B (en) Caricature content edition method and caricature content editing device
CN114185465A (en) Information processing method, information processing apparatus, storage medium, and electronic device
WO2019039255A1 (en) Terminal device, ui extension method, and ui extension program
CN114116098B (en) Application icon management method and device, electronic equipment and storage medium
CN104216626A (en) Image obtaining method and electronic device
KR20210142839A (en) Method, system, and non-transitory computer readable record medium for business cooperation using desing kit
JP2017037416A (en) Image processor, image processing method
CN108255384A (en) Page access method, equipment and electronic equipment
CN110362249B (en) Control method and device for page jump of writing screen software
US20150293888A1 (en) Expandable Application Representation, Milestones, and Storylines
CN111291256A (en) Personalized homepage generation method, device, electronic device and storage medium
CN105159534A (en) Processing method and apparatus for graphic button

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