CN109785408B - Mapping method and device and electronic equipment - Google Patents

Mapping method and device and electronic equipment Download PDF

Info

Publication number
CN109785408B
CN109785408B CN201811653682.0A CN201811653682A CN109785408B CN 109785408 B CN109785408 B CN 109785408B CN 201811653682 A CN201811653682 A CN 201811653682A CN 109785408 B CN109785408 B CN 109785408B
Authority
CN
China
Prior art keywords
map
filling
layer
mapping
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811653682.0A
Other languages
Chinese (zh)
Other versions
CN109785408A (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.)
Super Magic Cube Beijing Technology Co ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201811653682.0A priority Critical patent/CN109785408B/en
Publication of CN109785408A publication Critical patent/CN109785408A/en
Application granted granted Critical
Publication of CN109785408B publication Critical patent/CN109785408B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A10/00TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE at coastal zones; at river basins
    • Y02A10/40Controlling or monitoring, e.g. of flood or hurricane; Forecasting, e.g. risk assessment or mapping

Abstract

The embodiment of the invention discloses a mapping method, a mapping device and electronic equipment, relates to the technical field of computer image processing application, and can realize a composite color filling effect. The method comprises the following steps: displaying a mapping area; the map-filling area comprises a plurality of map-filling subareas; displaying a first map in a first map layer of the map filling area; the first mapping is a boundary texture map with hollowed-out areas, and the hollowed-out areas form the filler map subareas; receiving a first click operation on the first map-filler sub-region; and changing the transparency of the second map in the second map layer of the first map filling subarea from opaque to transparent, and displaying a third map in the third map layer of the first map filling subarea so as to enable the third map to be fused with the first map to form a composite map filling effect. The invention can be applied to the mapping game APP or the webpage mapping game of the terminal equipment, in particular to mapping games developed based on the Unity engine.

Description

Mapping method and device and electronic equipment
Technical Field
The present invention relates to the field of computer image processing applications, and in particular, to a mapping method, apparatus and electronic device.
Background
The color-filling book game is a game in which the outlines of many color drawings are abstracted into line diagrams, and the closed areas formed by the line diagrams are filled with colors by users to finish the drawing works.
The inventors found in the course of implementing the present invention that: in the existing color-filling book game, only a single color can be filled in each filling area, and the filling area is clicked by a user by selecting a palette to display a pure color effect.
Disclosure of Invention
In view of this, the embodiment of the invention provides a mapping method, a mapping device and an electronic device, which can realize a composite color filling effect, thereby enhancing the richness of color filling.
In a first aspect, an embodiment of the present invention provides a mapping method, where the method includes the steps of:
displaying a mapping area; the map-filling area comprises a plurality of map-filling subareas; displaying a first map in a first map layer of the map filling area; the first mapping is a boundary texture map with a hollowed-out area, wherein the hollowed-out area forms the map filling sub-area;
receiving a first click operation on the first map-filler sub-region;
the transparency of the second map in the second map layer of the first map-filling subarea is changed from opaque to transparent, and a third map in the third map layer of the first map-filling subarea is displayed so that the third map and the first map are fused to form a composite map-filling effect; wherein the second layer is located below the first layer, and the third layer is located below the second layer.
With reference to the first aspect, in a first implementation manner of the first aspect, after the displaying the third map in the third layer of the first map sub-area includes:
receiving a second click operation on the first map-filling sub-area, changing the transparency of a third map in a third map layer of the first map-filling sub-area from opaque to transparent, and displaying a fourth map in a fourth map layer of the first map-filling sub-area so as to enable the fourth map to be fused with the first map to form a gradual change compound map-filling effect; the fourth layer is located below the third layer, and the fourth map is a gradual effect map.
With reference to the first aspect, in a second implementation manner of the first aspect, the changing the transparency of the second map in the second map layer of the first map-filling sub-area from opaque to transparent, and displaying the third map in the third map layer of the first map-filling sub-area includes: after the receiving the first click operation on the first filler map sub-region, the method comprises:
acquiring a first filling point coordinate generated by the first click operation;
and according to the filling information carried by the first map filling subarea, calling a flood filling algorithm to fill transparent colors into the second map layer of the first map filling subarea based on the first filling point coordinates so as to display a third map in the third map layer.
With reference to the first aspect, in a first or second implementation manner of the first aspect, in a third implementation manner of the first aspect, each map-filling sub-area carries filling information; the padding information includes: the number of layers of the map-filling subarea, the mapping information corresponding to each layer and the area or boundary of the map-filling subarea.
With reference to the first aspect, in any one of the first to third implementation manners of the first aspect, in a fourth implementation manner of the first aspect, the map-filling area further includes a plurality of identifiers corresponding to a plurality of map-filling sub-areas; the identification comprises a character identification;
the method further comprises, prior to the receiving the first click operation on the first filler map sub-region:
receiving a click of a first identifier from a user;
and activating a plurality of map sub-areas corresponding to the first mark.
In a second aspect, an embodiment of the present invention provides a mapping apparatus, including: the display module is used for displaying the map filling area; the map-filling area comprises a plurality of map-filling subareas; displaying a first map in a first map layer of the map filling area; the first mapping is a boundary texture map with a hollowed-out area, wherein the hollowed-out area forms the map filling sub-area;
the first receiving module is used for receiving a first click operation on the first filler map subarea;
the first effect presentation module is used for changing the transparency of the second mapping in the second mapping layer of the first mapping subarea from opaque to transparent, and displaying a third mapping in the third mapping layer of the first mapping subarea so as to enable the third mapping to be fused with the first mapping to form a composite mapping effect; wherein the second layer is located below the first layer, and the third layer is located below the second layer.
With reference to the second aspect, in a first implementation manner of the second aspect, a second receiving module is configured to receive a second click operation on the first map-filling sub-area after the displaying of the third map in the third map layer of the first map-filling sub-area;
the second effect presentation module is used for changing the transparency of the third mapping in the third mapping layer of the first mapping subarea from opaque to transparent, and displaying the fourth mapping in the fourth mapping layer of the first mapping subarea so as to enable the fourth mapping to be fused with the first mapping to form a gradual compound mapping effect; the fourth layer is located below the third layer, and the fourth map is a gradual effect map.
With reference to the second aspect, in a first implementation manner of the second aspect, in a second implementation manner of the second aspect, the first effect presentation module includes: the acquisition unit is used for acquiring first filling point coordinates generated by the first clicking operation after the first clicking operation on the first filler map subarea is received;
and the transparent filling unit is used for calling a flood filling algorithm to fill transparent colors into the second map layer of the first map filling subarea based on the first filling point coordinates so as to display a third map in the third map layer.
With reference to the second aspect, in a first or second implementation manner of the second aspect, in a third implementation manner of the second aspect, each map sub-area carries padding information; the padding information includes: the number of layers of the map-filling subarea, the mapping information corresponding to each layer and the area or boundary of the map-filling subarea.
With reference to the second aspect, in a fourth implementation manner of the second aspect, the map-filling area further includes a plurality of identifiers corresponding to a plurality of map-filling sub-areas; the identification comprises a character identification;
the apparatus further comprises: the third receiving module is used for receiving the click of the first mark by the user before the first click operation of the first map-filling subarea is received;
and the activation module is used for activating the plurality of map filler subareas corresponding to the first identifier.
In a third aspect, an embodiment of the present invention provides an electronic device, including: one or more processors;
a memory;
the memory has one or more executable programs stored therein, and the one or more processors read the executable program code stored in the memory to run a program corresponding to the executable program code for use in the method of any of the first aspects.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium storing one or more programs executable by one or more processors to implement the method of any of the first aspects
The embodiment of the invention provides a mapping method, a mapping device and electronic equipment, wherein a mapping area is displayed; the map-filling area comprises a plurality of map-filling subareas; displaying a first map in a first map layer of the map filling area; the first mapping is a boundary texture map with a hollowed-out area, wherein the hollowed-out area forms the map filling sub-area; receiving a first click operation on the first map-filler sub-region; and changing the transparency of the second map in the second map layer of the first map filling subarea from opaque to transparent, and displaying a third map in the third map layer of the first map filling subarea so as to enable the third map to be fused with the first map to form a composite map filling effect. Thus, patterns or colors can be automatically filled in a plurality of layers of a map-filling sub-area according to the click of a user on the map-filling sub-area, and finally, a composite color filling effect formed by fusion of a plurality of maps is presented. Therefore, the mapping method of the embodiment can realize the composite color filling effect, thereby enhancing the richness of color filling.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an embodiment of a mapping method of the present invention;
FIG. 2 is a flowchart of the mapping method of FIG. 1;
FIG. 3 is a diagram illustrating the initial state of a user interface for a specific mapping case in a color-book game according to the mapping method of the present invention;
FIG. 4 is a schematic diagram of a first variation of the fill color of the embodiment of FIG. 3;
FIG. 5 is a second variation of the fill color of the embodiment of FIG. 3;
FIG. 6 is a block diagram illustrating an embodiment of a mapping apparatus according to an embodiment of the present invention;
FIG. 7 is a block diagram of another embodiment of a mapping apparatus according to an embodiment of the present invention;
FIG. 8 is a block diagram of another embodiment of a mapping apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an embodiment of the electronic device of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
FIG. 1 is a flowchart of an embodiment of a mapping method of the present invention, as shown in FIG. 1, the method of the present embodiment may be applied to a mapping game APP or a web page mapping game on a terminal device, for example, a color book, especially a mapping game developed based on a Unity engine; the terminal equipment comprises a mobile phone, a computer, a game machine, a tablet personal computer, a learning machine and the like. The method may include:
step 101, displaying a map filling area; the map-filling area comprises a plurality of map-filling subareas; displaying a first map in a first map layer of the map filling area; the first map is a boundary texture map with a hollowed-out area, as shown in fig. 3 or fig. 4, wherein the hollowed-out area forms the map filling sub-area.
In this embodiment, the mapping area may be displayed in the game APP open interface of the terminal device, or may be displayed in the web game open interface. The map filling area is generally a closed area or a semi-closed area, a plurality of map filling subareas can be further included in one map filling area, each map filling subarea can be provided with a plurality of map layers, and it can be understood that as the first map is provided with a hollowed-out area, a part of the second map, which is positioned below the first map layer and is positioned on the second map layer, can be displayed in the hollowed-out area; the final filling effect in this embodiment is a composite color filling effect formed by fusion of the patterns or colors filled in the multiple layers; the fusion refers to the meaning that two or more patterns or colors are seamlessly connected into a whole, the composite color filling refers to the mixed color formed by mutually splicing or overlapping two or more patterns or colors, for example, the first mapping is a butterfly outline and a meridian texture structure outlined by a line zebra texture map, the third mapping is a red, blue and yellow gradient color map, and the final presentation is the whole mixed color effect formed by partially overlapping or splicing the zebra texture and the red, blue and yellow gradient map according to the scheme of the embodiment. The first map layer may be understood as the original shape of a map sub-region that can be seen by a user opening the map-filling game interface, and the first map is a boundary outline for providing filling, may be set according to the filling preference of the user, for example, the main outline of an animal or a plant, for example, when the filling is a butterfly, as shown in fig. 3 or 4, the whole outline and the tendons of the body divide the butterfly into a plurality of filler sub-regions, and the first map layer displays the outline of the butterfly and the tendons line map of the body; it will be appreciated that the lines may be selected from different coloured line texture maps. Another example is: when a leaf is filled, the outline and veins of the leaf divide the whole leaf into a plurality of filling sub-areas, and the first layer is a line drawing showing the outline and veins of the leaf.
In addition, in this embodiment, specifically, each map filling sub-area carries filling information, where the filling information may include: the number of layers of the map-filling subarea, the mapping information corresponding to each layer and the area or boundary of the map-filling subarea; may further include: palette index corresponding to the palette sub-region. The map filling subarea may also carry an identification number of the map filling subarea, for example, an arabic numeral or an english letter, etc.
Step 102, a first click operation on the first filler sub-region is received.
In this embodiment, as an optional embodiment, the map filling area further includes a plurality of identifiers corresponding to a plurality of map filling sub-areas; the identification comprises a character identification; the character mark can be Arabic numerals or English letters; the identification may also include an icon identification or the like.
The method further comprises, prior to the receiving the first click operation on the first filler map sub-region:
receiving a click of a first identifier from a user;
and activating a plurality of map sub-areas corresponding to the first mark. Thus, the user can perform corresponding operation on each map-filling subarea.
The user selects the identification information displayed on the filling area, for example, arabic numeral 1, the corresponding map filling sub-area with the identification of 1 is automatically highlighted, and the user clicks the corresponding map filling sub-area, so that the flood filling algorithm is automatically invoked to perform transparent filling on the second map located on the second map layer.
Step 103, changing the transparency of the second map in the second map layer of the first map-filling sub-area from opaque to transparent, and displaying a third map in the third map layer of the first map-filling sub-area so as to enable the third map to be fused with the first map to form a composite map-filling effect; wherein the second layer is located below the first layer, and the third layer is located below the second layer.
It can be understood that in this embodiment, when the user clicks the first map sub-area for one time, the user automatically fills the second map with transparent color, and may also fill the second map with other colors as required; the second map may be a solid color effect map, as shown in fig. 4, for example, white, or may be an effect map such as a texture map. After the second map is transparentized (the two-dimensional map is displayed with limited content and cannot be shown in the figure), the effect of the third map is shown in fig. 5. Through setting up a plurality of filling layers to the map filling subregion, the first map in the first layer has the fretwork area, sets up the map of different effects at each layer, and after transparent processing was carried out to certain layer wherein, can realize that first layer fuses compound color filling effects such as gradual change, texture that form with the map in other layers, has realized the diversified display effect of filling the colour.
In addition, the numerals displayed on the filler regions in fig. 5 are only for illustrating that each filler region may have a different filling effect, and the numerals are not displayed after the filling is actually completed, but the filling effect corresponding to the numerals.
The embodiment of the invention provides a mapping method, which comprises the steps of displaying a mapping area; the map-filling area comprises a plurality of map-filling subareas; displaying a first map in a first map layer of the map filling area; the first mapping is a boundary texture map with a hollowed-out area, wherein the hollowed-out area forms the map filling sub-area; receiving a first click operation on the first map-filler sub-region; and changing the transparency of the second map in the second map layer of the first map filling subarea from opaque to transparent, and displaying a third map in the third map layer of the first map filling subarea so as to enable the third map to be fused with the first map to form a composite map filling effect. Thus, patterns or colors can be automatically filled in a plurality of layers of a map-filling sub-area according to the click of a user on the map-filling sub-area, and finally, a composite color filling effect formed by fusion of a plurality of maps is presented. Therefore, the mapping method of the embodiment can realize the composite color filling effect, thereby enhancing the richness of color filling.
In this embodiment, it may be understood that various optional composite color filling effect graphs may also be provided, for example, a gradient color filling effect, a texture effect, a three-dimensional stereoscopic effect, and the like, and according to the selection of the user, the composite color filling effect graph may be presented according to the corresponding effect graph by the above method.
Referring to fig. 2, in this embodiment, as an alternative embodiment, after step 103, the method further includes: 104, receiving a second click operation on the first map-filling sub-area, changing the transparency of the third map in the third map layer of the first map-filling sub-area from opaque to transparent, and displaying a fourth map in a fourth map layer of the first map-filling sub-area so as to enable the fourth map to be fused with the first map to form a gradual compound map-filling effect; the fourth layer is located below the third layer, and the fourth map is a gradual effect map.
In this embodiment, it can be understood that, after the third map is displayed, when the user clicks the first map sub-area for the second time, the third map layer is automatically filled with transparent color, the third map layer is made transparent, and the fourth map in the fourth map layer of the first map sub-area is displayed, and because the fourth map is a gradient effect map, the fourth map and the first map are fused to form a gradient composite map effect, as shown in fig. 5 (because the map is not colored, the gradient effect cannot be shown in the map).
In this embodiment, as an optional embodiment, the changing the transparency of the second map in the second map layer of the first map-filling sub-area from opaque to transparent, and displaying the third map in the third map layer of the first map-filling sub-area includes:
acquiring a first filling point coordinate generated by the first click operation; and calling a flood filling algorithm to fill transparent colors in a second map layer of the first map filling subarea based on the first filling point coordinates so as to display a third map in a third map layer. The flood filling algorithm may employ a four-neighborhood filling method (without considering diagonal filling points), an eight-neighborhood filling method (with diagonal filling points considered), or a scan line-based filling method.
It can be understood that, according to the mapping scheme provided by the embodiment, a user can automatically call the flood filling algorithm to perform filling processing only by clicking a certain filling subarea so as to present a preset filling effect.
In this embodiment, in order to fully explain the embodiments of the present invention, a description will be given below of a color book game developed by the inventor of the present application based on the Unity engine: .
Referring to fig. 1 through 5, a developer creates 4 Sprite eidolls in the Unity engine, which are used to draw two-dimensional graphic objects; and correspondingly setting 4 layers, wherein each Sprite eidolon corresponds to one layer, wherein the line texture map which is used as the outline of the filling area is obtained and drawn on the first layer, the pure-color pattern is obtained and drawn on the second layer, the grid texture map or other texture maps are obtained and drawn on the third layer, and the gradual effect map is drawn on the fourth layer.
And creating filling information on the first map layer, wherein the filling information comprises a number corresponding to the filling subarea, the number of map layers, mapping information corresponding to each map layer, a palette number, the area of the filling subarea and/or the boundary coordinate value of the filling subarea. The filling subareas with the same filling effect can be provided with the same identifier, for example, the same Arabic numerals, and a user can click a certain number on the operation interface to correspondingly activate a plurality of subareas corresponding to the number.
The method comprises the steps that a user opens client game software, a mapping interface is displayed, the mapping interface comprises a mapping area, and a first mapping is displayed in a first layer of the mapping area; the first map is a boundary texture map with a hollowed-out area, wherein the hollowed-out area forms the map filling sub-area, and a second map with a part positioned on a second map layer is displayed in the hollowed-out area, for example, a pure white map.
The user clicks one of the subareas, for example, the first subarea, the game client can automatically call a flood filling algorithm, call a flood filling (flood filling) algorithm, also called a seed growing algorithm, and fill a second mapping drawn on the second layer into a transparent color effect based on the first filling point determined by the user click according to the filling information of the subarea; filling the first filling point serving as a central point or a seed point to the periphery by using flood spreading to form transparent color;
specifically, one implementation scheme for automatically filling transparent colors by calling a flood algorithm is as follows: pressing the coordinates of the central point into a stack by taking the central point as a starting point, and acquiring the color and boundary coordinates of a second mapping of a second layer according to filling information in the embodiment;
judging the pixel in the four adjacent domains of the center point, setting a transparency threshold T, setting the transparency value of the current pixel as a variable P (x, y), setting the transparency of the pixel in the four adjacent domains as M (n), and judging whether the transparency difference D= |P-M| between the current pixel and the pixel in the four adjacent domains is smaller than T or not; if so, the pixel M, for example M1, is pressed into a stack as the next center point, and then whether the gray level difference D= |M1-M| of the pixel M in the four adjacent domains of M1 and M1 is smaller than T is judged; if not, the current pixel point is set to be transparent, and whether the transparency difference D= |P-M| of the current pixel and the four-adjacent-domain pixel is smaller than T is continuously judged.
Judging whether a boundary is scanned or not according to the area size or boundary coordinate information of the current filler region acquired by the current filler region filling identification, and ending filling if the boundary is reached.
Or judging whether a new pixel point is pressed into the stack, if not, judging whether four-neighborhood scanning is carried out by taking the original pixel point as a central point to reach a boundary, and if so, ending the current filling; and continuously judging whether the stack is empty or not, and if so, ending filling.
After the second layer is filled with transparent color, the second mapping display effect of the second layer of the first filling subarea becomes transparent, and the third mapping of the third layer is highlighted, so that the effect presented by the current mapping is the composite color filling effect formed by fusing the first mapping and the third mapping.
The user clicks the first filling subarea for the second time, and automatically invokes the flood filling algorithm to fill the transparent color effect on the grid texture map of the third layer, the specific implementation method is the same as the transparent color filling process of the second layer, and is not repeated, after filling is finished, the display effect of the third layer becomes transparent, and a gradual change composite color filling effect map of the fourth layer is displayed.
The invention provides a specific color filling scheme based on the game color filling book developed by the Unity engine, changes the monotonicity of the existing monochromatic color filling effect, improves the diversity of the color filling effect of the color filling game, ensures that the effect of the color filling game is not only a pure color map, but also can present a complex gradual change map, a texture map and other arbitrary effect maps, and brings better color filling game experience for users.
Example two
FIG. 6 is a schematic structural diagram of an embodiment of a mapping apparatus according to the present invention, as shown in FIG. 6, where the mapping apparatus according to the present embodiment may be applied to a mapping game APP or a web page mapping game on a terminal device, for example, in a color-filling book, especially a mapping game developed based on a Unity engine; so as to realize colorful color filling effect, and is not limited to pure color filling effect; the terminal equipment comprises a mobile phone, a computer, a game machine, a tablet personal computer, a learning machine and the like. The device comprises: a display module 21 for displaying the map-filled area; the map-filling area comprises a plurality of map-filling subareas; displaying a first map in a first map layer of the map filling area; the first mapping is a boundary texture map with a hollowed-out area, wherein the hollowed-out area forms the map filling sub-area; a first receiving module 22, configured to receive a first click operation on the first filler region; a first effect presentation module 23, configured to change transparency of the second map in the second map layer of the first map-filling sub-area from opaque to transparent, and display a third map in the third map layer of the first map-filling sub-area, so that the third map and the first map are fused to form a composite map-filling effect; wherein the second layer is located below the first layer, and the third layer is located below the second layer.
The device of this embodiment may be used to execute the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect of the device of this embodiment are similar, and are not repeated here, and can be referred to each other.
Referring to fig. 7, in this embodiment, as an alternative embodiment, there is provided a device similar to that described in the previous embodiment, except that the device further includes: the second receiving module 24 is configured to receive a second click operation on the first map-filler region after the displaying of the third map in the third map layer of the first map-filler region.
A second effect presentation module 25, configured to change transparency of the third map in the third map layer of the first map-filling sub-area from opaque to transparent, and display a fourth map in the fourth map layer of the first map-filling sub-area, so that the fourth map and the first map are fused to form a gradient composite map-filling effect; the fourth layer is located below the third layer, and the fourth map is a gradual effect map.
Referring to fig. 8, in this embodiment, as an alternative embodiment, there is provided an apparatus similar to that described in the previous embodiment, except that the first effect presentation module 23 includes: an obtaining unit 231, configured to obtain, after the receiving a first click operation on a first filler region, a first filler point coordinate generated by the first click operation; and a transparent filling unit 232, configured to invoke a flood filling algorithm to fill the transparent color into the second map layer of the first map filling sub-area based on the first filling point coordinates, so as to display a third map in the third map layer.
In this embodiment, as an optional embodiment, each map-filling sub-area carries filling information; the padding information includes: the number of layers of the map-filling subarea, the mapping information corresponding to each layer and the area or boundary of the map-filling subarea.
In this embodiment, as an optional embodiment, a device similar to the device described in the foregoing embodiment is provided, where the map-filling area further includes a plurality of identifiers corresponding to a plurality of map-filling sub-areas; the identification comprises a character identification;
the device also comprises a third receiving module, which is used for receiving the click of the first mark by the user before the first click operation of the first map-filling subarea is received.
And the activation module is used for activating the plurality of map filler subareas corresponding to the first identifier.
For each embodiment of the mapping apparatus provided by the present invention, the description is relatively simple, and the relevant points are referred to in the description of the method embodiments, because the mapping apparatus is basically similar to the method embodiments.
The invention also provides an electronic device, which comprises one or more processors; a memory; the memory has one or more executable programs stored therein, and the one or more processors read the executable program code stored in the memory to run a program corresponding to the executable program code for performing the method of any of the embodiments.
Fig. 9 is a schematic structural diagram of an embodiment of an electronic device according to the present invention, where any of the methods according to the embodiments of the present invention may be implemented, as shown in fig. 9, and as an alternative embodiment, the electronic device may include: the device comprises a shell 41, a processor 42, a memory 43, a circuit board 44 and a power circuit 45, wherein the circuit board 44 is arranged in a space surrounded by the shell 41, and the processor 42 and the memory 43 are arranged on the circuit board 44; a power supply circuit 45 for supplying power to the respective circuits or devices of the above-described electronic apparatus; the memory 43 is for storing executable program code; the processor 42 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 43 for executing the mapping method described in any of the foregoing embodiments.
The specific implementation of the above steps by the processor 42 and the further implementation of the steps by the processor 42 through the execution of the executable program code may be referred to as a description of the first embodiment of the mapping method of the present invention, which is not repeated herein.
The electronic device exists in a variety of forms including, but not limited to: (1) a mobile communication device: such devices are characterized by mobile communication capabilities and are primarily aimed at providing voice, data communications. Such terminals include: smart phones (e.g., iPhone), multimedia phones, functional phones, and low-end phones, etc. (2) ultra mobile personal computer device: such devices are in the category of personal computers, having computing and processing functions, and generally also having mobile internet access characteristics. Such terminals include: PDA, MID, and UMPC devices, etc., such as iPad. (3) portable entertainment device: such devices may display and play multimedia content. The device comprises: audio and video playback modules (e.g., iPod), palm game consoles, electronic books, and smart toys and portable car navigation devices. (4) server: the configuration of the server includes a processor, a hard disk, a memory, a system bus, and the like, and the server is similar to a general computer architecture, but is required to provide highly reliable services, and thus has high requirements in terms of processing capacity, stability, reliability, security, scalability, manageability, and the like. (5) other electronic devices with data interaction function.
Still further embodiments of the present invention provide a computer-readable storage medium storing one or more programs executable by one or more processors to implement the mapping method of any of the preceding embodiments.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments.
For convenience of description, the above apparatus is described as being functionally divided into various units/modules, respectively. Of course, the functions of the various elements/modules may be implemented in the same piece or pieces of software and/or hardware when implementing the present invention.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any changes or substitutions easily contemplated by those skilled in the art within the scope of the present invention should be included in the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. A mapping method, the method comprising:
displaying a mapping area; the map-filling area comprises a plurality of map-filling subareas; displaying a first map in a first map layer of the map filling area; the first mapping is a boundary texture map with a hollowed-out area, wherein the hollowed-out area forms the map filling sub-area;
receiving a first click operation on the first map-filler sub-region;
the transparency of the second map in the second map layer of the first map-filling subarea is changed from opaque to transparent, and a third map in the third map layer of the first map-filling subarea is displayed so that the third map and the first map are fused to form a composite map-filling effect; wherein the second layer is located below the first layer, and the third layer is located below the second layer;
each map-filling subarea carries filling information; the padding information includes: the number of layers of the map-filling subarea, the mapping information corresponding to each layer and the area or boundary of the map-filling subarea.
2. The method of claim 1, wherein after displaying the third map in the third layer of the first map sub-area comprises:
receiving a second click operation on the first map-filling sub-area, changing the transparency of a third map in a third map layer of the first map-filling sub-area from opaque to transparent, and displaying a fourth map in a fourth map layer of the first map-filling sub-area so as to enable the fourth map to be fused with the first map to form a gradual change compound map-filling effect; the fourth layer is located below the third layer, and the fourth map is a gradual effect map.
3. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the changing the transparency of the second map in the second map layer of the first map-filling subarea from opaque to transparent, and displaying the third map in the third map layer of the first map-filling subarea comprises:
acquiring a first filling point coordinate generated by the first click operation;
and calling a flood filling algorithm to fill transparent colors in a second map layer of the first map filling subarea based on the first filling point coordinates so as to display a third map in a third map layer.
4. The method of claim 1, wherein the map-filling area further comprises a plurality of identifiers corresponding to a plurality of map-filling sub-areas; the identification comprises a character identification;
the method further comprises, prior to the receiving the first click operation on the first filler map sub-region:
receiving a click of a first identifier from a user;
and activating a plurality of map sub-areas corresponding to the first mark.
5. A mapping apparatus, the apparatus comprising:
the display module is used for displaying the map filling area; the map-filling area comprises a plurality of map-filling subareas; displaying a first map in a first map layer of the map filling area; the first mapping is a boundary texture map with a hollowed-out area, wherein the hollowed-out area forms the map filling sub-area;
the first receiving module is used for receiving a first click operation on the first filler map subarea;
the first effect presentation module is used for changing the transparency of the second mapping in the second mapping layer of the first mapping subarea from opaque to transparent, and displaying a third mapping in the third mapping layer of the first mapping subarea so as to enable the third mapping to be fused with the first mapping to form a composite mapping effect; wherein the second layer is located below the first layer, and the third layer is located below the second layer;
each map-filling subarea carries filling information; the padding information includes: the number of layers of the map-filling subarea, the mapping information corresponding to each layer and the area or boundary of the map-filling subarea.
6. The apparatus of claim 5, wherein the apparatus further comprises:
the second receiving module is used for receiving a second click operation on the first map-filling subarea after the third map in the third map layer of the first map-filling subarea is displayed;
the second effect presentation module is used for changing the transparency of the third mapping in the third mapping layer of the first mapping subarea from opaque to transparent, and displaying the fourth mapping in the fourth mapping layer of the first mapping subarea so as to enable the fourth mapping to be fused with the first mapping to form a gradual compound mapping effect; the fourth layer is located below the third layer, and the fourth map is a gradual effect map.
7. The apparatus of claim 5, wherein the first effect presentation module comprises:
the acquisition unit is used for acquiring first filling point coordinates generated by the first clicking operation after the first clicking operation on the first filler map subarea is received;
and the transparent filling unit is used for calling a flood filling algorithm to fill transparent colors into the second map layer of the first map filling subarea based on the first filling point coordinates so as to display a third map in the third map layer.
8. The apparatus of claim 5, wherein the map-filling area further comprises a plurality of identifiers corresponding to a plurality of map-filling sub-areas; the identification comprises a character identification;
the apparatus further comprises: the third receiving module is used for receiving the click of the first mark by the user before the first click operation of the first map-filling subarea is received;
and the activation module is used for activating the plurality of map filler subareas corresponding to the first identifier.
9. An electronic device, comprising:
one or more processors;
a memory;
the memory has one or more executable programs stored therein, and the one or more processors read the executable program code stored in the memory to run a program corresponding to the executable program code for performing the method of any of claims 1 to 4.
10. A computer readable storage medium storing one or more programs executable by one or more processors to implement the method of any of claims 1-4.
CN201811653682.0A 2018-12-29 2018-12-29 Mapping method and device and electronic equipment Active CN109785408B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811653682.0A CN109785408B (en) 2018-12-29 2018-12-29 Mapping method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811653682.0A CN109785408B (en) 2018-12-29 2018-12-29 Mapping method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109785408A CN109785408A (en) 2019-05-21
CN109785408B true CN109785408B (en) 2023-06-27

Family

ID=66499797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811653682.0A Active CN109785408B (en) 2018-12-29 2018-12-29 Mapping method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109785408B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110276816A (en) * 2019-06-27 2019-09-24 北京金山安全软件有限公司 Regional color filling method and device, electronic equipment and computer readable storage medium
CN110458921B (en) * 2019-08-05 2021-08-03 腾讯科技(深圳)有限公司 Image processing method, device, terminal and storage medium
CN111161378B (en) * 2019-12-27 2023-10-17 北京金山安全软件有限公司 Color filling method and device and electronic equipment
CN114283211A (en) * 2021-12-30 2022-04-05 西安纽扣软件科技有限公司 Pixel color filling game system and processing method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010074217A (en) * 2008-09-16 2010-04-02 Kawai Musical Instr Mfg Co Ltd Method and computer program for coloring image generation and recording medium
CN102722897A (en) * 2012-05-23 2012-10-10 方正国际软件有限公司 Method and system for processing multilayer image
CN104361556A (en) * 2014-10-22 2015-02-18 华为技术有限公司 Image synthesis method, image chip and image equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3524529B2 (en) * 2000-12-19 2004-05-10 株式会社ソニー・コンピュータエンタテインメント Drawing processing program to be executed by computer, recording medium storing drawing processing program to be executed by computer, program execution device, drawing device and method
CN1501712A (en) * 2002-11-12 2004-06-02 北京中视联数字系统有限公司 A method for implementing graphics context hybrid display
US9740379B2 (en) * 2015-03-04 2017-08-22 Flycatcher LTD Methods and systems for creating and using electronic coloring pages
CN104765614B (en) * 2015-04-24 2018-04-10 广东小天才科技有限公司 Color in processing method and processing device
CN105719332B (en) * 2016-01-20 2019-02-19 阿里巴巴集团控股有限公司 The implementation method and device of animation between color is mended
CN108492348A (en) * 2018-03-30 2018-09-04 北京金山安全软件有限公司 Image processing method, image processing device, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010074217A (en) * 2008-09-16 2010-04-02 Kawai Musical Instr Mfg Co Ltd Method and computer program for coloring image generation and recording medium
CN102722897A (en) * 2012-05-23 2012-10-10 方正国际软件有限公司 Method and system for processing multilayer image
CN104361556A (en) * 2014-10-22 2015-02-18 华为技术有限公司 Image synthesis method, image chip and image equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Layer-图形图像处理软件的法宝;陶庆;王珈珞;;电脑知识与技术(10);全文 *
PhotoShop图层的应用技巧;张晓琪;;电脑编程技巧与维护(18);全文 *

Also Published As

Publication number Publication date
CN109785408A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
CN109785408B (en) Mapping method and device and electronic equipment
CN103530018B (en) The method for building up and mobile terminal at widget interface in Android operation system
US7536645B2 (en) System and method for customizing layer based themes
US20120127198A1 (en) Selection of foreground characteristics based on background
WO2016197469A1 (en) Method and apparatus for generating unlocking interface, and electronic device
CN109345637B (en) Interaction method and device based on augmented reality
CN106527864B (en) Interface display method and device
CN104866755B (en) Setting method and device for background picture of application program unlocking interface and electronic equipment
WO2020007011A1 (en) Personal information sharing method and apparatus, terminal device, and storage medium
CN111450529A (en) Game map acquisition method and device, storage medium and electronic device
CN104461614A (en) Method for processing theme resource and electronic device
CN105320488A (en) Control method, display method and electronic device
CN114443945A (en) Display method of application icons in virtual user interface and three-dimensional display equipment
CN111161378B (en) Color filling method and device and electronic equipment
CN113318428A (en) Game display control method, non-volatile storage medium, and electronic device
CN117555459A (en) Application group processing method and device, storage medium and electronic equipment
CN109741420B (en) Region filling method and device, electronic equipment and storage medium
CN106598374B (en) Color transition method and device for interface
CN107426595A (en) Interface navigation data handling system
CN111107264A (en) Image processing method, image processing device, storage medium and terminal
CN110991050B (en) CAD (computer-aided design) image stacking method and related product
CN115129224A (en) Movement control method and device, storage medium and electronic equipment
CN114185629A (en) Page display method and device, electronic equipment and storage medium
CN113332720A (en) Game map display method and device, computer equipment and storage medium
Lu et al. Design of immersive and interactive application based on augmented reality and machine learning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240204

Address after: 100041 No. 2202, 1st floor, building 2, No. 7, Shixing street, Shijingshan District, Beijing (cluster registration)

Patentee after: Super magic cube (Beijing) Technology Co.,Ltd.

Country or region after: China

Address before: 100085 East District, Second Floor, 33 Xiaoying West Road, Haidian District, Beijing

Patentee before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right