CN104978739B - A kind of image object choosing method and device - Google Patents
A kind of image object choosing method and device Download PDFInfo
- Publication number
- CN104978739B CN104978739B CN201510212158.XA CN201510212158A CN104978739B CN 104978739 B CN104978739 B CN 104978739B CN 201510212158 A CN201510212158 A CN 201510212158A CN 104978739 B CN104978739 B CN 104978739B
- Authority
- CN
- China
- Prior art keywords
- bitmap
- chosen position
- target scene
- chosen
- selection operation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses a kind of image object choosing method, methods described includes:Obtain the chosen position for the selection operation that user inputs in target scene;Obtain all bitmap objects corresponding to chosen position described in the target scene;According to the bitmap object in the Pixel Information of the respective pixel of the chosen position, judge whether the bitmap object is effective bitmap object in the chosen position;The bitmap object effectively in bitmap object positioned at the superiors is defined as the object that the selection operation chooses.The embodiment of the invention also discloses a kind of image object selecting device.Using the present invention, the object that is selected when image object is overlapping can be effectively judged, improve the accuracy rate for the image object for choosing user it is expected selection.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of image object choosing method and device.
Background technology
Computer program can show all kinds of image objects in scene interface to user, while need to realize and receive user's pin
Selection operation to these image objects, for example, click on or frame choosing etc., and then according to the selection operation triggering following such as ejection
The events such as notification frame, mobile image object.And in existing image object Choice, for presence image as shown in Figure 1
The overlapping scene of object, often occurring can not judge to choose object, or the selection object for occurring obtaining is not that user it is expected choosing
The error result of the image object taken.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of image object choosing method and device, can effectively judge image pair
As it is overlapping when be selected object, improve and choose user it is expected the accuracy rate of image object chosen.
In order to solve the above-mentioned technical problem, the embodiments of the invention provide a kind of image object choosing method, methods described
Including:
Obtain the chosen position for the selection operation that user inputs in target scene;
Obtain all bitmap objects corresponding to chosen position described in the target scene;
According to the bitmap object in the Pixel Information of the respective pixel of the chosen position, judge that the bitmap object exists
Whether it is effective bitmap object in the chosen position;
The bitmap object effectively in bitmap object positioned at the superiors is defined as the object that the selection operation chooses.
Correspondingly, the embodiment of the present invention additionally provides a kind of image object selecting device, including:
Chosen position acquisition module, the chosen position of the selection operation inputted for obtaining user in target scene;
Bitmap object acquisition module, for obtaining all bitmaps pair corresponding to chosen position described in the target scene
As;
Effective object judge module, for being believed according to pixel of the bitmap object in the respective pixel of the chosen position
Breath, judges whether the bitmap object is effective bitmap object in the chosen position;
Object determining module is chosen, for the bitmap object in the effectively bitmap object positioned at the superiors to be defined as into institute
State the object that selection operation is chosen.
In the present embodiment by judge bitmap object in chosen position whether effectively, and then by effective bitmap of the superiors
Object is defined as the object that selection operation is chosen, it can be ensured that what is chosen is the visible figure of user in chosen position in target scene
As object, so as to improve the accuracy rate for the image object for choosing user it is expected selection.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the overlapping schematic diagram of a scenario of image object be present;
Fig. 2 is a kind of schematic flow sheet of image object choosing method in the embodiment of the present invention;
Fig. 3 is a kind of schematic flow sheet of image object choosing method in another embodiment of the present invention;
Fig. 4 is a kind of schematic flow sheet of image object choosing method in another embodiment of the present invention;
Fig. 5 is a kind of structural representation of image object selecting device in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
Image object choosing method in the embodiment of the present invention, it can be implemented by image object selecting device, it can be real
Such as PC, tablet personal computer, smart mobile phone, electronic reader, car-mounted terminal or wearable intelligent equipment user are whole now
In end, it can obtain the selection operation of user by input tools such as the mouses, touch-screen, stylus of user terminal.
Fig. 2 is a kind of schematic flow sheet of image object choosing method in the embodiment of the present invention, this implementation as shown in the figure
Image object choosing method in example can include:
S201, obtain the chosen position for the selection operation that user inputs in target scene.
Specifically, the target scene in the embodiment of the present invention can be procedure operation interface, scene of game interface, video picture
Face etc., it is possible to achieve set in such as PC, tablet personal computer, smart mobile phone, electronic reader, car-mounted terminal or wearable intelligent
It is standby to wait in user terminal, it is particularly suitable for use under the Flash interface scenarios based on ActionScript exploitations, in the target scene
Including multiple images object.It the selection operation that user inputs in target scene, can be clicking operation, or frame choosing etc.
Region selection operation, if clicking operation, then the chosen position is is clicked position, if region selection operation, then choose
Position is the position in the region being selected.
In an alternative embodiment, in order to which chosen position is placed under same coordinate system with image object compared with and sentence
It is disconnected, the chosen position can be set as world coordinates, such as image object selecting device gets the selection behaviour of user first
The scene coordinate of work or be local coordinate system (be single-point coordinate if clicking on, can be including more in region if region is chosen
The coordinate of individual point), the scene coordinate is then converted into world coordinates or it is stage coordinate, while subsequent analysis image object
When handled also according to the world coordinates of image object.
S202, obtain all bitmap objects (Bitmap) corresponding to chosen position described in the target scene.
Specifically, the selection operation that image object selecting device can input according to the user got in target scene
Chosen position, obtain all bitmap objects under the chosen position in target scene.It can obtain in an alternative embodiment
The response region of all bitmap objects in target scene is taken, and if then the response region of bitmap object and chosen position presence
Overlapping, then it is bitmap object corresponding to the chosen position to confirm the bitmap object, if the chosen position is single-point coordinate,
The chosen position should in the response region of corresponding bitmap object, if the chosen position includes the coordinate of multiple points,
The chosen position should be least partially overlapped with the response region of corresponding bitmap object.
In an alternative embodiment, all display objects corresponding to chosen position described in the target scene can be obtained,
And then by judging whether it is bitmap object, all bitmap objects are obtained in object is shown corresponding to the chosen position,
Such as the getObjectsUnderPoint methods that ActionScript can be used to provide, obtained in the target scene complete
All display object sets under certain point under office's coordinate system, and then with " " method is to all display objects under the point by is Bitmap
Set is filtered, and can filter out the text filed objects of such as TextField (text box), Shape shape objects display object,
So as to obtain Bitmap object sets.
S203, according to the bitmap object in the Pixel Information of the respective pixel of the chosen position, judge the bitmap
Whether object is effective bitmap object in the chosen position.
Specifically, the pixel in the response region of the bitmap object on not all position is all valid pixel, if
The bitmap object is valid pixel in the respective pixel of the chosen position, then may determine that the bitmap object in the choosing
It is effective bitmap object that fetch bit, which is put, if selection operation is clicks on selection operation, bitmap object corresponds in the click coordinate
Pixel is valid pixel, then the bitmap object is effective bitmap object in the chosen position, is otherwise invalid bitmap object;
If selection operation is region selection operation, all pixels of the bitmap object on region is selected are valid pixel, then the position
Figure object is effective bitmap object in the chosen position, if all pixels of the bitmap object on region is selected are nothing
Pixel is imitated, then the bitmap object is invalid bitmap object in the chosen position, if bitmap object is on region is selected
Pixel portion is valid pixel, then it is significance bit in the chosen position that can determine the bitmap object in an alternative embodiment
Figure object, or the ratio of all pixels accounted for according to valid pixel on the selected area, judge the bitmap object described
Whether it is effective bitmap object in chosen position.Judge whether it is valid pixel according to the Pixel Information of pixel, can basis
The pixel in target scene whether it is visible or whether produce effectively influence as judge, in an alternative embodiment, can basis
The transparency of pixel judges whether it is valid pixel, if pixel is fully transparent, it is obviously in target scene can not
See, can not produce effective influence, then can confirm that the pixel is inactive pixels.And then consider some image objects itself
In order to which art effect carries certain transparency, thus a predetermined threshold value can be set, by by the transparency of pixel with should
The result that predetermined threshold value is compared judge the pixel whether inactive pixels, i.e., according to the bitmap object in the chosen position
The transparency of respective pixel and the comparative result of predetermined threshold value, judge the bitmap object in the chosen position whether be
Effective bitmap object.
In an alternative embodiment, some coordinate bit can be obtained by the getPixel32 methods in ActionScript
The ARGB values of pixel are put, its most-significant byte is the transparency of the pixel, and value is from 0 to 255, and 0 is all-transparent, and 255 be complete impermeable
Bright, so as to get transparency of the bitmap object in the respective pixel of the chosen position, exemplary can taking is default
Threshold value is 128, if then the transparency of some pixel is more than 128, it may be determined that it is valid pixel.In other alternative embodiments
In, it can judge whether the pixel is visible or whether produce and effectively influence to be used as and sentence in target scene by other Pixel Informations
Breaking, whether it is valid pixel.
S204, the bitmap object in the effectively bitmap object positioned at the superiors is defined as what the selection operation was chosen
Object.
Specifically, after all effectively bitmap objects in the chosen position are got, image object selecting device
Each effectively level of the bitmap object in the target scene can be further obtained, so that effective bitmap by level maximum
Object is defined as the object that the selection operation is chosen.
In an alternative embodiment, getChildIndex methods can be used to obtain each effectively bitmap object in set
Level, numerical value is bigger to represent that effective bitmap object is located at more top, so as to which the maximum effective bitmap object of level is true
It is set to the object that the selection operation is chosen.Exemplary, determine N number of effectively bitmap pair in chosen position be present by S204
As it can be temporarily set to current by image object selecting device after some effective bitmap object Bitmap1 level is got
Selected object, poll effectively bitmap object Bitmap2 and obtains its level to next, compare Bitmap1 level and
Otherwise Bitmap2 level, it is current selected object that Bitmap1 is kept if Bitmap1 level is larger, if Bitmap2
Level it is larger, current selected object is replaced with into Bitmap2, by that analogy until will all effective bitmap object polls
Finish, you can the maximum effective bitmap object of level is defined as the object that the selection operation chooses.
In the present embodiment by judge bitmap object in chosen position whether effectively, and then by effective bitmap of the superiors
Object is defined as the object that selection operation is chosen, it can be ensured that what is chosen is the visible figure of user in chosen position in target scene
As object, so as to improve the accuracy rate for the image object for choosing user it is expected selection.
Fig. 3 is a kind of schematic flow sheet of image object choosing method in another embodiment of the present invention, as shown in the figure originally
Image object choosing method flow in embodiment can include:
S301, obtain the scene coordinate for the selection operation that user inputs in target scene.
Specifically, the selection operation that user inputs in target scene, can be clicking operation, or Kuang Xuandeng areas
Domain selection operation, if clicking operation, then it is retrieved as being clicked the scene coordinate of position, if region selection operation, then obtain
The scene coordinate of position in the region being selected.
S302, by the selection operation, corresponding scene coordinate is converted to world coordinates in the target scene, as
The chosen position of the selection operation.
Compared with order to which chosen position is placed under same coordinate system with image object and judge, will in the present embodiment
The scene coordinate got in S301 is converted to world coordinates or is stage coordinate, while also root during subsequent analysis image object
Handled according to the world coordinates of image object.
S303, obtain all display objects corresponding to chosen position described in the target scene.
Specifically, the selection operation that image object selecting device can input according to the user got in target scene
Chosen position world coordinates, obtain all display objects under the world coordinates in target scene.In alternative embodiment
In can obtain the response regions of all display objects in target scene, and if then showing that response region and the S302 of object are obtained
To world coordinates exist overlapping, then the display object is confirmed for display object corresponding to the chosen position, if the selection
Position is single-point coordinate, then the chosen position should be in the response region of corresponding display object, if the chosen position bag
The coordinate of multiple points is included, then the chosen position should be least partially overlapped with the response region of corresponding display object.
S304, all bitmap objects are obtained in object is shown corresponding to the chosen position.
Previous step obtains all display objects corresponding to chosen position described in the target scene, and then passes through judgement
Whether each display object is bitmap object, can be filtered out such as the text filed objects of TextField (text box), Shape shapes
Object etc. shows object, so as to obtain Bitmap object sets corresponding to chosen position.
S305, according to the bitmap object the transparency and predetermined threshold value of the respective pixel of the chosen position comparison
As a result, judge whether the bitmap object is effective bitmap object in the chosen position.
Such as by obtaining ARGB value of the bitmap object in the respective pixel of chosen position, its most-significant byte is the pixel
Transparency, if some bitmap object is more than predetermined threshold value in the transparency of the respective pixel of chosen position, confirm the bitmap
Object is effective bitmap object in the chosen position, on the contrary then confirm that it is not effective bitmap pair in the chosen position
As.
S306, obtain each effectively level of the bitmap object in the target scene.
S307, the maximum effective bitmap object of level is defined as the object that selection operation chooses.
A specific implementation scene is described with reference to Fig. 1 and Fig. 4, as shown in the figure the image pair in the present embodiment
As choosing method flow can include:
S401, display Flash game scene interface, scene of game interface includes multiple images object.
The present embodiment builds scene of game interface using the simulation shown in Fig. 1 includes multiple Architectural drawings as signal, scene
Architectural object A and architectural object B in object, such as Fig. 1.
S402, obtain the chosen position for the selection operation that user inputs in target scene.
The present embodiment is introduced by taking X points and Y points in the scene interface that user clicks shown in Fig. 1 as an example respectively, can
To get X and Y scene coordinate respectively.
S403, the getObjectsUnderPoint methods provided using ActionScript, in the target scene
Obtain all display object sets corresponding to chosen position under global coordinate system.
S404, " " method filters is Bitmap to all display object sets under the point, obtains bitmap object for use
Set.
Because X and Y location are architectural object A and architectural object B overlapping region, wrapped in the Bitmap set got
Bitmap corresponding to A containing architectural object and architectural object B, it is referred to as BitmapA and BitmapB, i.e. bitmap object set
Bitmaplist={ BitmapA, BitmapB }.
S405, bitmap object pixel in chosen position is obtained by the getPixel32 methods in ActionScript
ARGB values.
S406, judges whether bitmap object is more than predetermined threshold value in the transparency of the respective pixel of chosen position, if then
S407 is performed, otherwise performs S408.
S407, it is effective bitmap object in chosen position to determine the bitmap object.
S408, judge whether that poll finishes, if then performing S410, otherwise perform S409.
Next bitmap object in the bitmap object set that S409, poll S404 are got, and it is directed to next bitmap object
Perform S406.
S410, the level of each effectively bitmap object in set is obtained using getChildIndex methods, level is maximum
Effective bitmap object be defined as the object that the selection operation is chosen.
S411, the readjustment for the object that the selection operation is chosen is triggered, notification frame, shifting as corresponding to ejecting selected object
Move the events such as selected image object.
When clicking on X points, the BitmapA taken out first in Bitmaplist is judged, because architectural object A is in X
It is transparent at point, is not valid pixel, i.e. BitmapA is not effective bitmap object;Continue to judge BitmapB, architectural object B
It is nontransparent at X points, is available point, so that it is determined that BitmapB is effective bitmap object, as selected object quilt
Return, triggering architectural object B readjustment.
When clicking on Y points, the BitmapA still taken out first in Bitmaplist is judged, due to architectural object A
It is nontransparent at Y points, is available point, record BitmapA is current effective bitmap object, obtains BitmapA in scene
In level;Continue to judge that BitmapB, architectural object B are also nontransparent at Y points, BitmapB is equally effective bitmap pair
As obtaining the levels of BitmapB in the scene, and then compare the level of BitmapA and BitmapB in the scene, the present embodiment
Middle architectural object A is on architectural object B upper strata, that is, BitmapB level is less than BitmapA level, it is thus determined that having
The maximum BitmapA of level is returned as selected object in effect bitmap object, triggering architectural object B readjustment.
In addition, when clicking on the white space in architectural object A or architectural object B, due in the click location not
In the presence of effective bitmap object, the result of invalid selection object is returned, or ignores the clicking operation.
Fig. 5 is a kind of structural representation of image object selecting device in the embodiment of the present invention, of the invention as shown in the figure
Image object selecting device in embodiment can include:
Chosen position acquisition module 510, the chosen position of the selection operation inputted for obtaining user in target scene.
Specifically, the target scene in the embodiment of the present invention can be procedure operation interface, scene of game interface, video picture
Face etc., it is possible to achieve set in such as PC, tablet personal computer, smart mobile phone, electronic reader, car-mounted terminal or wearable intelligent
It is standby to wait in user terminal, it is particularly suitable for use under the Flash interface scenarios based on ActionScript exploitations, in the target scene
Including multiple images object.It the selection operation that user inputs in target scene, can be clicking operation, or frame choosing etc.
Region selection operation, if clicking operation, then the chosen position is is clicked position, if region selection operation, then choose
Position is the position in the region being selected.
In an alternative embodiment, in order to which chosen position is placed under same coordinate system with image object compared with and sentence
It is disconnected, the chosen position can be set as world coordinates, such as chosen position acquisition module 510 gets the selection of user first
The scene coordinate of operation or be local coordinate system (be single-point coordinate if clicking on, can be including in region if region is chosen
The coordinate of multiple points), the scene coordinate is then converted into world coordinates or it is stage coordinate, while successive image object selects
Device is taken to be handled also according to the world coordinates of image object.
Bitmap object acquisition module 520, for obtaining all bitmaps corresponding to chosen position described in the target scene
Object.
Specifically, the selection that bitmap object acquisition module 520 can input according to the user got in target scene
The chosen position of operation, obtain all bitmap objects under the chosen position in target scene.Position in an alternative embodiment
Figure object acquisition module 520 can obtain the response region of all bitmap objects in target scene, and if then bitmap object sound
Answer region to exist with the chosen position overlapping, then it is bitmap object corresponding to the chosen position to confirm the bitmap object, if
The chosen position is single-point coordinate, then the chosen position should be in the response region of corresponding bitmap object, if the choosing
The coordinate for including multiple points is put in fetch bit, then the chosen position should be with the response region at least partly weight of corresponding bitmap object
It is folded.
In an alternative embodiment, bitmap object acquisition module 520 can obtain chosen position described in the target scene
Corresponding all display objects, and then by judging whether it is bitmap object, object is being shown corresponding to the chosen position
GetObjectsUnderPoint methods middle to obtain all bitmap objects, such as that ActionScript can be used to provide,
Obtain under global coordinate system all display object sets under certain point in the target scene, and then with " is Bitmap " methods
To under the point it is all display object set filter, can filter out as the text filed objects of TextField (text box),
Shape shape objects etc. show object, so as to obtain Bitmap object sets.
Effective object judge module 530, for according to the bitmap object the respective pixel of the chosen position picture
Prime information, judge whether the bitmap object is effective bitmap object in the chosen position.
Specifically, the pixel in the response region of the bitmap object on not all position is all valid pixel, if
The bitmap object is valid pixel in the respective pixel of the chosen position, then effective object judge module 530 may determine that
The bitmap object is effective bitmap object in the chosen position, if selection operation is click selection operation, bitmap pair
As respective pixel is valid pixel in the click coordinate, then the bitmap object is effective bitmap pair in the chosen position
As being otherwise invalid bitmap object;If selection operation is region selection operation, all pictures of the bitmap object on region is selected
Element is valid pixel, then the bitmap object is effective bitmap object in the chosen position, if bitmap object is being selected
All pixels on region are inactive pixels, then the bitmap object is invalid bitmap object in the chosen position, if position
Pixel portion of the figure object on region is selected is valid pixel, then can determine that the bitmap object exists in an alternative embodiment
It is effective bitmap object in the chosen position, or the ratio of all pixels accounted for according to valid pixel on the selected area,
Judge whether the bitmap object is effective bitmap object in the chosen position.
Effective object judge module 530 judges whether it is valid pixel according to the Pixel Information of pixel, can be according to this
Pixel in target scene whether it is visible or whether produce effectively influence as judge, in an alternative embodiment, can be according to picture
The transparency of element judges whether it is valid pixel, if pixel is fully transparent, it is obviously invisible in target scene
, effective influence can not be produced, then can confirm that the pixel is inactive pixels.And then itself it is in view of some image objects
Art effect carries certain transparency, thus can set a predetermined threshold value, effective object judge module 530 pass through by
Result of the transparency of pixel compared with the predetermined threshold value judge the pixel whether inactive pixels, i.e., according to the bitmap pair
As the transparency of the respective pixel in the chosen position and the comparative result of predetermined threshold value, judge the bitmap object described
Whether it is effective bitmap object in chosen position.
In an alternative embodiment, some coordinate bit can be obtained by the getPixel32 methods in ActionScript
The ARGB values of pixel are put, its most-significant byte is the transparency of the pixel, and value is from 0 to 255, and 0 is all-transparent, and 255 be complete impermeable
Bright, so as to get transparency of the bitmap object in the respective pixel of the chosen position, exemplary can taking is default
Threshold value is 128, if then the transparency of some pixel is more than 128, it may be determined that it is valid pixel.In other alternative embodiments
In, it can judge whether the pixel is visible or whether produce and effectively influence to be used as and sentence in target scene by other Pixel Informations
Breaking, whether it is valid pixel.
Object determining module 540 is chosen, for the bitmap object in the effectively bitmap object positioned at the superiors to be determined
The object chosen for the selection operation.
Specifically, all effective bitmaps in the chosen position are being got by effective object judge module 530
After object, each effectively layer of the bitmap object in the target scene can further be obtained by choosing object determining module 540
Level, so as to which the maximum effective bitmap object of level is defined as into the object that the selection operation chooses.
In an alternative embodiment, getChildIndex methods can be used to obtain each effectively bitmap object in set
Level, numerical value is bigger to represent that effective bitmap object is located at more top, so as to which the maximum effective bitmap object of level is true
It is set to the object that the selection operation is chosen.Exemplary, determine N number of effectively bitmap pair in chosen position be present by S204
As it can be temporarily set to current by image object selecting device after some effective bitmap object Bitmap1 level is got
Selected object, poll effectively bitmap object Bitmap2 and obtains its level to next, compare Bitmap1 level and
Otherwise Bitmap2 level, it is current selected object that Bitmap1 is kept if Bitmap1 level is larger, if Bitmap2
Level it is larger, current selected object is replaced with into Bitmap2, by that analogy until will all effective bitmap object polls
Finish, you can the maximum effective bitmap object of level is defined as the object that the selection operation chooses.
Image object selecting device in the present embodiment by judge bitmap object in chosen position whether effectively, and then
Effective bitmap object of the superiors is defined as the object that selection operation chooses, it can be ensured that what is chosen is the selection in target scene
The visible image object of user on position, so as to improve the accuracy rate for the image object for choosing user it is expected selection.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly
Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.
Claims (12)
1. a kind of image object choosing method, it is characterised in that methods described includes:
Obtain the chosen position for the selection operation that user inputs in target scene;
Obtain all bitmap objects corresponding to chosen position described in the target scene;
According to the bitmap object in the transparency of the respective pixel of the chosen position and the comparative result of predetermined threshold value, judgement
Whether the bitmap object is effective bitmap object in the chosen position;
The bitmap object effectively in bitmap object positioned at the superiors is defined as the object that the selection operation chooses.
2. image object choosing method as claimed in claim 1, it is characterised in that described to obtain described in the target scene
All bitmap objects include corresponding to chosen position:
Obtain all display objects corresponding to chosen position described in the target scene;
All bitmap objects are obtained in object is shown corresponding to the chosen position.
3. image object choosing method as claimed in claim 1, it is characterised in that described by the effectively bitmap object middle position
Being defined as the object that the selection operation chooses in the bitmap object of the superiors includes:
Obtain each effectively level of the bitmap object in the target scene;
The maximum effective bitmap object of level is defined as the object that the selection operation chooses.
4. image object choosing method as claimed in claim 1, it is characterised in that the acquisition user is defeated in target scene
The chosen position of the selection operation entered includes:
By the selection operation, corresponding scene coordinate is converted to world coordinates in the target scene, and behaviour is chosen as described
The chosen position of work.
5. image object choosing method as claimed in claim 1, it is characterised in that if the selection operation is clicking operation,
Then the chosen position is click location.
6. the image object choosing method as any one of claim 1-5, it is characterised in that the target scene includes
Procedure operation interface, scene of game interface or the video pictures run in mobile terminal.
A kind of 7. image object selecting device, it is characterised in that including:
Chosen position acquisition module, the chosen position of the selection operation inputted for obtaining user in target scene;
Bitmap object acquisition module, for obtaining all bitmap objects corresponding to chosen position described in the target scene;
Effective object judge module, for according to the bitmap object the respective pixel of the chosen position transparency with it is pre-
If the comparative result of threshold value, judge whether the bitmap object is effective bitmap object in the chosen position;
Object determining module is chosen, for the bitmap object in the effectively bitmap object positioned at the superiors to be defined as into the choosing
The object that extract operation is chosen.
8. image object selecting device as claimed in claim 7, it is characterised in that the bitmap object acquisition module is used for:
All display objects corresponding to chosen position described in the target scene are obtained, and are being shown corresponding to the chosen position
Show and all bitmap objects are obtained in object.
9. image object selecting device as claimed in claim 7, it is characterised in that the selection object determining module is used for:
Each effectively level of the bitmap object in the target scene is obtained, the maximum effective bitmap object of level is defined as
The object that the selection operation is chosen.
10. image object selecting device as claimed in claim 7, it is characterised in that the chosen position acquisition module is used for:
By the selection operation, corresponding scene coordinate is converted to world coordinates in the target scene, and behaviour is chosen as described
The chosen position of work.
11. image object selecting device as claimed in claim 7, it is characterised in that if the selection operation is clicking operation,
Then the chosen position is click location.
12. the image object selecting device as any one of claim 7-11, it is characterised in that the target scene bag
Include the procedure operation interface run in mobile terminal, scene of game interface or video pictures.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510212158.XA CN104978739B (en) | 2015-04-29 | 2015-04-29 | A kind of image object choosing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510212158.XA CN104978739B (en) | 2015-04-29 | 2015-04-29 | A kind of image object choosing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104978739A CN104978739A (en) | 2015-10-14 |
CN104978739B true CN104978739B (en) | 2017-12-29 |
Family
ID=54275217
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510212158.XA Active CN104978739B (en) | 2015-04-29 | 2015-04-29 | A kind of image object choosing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104978739B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106709229B (en) * | 2015-11-12 | 2019-07-12 | 网易(杭州)网络有限公司 | The method and device of NPC object priority response in a kind of game system |
CN106934845B (en) * | 2015-12-29 | 2020-05-12 | 龙芯中科技术有限公司 | Object picking method and device |
CN106204711B (en) * | 2016-06-29 | 2020-12-18 | 深圳开立生物医疗科技股份有限公司 | Three-dimensional volume image processing method and system |
CN106527891B (en) * | 2016-10-26 | 2019-09-17 | 腾讯科技(深圳)有限公司 | A kind of edit object selection method and relevant apparatus |
CN109696993A (en) * | 2017-10-20 | 2019-04-30 | 北京仁光科技有限公司 | A kind of touch device |
CN111273971B (en) | 2018-12-04 | 2022-07-29 | 腾讯科技(深圳)有限公司 | Method and device for processing information in view and storage medium |
US20210360236A1 (en) * | 2019-01-30 | 2021-11-18 | Omnivor, Inc. | System and method for encoding a block-based volumetric video having a plurality of video frames of a 3d object into a 2d video format |
CN110333804A (en) * | 2019-06-20 | 2019-10-15 | 珠海文景科技有限公司 | The response method of textures, device, terminal device and storage medium in game system |
CN114153357A (en) * | 2020-11-20 | 2022-03-08 | 完美世界(北京)软件科技发展有限公司 | Interface logic execution method and device, electronic equipment and medium |
CN112486381B (en) * | 2020-11-20 | 2021-11-30 | 完美世界(北京)软件科技发展有限公司 | Interface logic execution method and device, electronic equipment and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7168048B1 (en) * | 1999-03-24 | 2007-01-23 | Microsoft Corporation | Method and structure for implementing a layered object windows |
CN104182113A (en) * | 2013-05-21 | 2014-12-03 | 北大方正集团有限公司 | Stacking object processing device and stacking object processing method |
CN104484109A (en) * | 2014-12-25 | 2015-04-01 | 英华达(上海)科技有限公司 | Object selecting method and system |
-
2015
- 2015-04-29 CN CN201510212158.XA patent/CN104978739B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7168048B1 (en) * | 1999-03-24 | 2007-01-23 | Microsoft Corporation | Method and structure for implementing a layered object windows |
CN104182113A (en) * | 2013-05-21 | 2014-12-03 | 北大方正集团有限公司 | Stacking object processing device and stacking object processing method |
CN104484109A (en) * | 2014-12-25 | 2015-04-01 | 英华达(上海)科技有限公司 | Object selecting method and system |
Also Published As
Publication number | Publication date |
---|---|
CN104978739A (en) | 2015-10-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104978739B (en) | A kind of image object choosing method and device | |
CN109064390B (en) | Image processing method, image processing device and mobile terminal | |
CN106527888B (en) | The method and device of the screen sliding lookup page | |
US8624928B2 (en) | System and method for magnifying a webpage in an electronic device | |
KR20150059466A (en) | Method and apparatus for recognizing object of image in electronic device | |
CN104123520A (en) | Two-dimensional code scanning method and device | |
CN109816745A (en) | Human body thermodynamic chart methods of exhibiting and Related product | |
WO2012159392A1 (en) | Interaction method for dynamic wallpaper and desktop component | |
CN106156237B (en) | Information processing method, information processing unit and user equipment | |
US20210312679A1 (en) | Method for generating identification pattern and terminal device | |
GB2496893A (en) | Presenting Name Bubbles at Different Image Zoom Levels | |
CN106713696A (en) | Image processing method and device | |
CN103391396B (en) | Display control apparatus and display control method | |
CN105045554B (en) | A kind of image display method and user terminal | |
CN104991733A (en) | Picture processing method and mobile terminal | |
CN102902943A (en) | Two-dimension code scanning method, processing device and terminal | |
CN106162303A (en) | Information processing method, information processor and subscriber equipment | |
US10216381B2 (en) | Image capture | |
CN105488381A (en) | Color block sliding based mobile terminal unlocking method and system | |
CN109718554B (en) | Real-time rendering method and device and terminal | |
CN103543916A (en) | Information processing method and electronic equipment | |
CN106201399A (en) | A kind of split screen window display method and terminal | |
CN110737417B (en) | Demonstration equipment and display control method and device of marking line of demonstration equipment | |
CN103870117A (en) | Information processing method and electronic equipment | |
CN104777968B (en) | A kind of information processing method and electronic equipment |
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 |