CN109918065A - Picture code editing method and device, computer equipment and storage medium - Google Patents
Picture code editing method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109918065A CN109918065A CN201910119138.6A CN201910119138A CN109918065A CN 109918065 A CN109918065 A CN 109918065A CN 201910119138 A CN201910119138 A CN 201910119138A CN 109918065 A CN109918065 A CN 109918065A
- Authority
- CN
- China
- Prior art keywords
- picture
- code
- picture code
- pixel
- segment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000004590 computer program Methods 0.000 claims description 33
- 230000015654 memory Effects 0.000 claims description 21
- 238000006243 chemical reaction Methods 0.000 claims description 8
- 238000004364 calculation method Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 9
- 238000012545 processing Methods 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 238000004040 coloring Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Landscapes
- Television Signal Processing For Recording (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention relates to a method and a device for editing picture codes, a computer device and a storage medium, wherein the method comprises the following steps: the method comprises the steps of converting a first picture code into a corresponding first picture, editing the first picture according to the editing operation of a user on the first picture to obtain a second picture, converting the second picture into a corresponding second picture code, and editing the first picture code according to the second picture code.
Description
Technical field
The present invention relates to technical field of image processing, edit methods, picture code more particularly to a kind of picture code
Editing device, computer equipment and computer readable storage medium.
Background technique
With the development of science and technology, various electronic equipments are widely applied to daily life and work is worked as
In, in order to improve the interactivity between user and electronic equipment, it will usually use various figures in the interactive interface of electronic equipment
Mark of the piece as various function keys shows that menu bar uses different pictures and makees by taking office software as an example, in office software
Such as highlighted, overstriking function key is identified to improve its identification, so that having between user and electronic equipment stronger for icon
It is interactive.
It is carried out however, needing to edit the picture that electronic equipment is shown the picture for such as needing menu bar to show in user
When modification, need to modify to the corresponding original image code of the picture.Traditional technology is often in editing picture code
Directly these picture codes are edited according to editor demand of the user to picture, to obtain matched new with user demand
Picture code, and these picture codes are usually hexadecimal number, are will lead in this way to the editing process of picture code very
It is cumbersome, and take long time, reduce the editorial efficiency of picture code.
Summary of the invention
Based on this, it is necessary to for the low technical problem of the editorial efficiency of traditional technology picture code, provide a kind of picture
The edit methods of code, the editing device of picture code, computer equipment and computer readable storage medium.
A kind of edit methods of picture code, comprising steps of
Corresponding first picture is converted by the first picture code;
First picture is edited to the edit operation of first picture according to user, obtains second picture;
Corresponding second picture code is converted by the second picture;
According to the first picture code described in the second picture Code Edit.
A kind of editing device of picture code, comprising:
First conversion module, for converting corresponding first picture for the first picture code;
First editor module is obtained for editing first picture to the edit operation of first picture according to user
To second picture;
Second conversion module, for converting corresponding second picture code for the second picture;
Second editor module is used for the first picture code according to the second picture Code Edit.
A kind of computer equipment can be run on a memory and on a processor including memory, processor and storage
Computer program, the processor realize following steps when executing the computer program:
Corresponding first picture is converted by the first picture code;
First picture is edited to the edit operation of first picture according to user, obtains second picture;
Corresponding second picture code is converted by the second picture;
According to the first picture code described in the second picture Code Edit.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
Following steps are realized when row:
Corresponding first picture is converted by the first picture code;
First picture is edited to the edit operation of first picture according to user, obtains second picture;
Corresponding second picture code is converted by the second picture;
According to the first picture code described in the second picture Code Edit.
Edit methods, device, computer equipment and the storage medium of above-mentioned picture code, the first picture code is converted to
Corresponding first picture edits the edit operation of first picture to the first picture according to user, obtains second picture,
Corresponding second picture code is converted by the second picture, the first picture code is compiled further according to the second picture code
Volume, allow the first picture code to be edited to be first converted to picture, then based on user to editor's demand of picture to the figure
Piece is edited, and edited picture is then converted to corresponding second picture code, finally complete based on second picture code
The editing and processing of pairs of second picture code, the mode of picture code is directly modified compared to traditional technology, first converts code
It for picture, and modifies to picture, is then converted to the mode of picture code, editor's effect of picture code can be greatly improved
Rate, and the displaying scheme of electronic equipment would generally be related to editing a large amount of display picture, and the program, which also helps, to be mentioned
The displaying scheme development efficiency of high electronic equipment.
Detailed description of the invention
Fig. 1 is the applied environment figure of the edit methods of picture code in one embodiment;
Fig. 2 is the flow diagram of the edit methods of picture code in one embodiment;
Fig. 3 is the schematic diagram of picture in one embodiment;
Fig. 4 is the schematic diagram of segment in one embodiment;
Fig. 5 is the structural block diagram of the editing device of picture code in one embodiment;
Fig. 6 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the present invention, not
For limiting the present invention.
It should be noted that term involved in the embodiment of the present invention " first second " be only be similar pair of difference
As not representing the particular sorted for object, it is possible to understand that ground, " first second " can be interchanged specific in the case where permission
Sequence or precedence.It should be understood that the object that " first second " is distinguished is interchangeable under appropriate circumstances, so as to retouch here
The embodiment of the present invention stated can be performed in other sequences than those illustrated or described herein.
The edit methods of picture code provided by the invention, can be applied in application environment as shown in Figure 1, and Fig. 1 is
The applied environment figure of the edit methods of picture code in one embodiment, wherein electronic equipment 100 has display area 110, can
To show menu bar 111 in the form of picture in the display area 110, which may include for identification function
Multiple pictures of key, the picture as indicated by arrow 111a " A " are a wherein picture for menu bar 111, which can be with
For identifying such as " overstriking " or " highlighted " function key, so that user, when clicking the function key, 100 pairs of phases of electronic equipment are inside the Pass
Hold and carries out " overstriking " or " highlighted " processing.In concrete application, user may need to electronic equipment 100 show picture into
Edlin, such as picture indicated by arrow 111a " A " is revised as picture " H ", then technical staff can be counted by such as personal
There is calculation machine etc. the computer equipment of data-handling capacity to turn the corresponding picture code as indicated by arrow 111b of picture " A "
Corresponding first picture is turned to, the first picture is edited in the edit operation of first picture further according to user, obtains
Then two pictures convert corresponding second picture code for the second picture, finally according to second picture Code Edit this
One picture code.
In one embodiment, a kind of edit methods of picture code are provided, are in one embodiment with reference to Fig. 2, Fig. 2
The flow diagram of the edit methods of picture code, this method can realize by computer equipments such as personal computers, the figure
The edit methods of piece code may comprise steps of:
The first picture code is converted corresponding first picture by step S101.
In this step, the first picture code refers to picture code to be edited, and carrying out editor to picture code can be pair
Original image code is modified.Wherein, picture code is usually to be made of some hexadecimal numbers, in picture code
Hexadecimal number is usually to arrange according to specific coded format, these hexadecimal numbers then carry the position of each pixel
Information and colouring information, so the first picture code can be converted to corresponding first picture by this step.As shown in Figure 1, this
Step can convert picture code shown in arrow 111b to corresponding first picture, i.e. picture " A " shown in arrow 111a,
And first picture is shown by the display screen of electronic equipment.
Step S102 edits the first picture to the edit operation of the first picture according to user, obtains second picture.
In this step, edit operation of the available user to the first picture, then according to the edit operation to the first figure
Piece carries out editing and processing, obtains second picture, which refers to the first picture after editing and processing.Wherein, user is to
The edit operation of one picture may include carrying out the operation such as restaining to pixel on the first picture of display.
Specifically, for picture indicated by the arrow 111a such as Fig. 1 " A " is revised as picture " H ", this step can be with
Picture " A " is shown in touch display screen, then obtains the volume to picture " A " that user inputs in touch display screen
Operation is collected, such as user first wipes " A " of display, then writes " H " again to get to after to picture " A " progress editing and processing
Picture " H ".
Second picture is converted corresponding second picture code by step S103.
This step is mainly that will carry out obtained second picture after editing and processing to the first picture to transform into corresponding the
Two picture codes, wherein by the transform mode that second picture is converted into second picture code be in step S101 by the first figure
The mode that piece is converted into the first picture code corresponds to each other, such as the first picture code is by some according to specific coded format
The composition of hexadecimal number made of arrangement, then when converting second picture code for second picture, it is also desirable to according to corresponding
Mode, convert second picture to according to hexadecimal number made of the specific coded format column, and since picture carries out
Editor, the specific value of the hexadecimal number of second picture code are usually not identical as the specific value of the first picture code
's.
Step S104, according to the first picture code of second picture Code Edit.
This step mainly edits the first picture code using second picture code, to complete according to user couple
The operation that editor's demand of picture edits the first picture code.
Optionally, the first picture code and second picture code can be compared, user is determined according to comparison result
To the content of edit of the first picture code;The first picture code is edited according to content of edit.
Wherein, the first picture code and second picture code are compared, can determine the first picture code and second
Difference between picture code, user can be specified to the editor of the first picture code by finding out these differences in second picture code
Content, such as user are actually only modified a few a numerical value in the first picture code, then can be in the first figure
It modifies in piece code to these data, the operation edited to the first picture code, this editing side can be completed
Formula can obtain the much information modified to picture code simultaneously, such as the picture code before picture code, modification after modifying
And the actual modification content of user, it is ensured that the information integrity of picture code is modified, so as in the future to the picture generation of modification
Code is quickly checked.
Second picture code can also be set as to edited first picture code of user.
This mode be actually directly using second picture code as edited first picture code of user, such as can
Shown so that second picture code is directly replaced the first picture code, saved to picture code modify when
Between, improve the editorial efficiency of picture code, be also beneficial to rapidly by the corresponding picture of edited second picture code into
Row is shown.
First picture code is converted to corresponding first picture, according to user couple by the edit methods of above-mentioned picture code
The first picture is edited in the edit operation of first picture, obtains second picture, is converted the second picture to corresponding
Second picture code edits the first picture code further according to the second picture code, so that the first picture to be edited
Code can first be converted to picture, then be edited based on editor demand of the user to picture to the picture, after then editing
Picture be converted to corresponding second picture code, finally completed based on second picture code to the Editorial Services of second picture code
Reason, the mode of picture code is directly modified compared to traditional technology, first converts picture for code, and modify to picture,
It is then converted to the mode of picture code, the editorial efficiency of picture code, and the displaying scheme of electronic equipment can be greatly improved
It would generally be related to editing a large amount of display picture, the program also advantageously improves the displaying scheme exploitation effect of electronic equipment
Rate.
In one embodiment, the step of converting corresponding first picture for the first picture code may include:
Step S201 obtains the first picture code.
This step mainly before carrying out editing and processing to the first picture code, obtains first picture code.
Step S202 obtains the encoded information of each pixel of the first picture according to the first picture code.
Wherein, picture is made of multiple pixels, and each pixel has color and the position in picture in picture
It sets, and pixel color and position in picture can be stored in an encoded form in corresponding picture code.So
This step can obtain the encoded information of each pixel corresponding with first picture code according to the first picture code, should
Encoded information refers to the information encoded to information such as position, the colors of each pixel of the first picture, usually with 16
The form of system number is stored in picture code, these hexadecimal numbers can be carried including each pixel in the first picture
In the information such as color, position.
Step S203 generates the first picture according to the encoded information of each pixel.
This step generates the first picture mainly after the encoded information for obtaining each pixel, according to the encoded information.
Specifically, the information such as color, position of each pixel in picture can be determined according to the encoded information of each pixel,
First picture can be generated according to these information.
The technical solution of the present embodiment effectively can convert corresponding first picture for the first picture code, by obtaining
The form of the encoded information of each pixel is taken, the information such as position, color of each pixel in picture can be obtained, thus
More acurrate corresponding picture effectively can be converted by picture code.
In one embodiment, further, the volume of each pixel of the first picture is obtained according to the first picture code
Code information the step of may include:
Step S301, extracted from the first picture code each segment of the first picture color coding and it is position encoded.
Wherein, the first picture can be divided into multiple segments, which is in picture with certain shape and big
Small region, the segment include multiple pixels of the first picture, and the shape size of each segment is usually consistent.With reference to figure
3, Fig. 3 for picture in one embodiment schematic diagram, picture 300 may include multiple rectangular segments, such as the first segment 310, the
Two segments 320 etc., these segments can be spliced and combined by certain coding mode as picture 300.
This step can extract the encoded information of each segment of the first picture from the first picture code, including each
The color coding of segment and position encoded, color coding is mainly used for segment and compiles to the color of each pixel of its inside
Code, the position encoded segment that is mainly used for encode the position of each pixel of its inside, and are compiled according to the color of segment
Code and the position encoded pattern that can be determined the segment and be particularly shown.
Step S302, according to each pixel in the color of each segment coding and the position encoded each segment of acquisition
Encoded information.
This step is mainly according to the color of segment coding and the position encoded coding for obtaining each pixel in the segment
Information, is the schematic diagram of segment in one embodiment with reference to Fig. 4, Fig. 4, which is segment 310 shown in Fig. 3, segment
310 have multiple pixel columns, such as the first pixel column 311, the second pixel column 312, and each pixel column may include multiple pixels
Point, such as the first pixel 311a in the first pixel column 311.Since the color coding of segment carries this with position encoded respectively
The colouring information and location information of each pixel of segment, thus according to the color of each segment coding and it is position encoded can be with
The encoded information of each pixel in each segment is obtained, which generally includes face of each pixel in picture
Color and position.
Step S303 obtains each pixel of the first picture according to the encoded information of each pixel in each segment
Encoded information.
This step is according to each pixel of available first picture of encoded information of each pixel in each segment
The encoded information of point.
The present embodiment can obtain the coding letter of picture pixels point as unit of segment in such a way that multitask is performed simultaneously
Breath, on the one hand can adapt to the editing process of the picture code encoded as unit of segment, on the other hand can also avoid
The encoded information for successively extracting pixel one by one causes the defect of low efficiency, improves the effect for obtaining the encoded information of pixel
Rate.
In one embodiment, further, the step of generating the first picture according to the encoded information of each pixel can
To include:
Step S401 determines face of each pixel in corresponding segment according to the encoded information of each pixel respectively
Color and position.
Wherein, the encoded information of each pixel can by the color of each segment encode and it is position encoded into
Row acquires, and the color of segment coding and the position encoded color for carrying each pixel in the segment and position,
This step can determine color and position of each pixel in corresponding segment respectively according to the encoded information of each pixel.
Step S402, according to color and position generation each segment of each pixel in corresponding segment.
Wherein, each figure of available first picture of color and position according to each pixel in corresponding segment
Block.
Step S403 splices each segment, obtains the first picture.
This step is mainly that each segment of the first picture is spliced to obtain the first picture.Wherein, between each segment
With certain relative positional relationship, and these positional relationships can be determined by segment index value, and segment index value is
To the value that arrangement position of each segment in picture is encoded, which be can recorde in corresponding picture code
In the middle.
In one embodiment, the segment index value that each segment can be determined according to the first picture code, according to the figure
Block index value splices each segment, obtains the first picture.
The present embodiment can obtain the segment index value of each segment from the first picture code, according to the segment index value
It can determine relative position of each segment in the first picture, then each segment is spliced depending on the relative position,
To obtain the first picture, this mode for obtaining the first picture rapidly can splice segment after obtaining multiple segments
As the first picture, also can be avoided while improving picture transformation efficiency influences user to picture because of segment composition error
Edit operation the problem of.
In one embodiment, the step of converting corresponding second picture code for second picture may include:
Step S501 determines color and the position of each pixel in second picture.
This step obtains color and the position of each pixel in second picture mainly after obtaining second picture.
Step S502 obtains the encoded information of each pixel of the first picture according to the first picture code.
Encoded information of this step according to each pixel of available first picture of the first picture code, coding letter
Breath refers to the information encoded to each pixel of the first picture, can define each of the first picture according to the encoded information
How a pixel encodes, and is encoded for example, by using the data of which kind of format.
Step S503, according to the color of each pixel in encoded information and second picture and position by second picture
It is converted into corresponding second picture code.
Wherein, each pixel to the first picture can be determined according to the encoded information of each pixel of the first picture
Coding mode, such as encoded with each pixel of the hexadecimal coding mode to the first picture, then this step can
The color of each pixel in second picture and position to be carried out with hexadecimal coding mode according to the encoded information
Coding, obtains second picture code, which includes multiple hexadecimal numbers, and due to editor's need according to user
Ask and the first picture edited, in second picture code in the numerical value of these hexadecimal numbers and the first picture code ten
Senary number is different.
The technical solution of the present embodiment can convert the corresponding form of the first picture for second according to the first picture code
Picture is converted into second picture code, so that the second picture code can be used in modifying to the first picture code, and
According to the key feature of pixel such as color and position, second picture quickly and accurately can be reduced to corresponding second picture
Code is conducive to accurately edit the first picture code based on the second picture code.
In one embodiment, a kind of editing device of picture code is provided, is in one embodiment with reference to Fig. 5, Fig. 5
The editing device of the structural block diagram of the editing device of picture code, the picture code may include:
First conversion module 101, for converting corresponding first picture for the first picture code;
First editor module 102 obtains second for editing the first picture to the edit operation of the first picture according to user
Picture;
Second conversion module 103, for converting corresponding second picture code for second picture;
Second editor module 104, for according to the first picture code of second picture Code Edit.
In one embodiment, the second conversion module 103 may include:
Code obtaining unit, for obtaining the first picture code;
Information acquisition unit, the encoded information of each pixel for obtaining the first picture according to the first picture code;
Picture generation unit, for generating the first picture according to the encoded information of each pixel.
In one embodiment, information acquisition unit is further used for:
Extracted from the first picture code each segment of the first picture color coding and it is position encoded;According to each figure
The color coding of block and the position encoded encoded information for obtaining each pixel in each segment;According to each in each segment
The encoded information of a pixel obtains the encoded information of each pixel of the first picture.
In one embodiment, picture generation unit is further used for:
Color and position of each pixel in corresponding segment are determined respectively according to the encoded information of each pixel;
According to color and position generation each segment of each pixel in corresponding segment;Each segment is spliced, is obtained
First picture.
In one embodiment, picture generation unit is further used for:
The segment index value of each segment is determined according to the first picture code;According to the segment index value by each segment into
Row splicing, obtains the first picture.
In one embodiment, the second conversion module 103 is further used for:
Determine color and the position of each pixel in second picture;The first picture is obtained according to the first picture code
The encoded information of each pixel;According to the color of each pixel in encoded information and second picture and position by second
Picture is converted into corresponding second picture code.
In one embodiment, the second editor module 104 can be further used for:
First picture code and second picture code are compared, determine user to the first picture generation according to comparison result
The content of edit of code;The first picture code is edited according to content of edit.
In one embodiment, the second editor module 104 can also be further used for:
Second picture code is set as edited first picture code of user.
The editing device of picture code of the invention and the edit methods of picture code of the invention correspond, about figure
The specific of the editing device of piece code limits the restriction that may refer to the edit methods above for picture code, in above-mentioned figure
Technical characteristic and its advantages that the embodiment of the edit methods of piece code illustrates are suitable for the editing device of picture code
Embodiment in, details are not described herein.Modules in the editing device of above-mentioned picture code can be fully or partially through soft
Part, hardware and combinations thereof are realized.Above-mentioned each module can be embedded in the form of hardware or independently of the processing in computer equipment
It in device, can also be stored in a software form in the memory in computer equipment, in order to which processor calls execution above each
The corresponding operation of a module.
In one embodiment, a kind of computer equipment is provided, which can be personal computer etc. eventually
End, internal structure chart can using as shown in fig. 6, Fig. 6 as the internal structure chart of computer equipment in one embodiment.The computer
Equipment includes processor, memory, network interface, display screen and the input unit connected by system bus.Wherein, the calculating
The processor of machine equipment is for providing calculating and control ability.The memory of the computer equipment includes that non-volatile memories are situated between
Matter, built-in storage.The non-volatile memory medium is stored with operating system and computer program.The built-in storage is non-volatile
The operation of operating system and computer program in storage medium provides environment.The network interface of the computer equipment be used for it is outer
The terminal in portion passes through network connection communication.A kind of editing side of picture code is realized when the computer program is executed by processor
Method.The display screen of the computer equipment can be liquid crystal display or electric ink display screen, the input of the computer equipment
Device can be the touch layer covered on display screen, be also possible to the key being arranged on computer equipment shell, trace ball or touching
Plate is controlled, can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Fig. 6, only part relevant to the present invention program is tied
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to the present invention program, specific computer equipment
It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory
And the computer program that can be run on a processor, processor perform the steps of when executing computer program
Corresponding first picture is converted by the first picture code;According to user to the edit operation of the first picture editor the
One picture, obtains second picture;Corresponding second picture code is converted by second picture;According to second picture Code Edit
One picture code.
In one embodiment, it is also performed the steps of when processor executes computer program
First picture code and second picture code are compared, determine user to the first picture generation according to comparison result
The content of edit of code;The first picture code is edited according to content of edit.
In one embodiment, it is also performed the steps of when processor executes computer program
Second picture code is set as edited first picture code of user.
In one embodiment, it is also performed the steps of when processor executes computer program
Obtain the first picture code;The encoded information of each pixel of the first picture is obtained according to the first picture code;
The first picture is generated according to the encoded information of each pixel.
In one embodiment, it is also performed the steps of when processor executes computer program
Extracted from the first picture code each segment of the first picture color coding and it is position encoded;According to each figure
The color coding of block and the position encoded encoded information for obtaining each pixel in each segment;According to each in each segment
The encoded information of a pixel obtains the encoded information of each pixel of the first picture.
In one embodiment, it is also performed the steps of when processor executes computer program
Color and position of each pixel in corresponding segment are determined respectively according to the encoded information of each pixel;
According to color and position generation each segment of each pixel in corresponding segment;Each segment is spliced, is obtained
First picture.
In one embodiment, it is also performed the steps of when processor executes computer program
The segment index value that each segment is determined according to the first picture code, according to the segment index value by each segment into
Row splicing, obtains the first picture.
In one embodiment, it is also performed the steps of when processor executes computer program
Determine color and the position of each pixel in second picture;The first picture is obtained according to the first picture code
The encoded information of each pixel;According to the color of each pixel in encoded information and second picture and position by second
Picture is converted into corresponding second picture code.
Above-mentioned computer equipment, by the computer program run on the processor, so that the first picture to be edited
Code can first be converted to picture, then be edited based on editor demand of the user to picture to the picture, after then editing
Picture be converted to corresponding second picture code, finally completed based on second picture code to the Editorial Services of second picture code
Reason, the mode of picture code is directly modified compared to traditional technology, first converts picture for code, and modify to picture,
It is then converted to the mode of picture code, the editorial efficiency of picture code, and the displaying scheme of electronic equipment can be greatly improved
It would generally be related to editing a large amount of display picture, the program also advantageously improves the displaying scheme exploitation effect of electronic equipment
Rate.
Those of ordinary skill in the art will appreciate that realizing the editing side of picture code described in as above any one embodiment
All or part of the process in method is relevant hardware can be instructed to complete by computer program, the computer
Program can be stored in a non-volatile computer read/write memory medium, and the computer program is when being executed, it may include as above
State the process of the embodiment of each method.Wherein, to memory, storage, number used in each embodiment provided by the present invention
According to any reference of library or other media, non-volatile and/or volatile memory may each comprise.Nonvolatile memory can wrap
Include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM
(EEPROM) or flash memory.Volatile memory may include random access memory (RAM) or external cache.Make
To illustrate rather than limit to, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram
(SDRAM), double data rate sdram (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM
(SLDRAM), memory bus (Rambus) directly RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and
Memory bus dynamic ram (RDRAM) etc..
Accordingly, a kind of computer readable storage medium is provided in one embodiment, is stored thereon with computer program,
It is performed the steps of when computer program is executed by processor
Corresponding first picture is converted by the first picture code;According to user to the edit operation of the first picture editor the
One picture, obtains second picture;Corresponding second picture code is converted by second picture;According to second picture Code Edit
One picture code.
In one embodiment, it is also performed the steps of when computer program is executed by processor
First picture code and second picture code are compared, determine user to the first picture generation according to comparison result
The content of edit of code;The first picture code is edited according to content of edit.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Second picture code is set as edited first picture code of user.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Obtain the first picture code;The encoded information of each pixel of the first picture is obtained according to the first picture code;
The first picture is generated according to the encoded information of each pixel.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Extracted from the first picture code each segment of the first picture color coding and it is position encoded;According to each figure
The color coding of block and the position encoded encoded information for obtaining each pixel in each segment;According to each in each segment
The encoded information of a pixel obtains the encoded information of each pixel of the first picture.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Color and position of each pixel in corresponding segment are determined respectively according to the encoded information of each pixel;
According to color and position generation each segment of each pixel in corresponding segment;Each segment is spliced, is obtained
First picture.
In one embodiment, it is also performed the steps of when computer program is executed by processor
The segment index value that each segment is determined according to the first picture code, according to the segment index value by each segment into
Row splicing, obtains the first picture.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Determine color and the position of each pixel in second picture;The first picture is obtained according to the first picture code
The encoded information of each pixel;According to the color of each pixel in encoded information and second picture and position by second
Picture is converted into corresponding second picture code.
Above-mentioned computer readable storage medium, by the computer program that it is stored, so that the first picture generation to be edited
Code can first be converted to picture, then be edited based on editor demand of the user to picture to the picture, then will be edited
Picture is converted to corresponding second picture code, and the Editorial Services to second picture code is finally completed based on second picture code
Reason, the mode of picture code is directly modified compared to traditional technology, first converts picture for code, and modify to picture,
It is then converted to the mode of picture code, the editorial efficiency of picture code, and the displaying scheme of electronic equipment can be greatly improved
It would generally be related to editing a large amount of display picture, the program also advantageously improves the displaying scheme exploitation effect of electronic equipment
Rate.
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention
Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (10)
1. a kind of edit methods of picture code, which is characterized in that comprising steps of
Corresponding first picture is converted by the first picture code;
First picture is edited to the edit operation of first picture according to user, obtains second picture;
Corresponding second picture code is converted by the second picture;
According to the first picture code described in the second picture Code Edit.
2. the edit methods of picture code according to claim 1, which is characterized in that described to convert the first picture code
Include: for the step of corresponding first picture
Obtain first picture code;
The encoded information of each pixel of first picture is obtained according to first picture code;
First picture is generated according to the encoded information of each pixel.
3. the edit methods of picture code according to claim 2, which is characterized in that described according to the first picture generation
Code obtains the step of encoded information of each pixel of first picture and includes:
Extracted from first picture code each segment of first picture color coding and it is position encoded;Wherein,
The segment includes multiple pixels;
According to the color of each segment coding and the position encoded coding for obtaining each pixel in each segment
Information;
Each pixel of first picture is obtained according to the encoded information of each pixel in each segment
Encoded information.
4. the edit methods of picture code according to claim 3, which is characterized in that described according to each pixel
Encoded information generate first picture the step of include:
Face of each pixel in the corresponding segment is determined respectively according to the encoded information of each pixel
Color and position;
According to color and the position generation each segment of each pixel in the corresponding segment;
Each segment is spliced, first picture is obtained.
5. the edit methods of picture code according to claim 4, which is characterized in that described to carry out each segment
Splicing, the step of obtaining first picture include:
The segment index value of each segment is determined according to first picture code;
Each segment is spliced according to the segment index value, obtains first picture.
6. the edit methods of picture code according to claim 1, which is characterized in that described to convert the second picture
Include: for the step of corresponding second picture code
Determine color and the position of each pixel in the second picture;
The encoded information of each pixel of first picture is obtained according to first picture code;
According to the color of each pixel in the encoded information and the second picture and position by the second picture
It is converted into the corresponding second picture code.
7. the edit methods of picture code according to any one of claims 1 to 6, which is characterized in that
The step of first picture code according to the second picture Code Edit includes:
First picture code and second picture code are compared, determine user to first figure according to comparison result
The content of edit of piece code;
First picture code is edited according to the content of edit;
Or
The step of first picture code according to the second picture Code Edit includes:
The second picture code is set as edited first picture code of user.
8. a kind of editing device of picture code characterized by comprising
First conversion module, for converting corresponding first picture for the first picture code;
First editor module obtains for editing first picture to the edit operation of first picture according to user
Two pictures;
Second conversion module, for converting corresponding second picture code for the second picture;
Second editor module is used for the first picture code according to the second picture Code Edit.
9. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor
Calculation machine program, which is characterized in that the processor is realized described in any one of claim 1 to 7 when executing the computer program
Picture code edit methods the step of.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of edit methods of the described in any item picture codes of claim 1 to 7 are realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910119138.6A CN109918065B (en) | 2019-02-18 | 2019-02-18 | Picture code editing method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910119138.6A CN109918065B (en) | 2019-02-18 | 2019-02-18 | Picture code editing method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109918065A true CN109918065A (en) | 2019-06-21 |
CN109918065B CN109918065B (en) | 2022-05-17 |
Family
ID=66961639
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910119138.6A Active CN109918065B (en) | 2019-02-18 | 2019-02-18 | Picture code editing method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109918065B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020097272A1 (en) * | 2001-01-24 | 2002-07-25 | Mitsumasa Tanaka | Image editing apparatus and image editing method |
CN101233542A (en) * | 2005-05-27 | 2008-07-30 | 艾利森电话股份有限公司 | Weight based image processing |
CN103761079A (en) * | 2013-12-12 | 2014-04-30 | 北京奇虎科技有限公司 | Method and device for automatically graying page |
CN109086040A (en) * | 2018-06-27 | 2018-12-25 | 珠海宏桥高科技有限公司 | A kind of method and system quickly generating html code |
-
2019
- 2019-02-18 CN CN201910119138.6A patent/CN109918065B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020097272A1 (en) * | 2001-01-24 | 2002-07-25 | Mitsumasa Tanaka | Image editing apparatus and image editing method |
CN101233542A (en) * | 2005-05-27 | 2008-07-30 | 艾利森电话股份有限公司 | Weight based image processing |
CN103761079A (en) * | 2013-12-12 | 2014-04-30 | 北京奇虎科技有限公司 | Method and device for automatically graying page |
CN109086040A (en) * | 2018-06-27 | 2018-12-25 | 珠海宏桥高科技有限公司 | A kind of method and system quickly generating html code |
Also Published As
Publication number | Publication date |
---|---|
CN109918065B (en) | 2022-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20060085132A1 (en) | Method and system to reduce false positives within an automated software-testing environment | |
KR101890831B1 (en) | Method for Providing E-Book Service and Computer Program Therefore | |
CN101676868B (en) | Image processing apparatus and image processing method | |
CN105630459A (en) | Method for converting PPT document to HTML page | |
CN108255566B (en) | Data entry optimization processing method and device, computer equipment and storage medium | |
CN110362542A (en) | Nuclear power station document No. method, apparatus, computer equipment and storage medium | |
CN110012358B (en) | Examination information processing method and device | |
JP2008293486A (en) | Source code analysis device, analysis program, and analysis method | |
CN114818618B (en) | Document editing method and system based on signature encryption and medium | |
WO2010139595A1 (en) | Platform agnostic screen capture tool | |
CN103246830A (en) | Encrypting processing method, encrypting processing device, deciphering processing method and deciphering processing device of client side scripting | |
CN111399831A (en) | Page display method and device, storage medium and electronic device | |
CN113283228A (en) | Document generation method and device, electronic equipment and storage medium | |
CN111476006B (en) | PDF file online annotation method, device, equipment and readable storage medium | |
CN109976683A (en) | Method of printing, device, equipment and the storage medium of data | |
CN109918065A (en) | Picture code editing method and device, computer equipment and storage medium | |
CN113778405A (en) | Cross-platform APP construction method, device, system and medium | |
CN109657671A (en) | Nameplate character recognition method and device, computer equipment and storage medium | |
EP3879815A1 (en) | Video synthesis method and apparatus, computer device and readable storage medium | |
JP2005309593A (en) | Program preparation device and program preparation method | |
CN110018958A (en) | Aacode defect scan method, device, computer equipment and storage medium | |
CN109101429A (en) | A kind of method and device of the browser page debugging of set-top box | |
CN109743635A (en) | Comment on answering method, device, equipment and storage medium | |
US11379282B2 (en) | Recording medium, recording system, recording device, analysis device, and recording method | |
CN113822980A (en) | Method and device for removing image black edge, electronic equipment and storage medium |
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 |