CN109189524A - Image resource generation method and device - Google Patents
Image resource generation method and device Download PDFInfo
- Publication number
- CN109189524A CN109189524A CN201810905017.XA CN201810905017A CN109189524A CN 109189524 A CN109189524 A CN 109189524A CN 201810905017 A CN201810905017 A CN 201810905017A CN 109189524 A CN109189524 A CN 109189524A
- Authority
- CN
- China
- Prior art keywords
- textures
- image resource
- object module
- format
- module
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Abstract
The embodiment of the invention provides a method and a device for generating image resources, which can obtain a target model corresponding to target image resources to be generated, obtain a first map corresponding to the target model, convert the first map into a second map, the second map is in a vector format, and load the second map into the target model to obtain the target image resources. Based on the above processing, format conversion can be performed on the first map in the bitmap format to obtain a second map in the vector format. Because the storage space occupied by the map in the vector format is smaller, the storage space occupied by the generated image resource can be reduced by loading the second map into the model.
Description
Technical field
The present invention relates to field of computer technology, more particularly to the generation method and device of a kind of image resource.
Background technique
With the fast development of computer technology, the experience requirements of each application program are also being continuously improved in user, example
Such as, the requirement of the requirement of the fluency for being run to application program, user to the display picture of application program.In order to meet use
The generation method for showing the image resource in picture of the requirement at family, application program is also constantly updating optimization.
In the prior art, the corresponding model of image resource to be generated is obtained first, then, obtains preset textures, and
Textures are loaded into model, and then generate image resource.For example, the image resource can be the automobile in scene of game.?
When generating the corresponding image resource of the automobile, it is necessary first to obtain the corresponding car model of the automobile, then, obtain preset vapour
Traffic allowance figure, and automobile textures are loaded into car model, and then the available image resource for being shown as automobile.
However, in the prior art, the corresponding textures of model are usually TGA (Targa, tal fibre add) equipotential bitmap-format, due to
The memory space that the textures of TGA equipotential bitmap-format occupy is larger, and the memory space for causing the image resource generated to occupy is larger.
Summary of the invention
The generation method and device for being designed to provide a kind of image resource of the embodiment of the present invention, to reduce image resource
The memory space of occupancy.Specific technical solution is as follows:
In a first aspect, in order to achieve the above object, the embodiment of the invention discloses a kind of generation method of image resource, institutes
The method of stating includes:
Obtain the corresponding object module of target image resource to be generated;
Obtain corresponding first textures of the object module;Wherein, first textures are bitmap format;
First textures are converted into the second textures;Wherein, second textures are vector format;
Second textures are loaded into the object module, the target image resource is obtained.
It is optionally, described to obtain the corresponding object module of target image resource to be generated, comprising:
Obtain structural parameters;
Structural model is generated according to the structural parameters;
Using the structural model as the corresponding object module of target image resource to be generated.
It is optionally, described to obtain corresponding first textures of the object module, comprising:
Obtain the textures selection instruction of user's input;Wherein, the textures selection instruction is identified comprising textures;
The textures are obtained from preset textures library and identify corresponding textures, as the object module corresponding first
Textures.
Optionally, the vector format is scalable vector graphics SVG format.
Second aspect, in order to achieve the above object, the embodiment of the invention discloses a kind of generating means of image resource, institutes
Stating device includes:
First obtains module, for obtaining the corresponding object module of target image resource to be generated;
Second obtains module, for obtaining corresponding first textures of the object module;Wherein, first textures are position
Bitmap-format;
Conversion module, for first textures to be converted to the second textures;Wherein, second textures are vector lattice
Formula;
Generation module obtains the target image resource for second textures to be loaded into the object module.
Optionally, described first module is obtained, is specifically used for obtaining structural parameters;
Structural model is generated according to the structural parameters;
Using the structural model as the corresponding object module of target image resource to be generated.
Optionally, described second module is obtained, specifically for obtaining the textures selection instruction of user's input;Wherein, described
Textures selection instruction is identified comprising textures;
The textures are obtained from preset textures library and identify corresponding textures, as the object module corresponding first
Textures.
Optionally, the vector format is scalable vector graphics SVG format.
In the another aspect that the present invention is implemented, in order to achieve the above object, the embodiment of the invention also discloses a kind of electronics
Equipment, above-mentioned electronic equipment include:
Memory, for storing computer program;
Processor when for executing the program stored on the memory, realizes the figure as described in above-mentioned first aspect
As the generation method of resource.
At the another aspect that the present invention is implemented, a kind of computer readable storage medium is additionally provided, it is above-mentioned computer-readable
Instruction is stored in storage medium, when run on a computer, realizing the image resource as described in above-mentioned first aspect
Generation method.
At the another aspect that the present invention is implemented, the embodiment of the invention also provides a kind of, and the computer program comprising instruction is produced
Product, when run on a computer, so that computer executes the generation method of image resource described in above-mentioned first aspect.
The generation method and device of a kind of image resource provided in an embodiment of the present invention, available target figure to be generated
As the corresponding object module of resource, corresponding first textures of object module are obtained, the first textures are bitmap format, by the first textures
The second textures are converted to, the second textures are vector format, and the second textures are loaded into object module, obtain target image money
Source.Based on above-mentioned processing, the first textures of bitmap format can be formatted, obtain the second textures of vector format.
Since the memory space that the textures of vector format occupy is smaller, the second textures are loaded into model, can reduce generation
Image resource shared by memory space.
Certainly, it implements any of the products of the present invention or method must be not necessarily required to reach all the above excellent simultaneously
Point.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the generation method of image resource provided in an embodiment of the present invention;
Fig. 2 is a kind of exemplary schematic diagram of the generation method of image resource provided in an embodiment of the present invention;
Fig. 3 is a kind of exemplary schematic diagram of the generation method of image resource provided in an embodiment of the present invention;
Fig. 4 is a kind of structure chart of the generating means of image resource provided in an embodiment of the present invention;
Fig. 5 is the structure chart of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
In the prior art, the corresponding textures of model are usually TGA (Targa, tal fibre add) equipotential bitmap-format, due to TGA etc.
The memory space that the textures of bitmap format occupy is larger, and the memory space for causing the image resource generated to occupy is larger.
To solve the above-mentioned problems, the present patent application provides the generation method and device of a kind of image resource.Above-mentioned side
Method can be applied to intelligent terminal (being properly termed as target terminal), alternatively, this method also can be applied to answering in target terminal
With program, target terminal can be the equipment such as smart phone, tablet computer.The present embodiment is applied to target terminal in this way
Example is illustrated, other situations are similar therewith.The corresponding target mould of the available target image resource to be generated of target terminal
Type obtains the first textures of the corresponding bitmap format of object module, the first textures is converted to the second textures of vector format, will
Second textures are loaded into object module, obtain target image resource.It, can be to the first patch of bitmap format based on above-mentioned processing
Figure formats, and obtains the second textures of vector format.Since the memory space that the textures of vector format occupy is smaller, because
This, the second textures are loaded into model, can reduce memory space shared by the image resource of generation.
It is described in detail again by specific embodiment to the present invention below.
Referring to Fig. 1, Fig. 1 is a kind of flow chart of the generation method of image resource provided in an embodiment of the present invention, this method
It may comprise steps of:
S101: the corresponding object module of target image resource to be generated is obtained.
Wherein, target image resource is usually three-dimensional image resource, for example, house, scene of game in scene of game
In the image resources such as personage.Object module is used to indicate the shape and structure of target image resource, for example, target image resource
For the automobile in scene of game, then object module is the corresponding car model of the automobile;Target image resource is in scene of game
Personage, then object module be the corresponding person model of the personage.
In an implementation, the available corresponding object module of target image resource to be generated of target terminal, according to mesh
It marks model and generates target image resource.
Target terminal obtain object module mode can be it is diversified, optionally, target terminal can take with
Lower two ways obtains object module:
Mode one obtains structural parameters;Structural model is generated according to structural parameters;Using structural model as mesh to be generated
The corresponding object module of logo image resource.
Wherein, structural parameters may include the coordinate on each vertex of model.
In an implementation, target terminal can generate the object module of target image resource according to user demand.Specifically, with
It family can be by the input part of target terminal, to target terminal input structure parameter.Then available user is defeated for target terminal
The structural parameters entered, then, target terminal can generate corresponding structural model according to structural parameters, by the structural model of generation
As the corresponding model of target image resource (i.e. object module).For example, target terminal can be according to vertex each in structural parameters
The corresponding vertex of Coordinate generation, then, target terminal can be generated line between each vertex and each line constitutes
Face.The color in the face that line and line between each vertex, vertex are constituted can be pre-set color, and pre-set color can be by technology
Personnel are rule of thumb configured.The color in the face that line between each vertex, vertex and line are constituted can for grey or its
His color.
As seen from the above, in embodiments of the present invention, the structural parameters that target terminal can be inputted according to user, generate and use
The object module that family needs can satisfy the individual demand of user, improve user experience.
Mode two obtains the model selection instruction of user's input;According to model identification, determined in preset model library to
The corresponding object module of target image resource of generation.
Wherein, model selection instruction includes model identification, can store pre-generated model in preset model library.
In an implementation, target terminal can be directly using the model in local model library.Specifically, user can be in mesh
In the model selection interface for marking terminal, selection needs object module to be used.It includes model identification that target terminal is then available
Model selection instruction, then, target terminal can identify corresponding model (i.e. target by search model in local model library
Model).
In addition, target terminal can also be when obtaining the model library more new command of user's input, to the model in model library
It is updated.For example, target terminal can add new model in model library, alternatively, target terminal can be from model library
Delete certain models.
If the model for not having user to need in the model library of target terminal local, user oneself can also upload pre- Mr.
At model.In addition, user can also search in a network needs model to be used.Specifically, user can be in target terminal
The model identification or types of models that middle input needs to search for.It includes model identification or types of models that target terminal is then available
Search instruction, then, target terminal scan in a network according to model identification or types of models, obtain user and need model
(i.e. object module).For example, can carry " car model " keyword in search instruction, target terminal can be searched in a network
The all types of car model of rope is for selection by the user.
As seen from the above, in embodiments of the present invention, can store pre-generated model in target terminal, for
Family selection, target terminal can also search for the model that user needs according to the search instruction of user, and then image money can be improved
The formation efficiency in source.
S102: corresponding first textures of object module are obtained.
Wherein, the first textures are bitmap format, for example, the first textures can be TGA format, the first textures can be one
It is a, or multiple.
In an implementation, target terminal can take different modes to obtain object module corresponding according to the instruction of user
First textures.
Optionally, it may include following processing step that target terminal, which obtains the first textures: obtain the textures choosing of user's input
Select instruction;Textures are obtained from preset textures library and identify corresponding textures, as corresponding first textures of object module.
Wherein, textures selection instruction is identified comprising textures, can store pre-generated textures in preset textures library.
In an implementation, user can be directly using the textures in the textures library of target terminal local.Correspondingly, user can be with
In the textures selection interface of target terminal, selection needs textures to be used.The target terminal patch that then available user inputs
Figure selection instruction, then, target terminal can identify corresponding textures by search textures in local textures library, as target mould
Corresponding first textures of type.
In addition, target terminal can also be when obtaining the textures library more new command of user's input, to the textures in textures library
It is updated.For example, target terminal can add new textures in textures library, alternatively, target terminal can be from textures library
Delete certain textures.
If the textures for not having user to need in the textures library of target terminal local, user oneself can also upload pre- Mr.
At textures;Alternatively, user can also search in a network needs textures to be used.Specifically, user can be in target terminal
The textures mark or textures type that middle input needs to search for.It includes textures mark or textures type that target terminal is then available
Search instruction, then, target terminal is identified according to textures or textures type scans in a network, obtains user and needs textures
(i.e. the first textures).For example, can carry " automobile textures " keyword in search instruction, target terminal can be searched in a network
Rope automobile textures are for selection by the user.
S103: the first textures are converted into the second textures.
Wherein, the second textures are vector format.
In an implementation, after target terminal obtains the first textures, the first textures can be formatted, obtains vector lattice
Second textures of formula.Specifically, format conversion application can be equipped in target terminal, for example, AI (Adobe
Illustrator, vector plotting tool) application program.Target terminal can be by the first textures import format conversion program, in turn
First textures are formatted, the second textures are obtained.Correspondingly, the second obtained textures can be one, or
It is multiple.
Optionally, vector format can be SVG (Scalable Vector Graphics, scalable vector graphics) lattice
Formula.
Wherein, the second textures of SVG format will not generate the distortion phenomenons such as block of pixels when being amplified, so that mesh
Logo image resource will not generate the distortion phenomenons such as block of pixels when being amplified, and the second textures of SVG format have stronger press
Contracting further decreases memory space shared by target image resource.
S104: the second textures are loaded into object module, obtain target image resource.
In an implementation, after obtaining the second textures, the second textures can be loaded into object module by target terminal, be obtained
Target image resource.Specifically, textures loading application programs can be equipped in target terminal, for example, Unity (entity) is answered
Use program.Target terminal can import object module and the second textures in textures loading application programs, and the second textures are added
It is downloaded in object module, obtains target image resource.
Optionally, the second textures can be multiple, correspondingly, it may include following step that target terminal, which loads the second textures,
It is rapid: according to preset loading sequence, successively every one second textures to be loaded into object module, obtain target image resource.
Wherein, preset loading sequence can be rule of thumb configured by technical staff.
In an implementation, in order to improve the efficiency of switching textures, the second textures can be to be multiple, correspondingly, target terminal can
Successively every one second textures to be loaded into object module, obtain target image resource according to preset loading sequences.Example
Such as, if target image resource is the automobile in scene of game, the second textures can be three, the patch of a body of a motor car
The textures of figure, the textures of automotive wheel and a vehicle glass.Specifically, target terminal can successively paste above three
Figure is loaded into car model, obtains corresponding automobile image resource.
Referring to fig. 2, Fig. 2 is a kind of exemplary flow chart of the generation method of image resource provided in an embodiment of the present invention,
This method may comprise steps of:
S201: structural parameters are obtained.
S202: structural model is generated according to structural parameters, as the corresponding object module of target image resource to be generated.
S203: corresponding first textures of object module are obtained.
Wherein, the first textures are bitmap format.
S204: the first textures are converted into the second textures.
Wherein, the second textures are SVG format.
S205: according to preset loading sequence, successively every one second textures is loaded into object module, obtain target figure
As resource.
Wherein, the second textures are multiple.
Referring to Fig. 3, Fig. 3 is a kind of exemplary flow chart of the generation method of image resource provided in an embodiment of the present invention,
This method may comprise steps of:
S301: the model selection instruction of user's input is obtained.
Wherein, model selection instruction includes model identification.
S302: according to model identification, the corresponding target of target image resource to be generated is determined in preset model library
Model.
S303: corresponding first textures of object module are obtained.
Wherein, the first textures are bitmap format.
S304: the first textures are converted into the second textures.
Wherein, the second textures are SVG format.
S305: according to preset loading sequence, successively every one second textures is loaded into object module, obtain target figure
As resource.
Wherein, the second textures are multiple.
As seen from the above, the generation method of the image resource based on the embodiment of the present invention, available target to be generated
The corresponding object module of image resource obtains corresponding first textures of object module, and the first textures are bitmap format, by the first patch
Figure is converted to the second textures, and the second textures are vector format, and the second textures are loaded into object module, obtains target image money
Source.Based on above-mentioned processing, the first textures of bitmap format can be formatted, obtain the second textures of vector format.
Since the memory space that the textures of vector format occupy is smaller, the second textures are loaded into model, can reduce generation
Image resource shared by memory space.
Corresponding with embodiment of the method shown in FIG. 1, referring to fig. 4, Fig. 4 is a kind of image money provided in an embodiment of the present invention
The structure chart of the generating means in source, device include:
First obtains module 401, for obtaining the corresponding object module of target image resource to be generated;
Second obtains module 402, for obtaining corresponding first textures of the object module;Wherein, first textures
For bitmap format;
Conversion module 403, for first textures to be converted to the second textures;Wherein, second textures are vector
Format;
Generation module 404 obtains target image resource for second textures to be loaded into the object module.
Optionally, described first module 401 is obtained, is specifically used for obtaining structural parameters;
Structural model is generated according to the structural parameters;
Using the structural model as the corresponding object module of target image resource to be generated.
Optionally, described second module 402 is obtained, specifically for obtaining the textures selection instruction of user's input;Wherein, institute
Textures selection instruction is stated to identify comprising textures;
The textures are obtained from preset textures library and identify corresponding textures, as the object module corresponding first
Textures.
Optionally, the vector format is scalable vector graphics SVG format.
From the foregoing, it can be seen that the generating means of the image resource based on the embodiment of the present invention, available target to be generated
The corresponding object module of image resource obtains corresponding first textures of object module, and the first textures are bitmap format, by the first patch
Figure is converted to the second textures, and the second textures are vector format, and the second textures are loaded into object module, obtains target image money
Source.Based on above-mentioned processing, the first textures of bitmap format can be formatted, obtain the second textures of vector format.
Since the memory space that the textures of vector format occupy is smaller, the second textures are loaded into model, can reduce generation
Image resource shared by memory space.
The embodiment of the invention also provides a kind of electronic equipment, as shown in figure 5, including memory 501 and processor 502,
Wherein,
Memory 501, for storing computer program;
Processor 502 when for executing the program stored on memory 501, realizes following steps:
Obtain the corresponding object module of target image resource to be generated;
Obtain corresponding first textures of the object module;Wherein, first textures are bitmap format;
First textures are converted into the second textures;Wherein, second textures are vector format;
Second textures are loaded into the object module, the target image resource is obtained.
Specific implementation and relevant explanation content about each step of this method may refer to preceding method embodiment portion
Point, this will not be repeated here.
Above-mentioned electronic equipment can have the communication interface realized and communicated between above-mentioned electronic equipment and other equipment.
Above-mentioned processor 502, communication interface, memory 501 complete mutual communication by communication bus, this place
It is total that the communication bus mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI)
Line or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..This is logical
Letter bus can be divided into address bus, data/address bus, control bus etc..
Memory 501 may include random access memory (Random Access Memory, RAM), also may include
Nonvolatile memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory
It can also be that at least one is located remotely from the storage device of aforementioned processor.
Above-mentioned processor 502 can be general processor, including central processing unit (Central Processing
Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor
(Digital Signal Processing, abbreviation DSP), specific integrated circuit (Application Specific
Integrated Circuit, abbreviation ASIC), field programmable gate array (Field-Programmable Gate Array,
Abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
Electronic equipment provided in an embodiment of the present invention can be to the first textures of bitmap format when generating image resource
It formats, obtains the second textures of vector format.Since the memory space that the textures of vector format occupy is smaller, because
This, the second textures are loaded into model, can reduce memory space shared by the image resource of generation.
The embodiment of the invention also provides a kind of computer readable storage medium, stored in the computer readable storage medium
There is instruction, when run on a computer, so that computer executes the generation side of image resource provided in an embodiment of the present invention
Method.
Specifically, the generation method of above-mentioned image resource, comprising:
Obtain the corresponding object module of target image resource to be generated;
Obtain corresponding first textures of the object module;Wherein, first textures are bitmap format;
First textures are converted into the second textures;Wherein, second textures are vector format;
Second textures are loaded into the object module, the target image resource is obtained.
It should be noted that other implementations of the generation method of above-mentioned image resource and preceding method embodiment part
Identical, which is not described herein again.
By running the instruction stored in computer readable storage medium provided in an embodiment of the present invention, image money is being generated
When source, the first textures of bitmap format can be formatted, obtain the second textures of vector format.Due to vector format
Textures occupy memory space it is smaller, therefore, the second textures are loaded into model, can reduce the image resource institute of generation
The memory space accounted for.
The embodiment of the invention also provides a kind of computer program products comprising instruction, when it runs on computers
When, so that computer executes the generation method of image resource provided in an embodiment of the present invention.
Specifically, the generation method of above-mentioned image resource, comprising:
Obtain the corresponding object module of target image resource to be generated;
Obtain corresponding first textures of the object module;Wherein, first textures are bitmap format;
First textures are converted into the second textures;Wherein, second textures are vector format;
Second textures are loaded into the object module, the target image resource is obtained.
It should be noted that other implementations of the generation method of above-mentioned image resource and preceding method embodiment part
Identical, which is not described herein again.
It can be to bitmap when generating image resource by running computer program product provided in an embodiment of the present invention
First textures of format format, and obtain the second textures of vector format.Since what the textures of vector format occupied deposits
It is smaller to store up space, therefore, the second textures are loaded into model, can reduce memory space shared by the image resource of generation.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.Above-mentioned computer program
Product includes one or more computer instructions.When loading on computers and executing above-mentioned computer program instructions, all or
Partly generate the process or function above-mentioned according to the embodiment of the present invention.Above-mentioned computer can be general purpose computer, dedicated meter
Calculation machine, computer network or other programmable devices.Above-mentioned computer instruction can store in computer readable storage medium
In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, above-mentioned computer
Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center
User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or
Data center is transmitted.Above-mentioned computer readable storage medium can be any usable medium that computer can access or
It is comprising data storage devices such as one or more usable mediums integrated server, data centers.Above-mentioned usable medium can be with
It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk
Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device,
For electronic equipment, computer readable storage medium, computer program product embodiments, implement since it is substantially similar to method
Example, so being described relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (10)
1. a kind of generation method of image resource, which is characterized in that the described method includes:
Obtain the corresponding object module of target image resource to be generated;
Obtain corresponding first textures of the object module;Wherein, first textures are bitmap format;
First textures are converted into the second textures;Wherein, second textures are vector format;
Second textures are loaded into the object module, the target image resource is obtained.
2. the method according to claim 1, wherein described obtain the corresponding mesh of target image resource to be generated
Mark model, comprising:
Obtain structural parameters;
Structural model is generated according to the structural parameters;
Using the structural model as the corresponding object module of target image resource to be generated.
3. the method according to claim 1, wherein described obtain corresponding first textures of the object module,
Include:
Obtain the textures selection instruction of user's input;Wherein, the textures selection instruction is identified comprising textures;
The textures are obtained from preset textures library and identify corresponding textures, as corresponding first patch of the object module
Figure.
4. the method according to claim 1, wherein the vector format is scalable vector graphics SVG format.
5. a kind of generating means of image resource, which is characterized in that described device includes:
First obtains module, for obtaining the corresponding object module of target image resource to be generated;
Second obtains module, for obtaining corresponding first textures of the object module;Wherein, first textures are bitmap lattice
Formula;
Conversion module, for first textures to be converted to the second textures;Wherein, second textures are vector format;
Generation module obtains the target image resource for second textures to be loaded into the object module.
6. device according to claim 5, which is characterized in that described first obtains module, is specifically used for obtaining structure ginseng
Number;
Structural model is generated according to the structural parameters;
Using the structural model as the corresponding object module of target image resource to be generated.
7. device according to claim 5, which is characterized in that described second obtains module, and it is defeated to be specifically used for acquisition user
The textures selection instruction entered;Wherein, the textures selection instruction is identified comprising textures;
The textures are obtained from preset textures library and identify corresponding textures, as corresponding first patch of the object module
Figure.
8. device according to claim 5, which is characterized in that the vector format is scalable vector graphics SVG format.
9. a kind of electronic equipment, which is characterized in that including memory and processor, wherein
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes any side claim 1-4
Method step.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium
Program realizes claim 1-4 any method and step when the computer program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810905017.XA CN109189524A (en) | 2018-08-09 | 2018-08-09 | Image resource generation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810905017.XA CN109189524A (en) | 2018-08-09 | 2018-08-09 | Image resource generation method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109189524A true CN109189524A (en) | 2019-01-11 |
Family
ID=64921410
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810905017.XA Pending CN109189524A (en) | 2018-08-09 | 2018-08-09 | Image resource generation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109189524A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110287431A (en) * | 2019-06-27 | 2019-09-27 | 北京金山安全软件有限公司 | Image file loading method and device, electronic equipment and storage medium |
CN110674090A (en) * | 2019-09-10 | 2020-01-10 | 北京金山安全软件有限公司 | Resource file processing method and device |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030098862A1 (en) * | 2001-11-06 | 2003-05-29 | Smartequip, Inc. | Method and system for building and using intelligent vector objects |
US20050111745A1 (en) * | 2003-11-20 | 2005-05-26 | Canon Kabushiki Kaisha | Image processing apparatus and method for converting image data to predetermined format |
CN101046888A (en) * | 2006-03-30 | 2007-10-03 | 株式会社东芝 | Rendering apparatus and method, and shape data generation apparatus and method |
US20080273218A1 (en) * | 2005-05-30 | 2008-11-06 | Canon Kabushiki Kaisha | Image Processing Apparatus, Control Method Thereof, and Program |
US20100195151A1 (en) * | 2009-02-05 | 2010-08-05 | Canon Kabushiki Kaisha | Image processing apparatus and control method for the same |
CN102651140A (en) * | 2011-02-23 | 2012-08-29 | 腾讯科技(深圳)有限公司 | Method and device for image rendering |
CN103177419A (en) * | 2011-12-23 | 2013-06-26 | 上海为舟网络科技有限公司 | Caching method for vector diagram converted bitmap and special image processing device |
CN103226619A (en) * | 2013-05-23 | 2013-07-31 | 北京邮电大学 | Native vector diagram format conversion method and system |
CN103699732A (en) * | 2013-12-19 | 2014-04-02 | 湖北视纪印象科技股份有限公司 | Method for batch conversion of picture formats |
CN104008401A (en) * | 2014-05-07 | 2014-08-27 | 中国科学院信息工程研究所 | Method and device for image character recognition |
CN105302445A (en) * | 2015-11-12 | 2016-02-03 | 小米科技有限责任公司 | Graphical user interface drawing method and device |
CN106920270A (en) * | 2015-12-24 | 2017-07-04 | 博雅网络游戏开发(深圳)有限公司 | Animation processing method and device |
CN107909541A (en) * | 2017-11-13 | 2018-04-13 | 杭州电魂网络科技股份有限公司 | Map conversion method and device |
-
2018
- 2018-08-09 CN CN201810905017.XA patent/CN109189524A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030098862A1 (en) * | 2001-11-06 | 2003-05-29 | Smartequip, Inc. | Method and system for building and using intelligent vector objects |
US20050111745A1 (en) * | 2003-11-20 | 2005-05-26 | Canon Kabushiki Kaisha | Image processing apparatus and method for converting image data to predetermined format |
US20080273218A1 (en) * | 2005-05-30 | 2008-11-06 | Canon Kabushiki Kaisha | Image Processing Apparatus, Control Method Thereof, and Program |
CN101046888A (en) * | 2006-03-30 | 2007-10-03 | 株式会社东芝 | Rendering apparatus and method, and shape data generation apparatus and method |
US20100195151A1 (en) * | 2009-02-05 | 2010-08-05 | Canon Kabushiki Kaisha | Image processing apparatus and control method for the same |
CN102651140A (en) * | 2011-02-23 | 2012-08-29 | 腾讯科技(深圳)有限公司 | Method and device for image rendering |
CN103177419A (en) * | 2011-12-23 | 2013-06-26 | 上海为舟网络科技有限公司 | Caching method for vector diagram converted bitmap and special image processing device |
CN103226619A (en) * | 2013-05-23 | 2013-07-31 | 北京邮电大学 | Native vector diagram format conversion method and system |
CN103699732A (en) * | 2013-12-19 | 2014-04-02 | 湖北视纪印象科技股份有限公司 | Method for batch conversion of picture formats |
CN104008401A (en) * | 2014-05-07 | 2014-08-27 | 中国科学院信息工程研究所 | Method and device for image character recognition |
CN105302445A (en) * | 2015-11-12 | 2016-02-03 | 小米科技有限责任公司 | Graphical user interface drawing method and device |
CN106920270A (en) * | 2015-12-24 | 2017-07-04 | 博雅网络游戏开发(深圳)有限公司 | Animation processing method and device |
CN107909541A (en) * | 2017-11-13 | 2018-04-13 | 杭州电魂网络科技股份有限公司 | Map conversion method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110287431A (en) * | 2019-06-27 | 2019-09-27 | 北京金山安全软件有限公司 | Image file loading method and device, electronic equipment and storage medium |
CN110674090A (en) * | 2019-09-10 | 2020-01-10 | 北京金山安全软件有限公司 | Resource file processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101447091A (en) | Method and apparatus for processing graphics | |
CN110210532B (en) | Background color generation method and device and electronic equipment | |
CN112102437A (en) | Canvas-based radar map generation method and device, storage medium and terminal | |
CN109189524A (en) | Image resource generation method and device | |
CN114693875A (en) | Point cloud visualization optimization method and system, electronic device and storage medium | |
CN111125283A (en) | Electronic map construction method and device, computer equipment and storage medium | |
CN107305134A (en) | The method and apparatus for showing the navigation way of predetermined shape on the electronic map | |
US20220027665A1 (en) | Systems, methods, and devices for image processing | |
CN108847120B (en) | Drawing method based on electronic fence map order thermodynamic diagram distribution | |
CN107958209B (en) | Illegal construction identification method and system and electronic equipment | |
CN103559726A (en) | Map color blending method and shader | |
Khalid et al. | Integration of cyber-physical systems technology with augmented reality in the pre-construction stage | |
CN112053440A (en) | Method for determining individualized model and communication device | |
JP6055758B2 (en) | Icon display program and icon display device | |
CN111553962A (en) | Chart display method, system and display equipment | |
US20130147801A1 (en) | Electronic apparatus, method for producing augmented reality image, and computer-readable recording medium | |
CN115272667B (en) | Farmland image segmentation model training method and device, electronic equipment and medium | |
JP2005055573A (en) | High-speed display processor | |
CN114092642B (en) | Three-dimensional house type model generation method, device and equipment | |
CN113627526B (en) | Vehicle identification recognition method and device, electronic equipment and medium | |
CN110991050B (en) | CAD (computer-aided design) image stacking method and related product | |
CN111062863B (en) | Method, device, equipment and storage medium for binding 3D model with longitude and latitude coordinates | |
US20180173686A1 (en) | System and method for displaying graphic-based web vector map | |
CN111143360B (en) | Road uplink and downlink identification method and device based on spatial index algorithm, storage medium and terminal | |
CN110069300A (en) | Vision original text generation method, device, medium and electronic equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190111 |