CN101441773B - Cartoon implementing method, system and mobile terminal - Google Patents
Cartoon implementing method, system and mobile terminal Download PDFInfo
- Publication number
- CN101441773B CN101441773B CN2008102175946A CN200810217594A CN101441773B CN 101441773 B CN101441773 B CN 101441773B CN 2008102175946 A CN2008102175946 A CN 2008102175946A CN 200810217594 A CN200810217594 A CN 200810217594A CN 101441773 B CN101441773 B CN 101441773B
- Authority
- CN
- China
- Prior art keywords
- picture
- animation
- user
- customization
- rgb value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Processing Or Creating Images (AREA)
Abstract
The invention is applicable to the field of multimedia and provides a method, a system and a mobile terminal for actualizing an animation, wherein the method comprises the following steps: snatching a picture with the same size to a customized picture selected by a user from background pictures according to a preset animation moving track; comparing each pixel of the customized picture selected by the user with a transparent color one by one, and combining the corresponding pixel of the snatched picture to obtain a composite picture; and using the obtained composite picture to restore the corresponding snatched picture in the background pictures. The invention achieves actualization of the animation by comparing each pixel of the customized picture selected by the user with the transparent color one by one, combining the corresponding pixel of the timely snatched picture according to the animation moving track to obtain the composite picture, and using the obtained composite picture to restore the corresponding snatched picture in the background pictures, and has the advantages of small usage of memory, good displaying effect and continuous display.
Description
Technical field
The invention belongs to the multimedia field, relate in particular to a kind of animation implementation method, system and portable terminal.
Background technology
Along with electronic product and multimedia technology development, people are more and more higher to the requirement of electronic product display interface.For example, the function of voice communication of mobile phone in wireless communication system is provided, its multimedia function also is that development is rapid, monochromatic display interface color screen finally from the beginning.Now, mobile phone also provides the standby interface of animation, to increase interest, the vividness of product.But, prior art all is to realize animation in application layer, need the computing of process algorithm could generate the customization picture, need to consume more cpu resource, take bigger internal memory, can provide hardware resources such as the CPU of use, internal memory generally all few and have mobile phone now, so be subjected to the hardware device restriction ratio bigger, and it is not good to have display effect, shows problems such as discontinuous.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of animation implementation method, is intended to solve existing animation implementation method and is subjected to that the hardware device restriction ratio is big, display effect is not good, shows discontinuous problem.
The embodiment of the invention is achieved in that a kind of animation implementation method, and described method comprises the steps:
Regularly from background picture, grasp the picture that equates with the customization picture size of user's selection according to default animation motion track; Described background picture and customization picture are bitmap file;
The customization picture of selecting according to the user obtains the animation data bitmap;
Judge one by one whether the rgb value of each pixel of animation data bitmap equals the rgb value of Transparent color correspondence; If equate, then the rgb value of synthetic data bitmap co-located pixel is got the rgb value that grasps data bitmap co-located pixel; If etc., then the rgb value of synthetic data bitmap co-located pixel is not got the rgb value of animation data bitmap co-located pixel;
Picture with corresponding extracting in the synthesising picture reduction background picture that obtains.
Another purpose of the embodiment of the invention is to provide a kind of animation to realize system, and described system comprises:
Placement unit is used for regularly grasping the picture that equates with the customization picture size of user's selection from background picture according to default animation motion track; Described background picture and customization picture are bitmap file;
Second data acquisition component is used for obtaining the animation data bitmap according to the customization picture that the user selects;
Determination component, whether the rgb value of each pixel of animation data bitmap that is used for judging that one by one described second data acquisition component obtains equals the rgb value of Transparent color correspondence;
Processing components is used for getting according to the rgb value that the judged result of described determination component will be synthesized a certain position of data bitmap pixel and grasps data bitmap co-located pixel rgb value or get the rgb value of animation data bitmap co-located pixel; And
Reduction unit, the picture of corresponding extracting in the synthesising picture that obtains with the described synthesis unit reduction background picture.
Another purpose of the embodiment of the invention is to provide a kind of and comprises that above-mentioned animation realizes the portable terminal of system.
In embodiments of the present invention, each pixel by customization picture that the user is selected compares with Transparent color one by one, and obtain synthesising picture in conjunction with the respective pixel of the picture that regularly grabs according to the animation motion track, picture with corresponding extracting in the synthesising picture reduction background picture that obtains, realized a kind of animation implementation method, committed memory is little, display effect is good, demonstration is continuous.
Description of drawings
Fig. 1 is the realization flow figure of the animation implementation method that provides of the embodiment of the invention;
Fig. 2 (1) is the customization picture that the user that provides of the embodiment of the invention selects;
Fig. 2 (2) is the synoptic diagram behind the capturing pictures in background picture that the embodiment of the invention provides;
Fig. 2 (3) is the synoptic diagram of the reduction rear backdrop picture that provides of the embodiment of the invention;
Fig. 3 is the structural drawing that the animation that provides of the embodiment of the invention is realized system.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In embodiments of the present invention, each pixel by customization picture that the user is selected compares with Transparent color one by one, and obtain synthesising picture in conjunction with the respective pixel of the picture that regularly grabs according to the animation motion track, with the picture of corresponding extracting in the synthesising picture reduction background picture that obtains, realized a kind of animation implementation method.
Fig. 1 shows the realization flow of the animation implementation method that the embodiment of the invention provides, and details are as follows:
In step S101, regularly from background picture, grasp the picture that equates with the customization picture size of user's selection according to default animation motion track;
In embodiments of the present invention, the customization picture bmp1 of background picture bmp0 and user selection is bitmap (Bitmap, BMP) file of 1 frame.According to default animation motion track regularly from background picture bmp0 during capturing pictures, the picture bmp2 of 1 frame is grasped in relevant position in the background picture bmp0 of 1 frame, and the customization picture bmp1's that the size of the picture bmp2 of extracting and user select is big or small consistent.When being 24*32 as the pixel of the customization picture bmp1 that selects as the user, then regularly to grasp pixel be the picture bmp2 of 24*32 to the relevant position from background picture bmp0 according to default cartoon track.
In step S102, each pixel of the customization picture that the user is selected compares with Transparent color one by one, and obtains synthesising picture in conjunction with the respective pixel of the picture that grabs;
In embodiments of the present invention, the size of customization picture bmp1 is big or small the same with the picture bmp2's of extracting, and the pixel of the synthesising picture bmp3 that obtains also is 24*32.The rgb value of each pixel of customization picture bmp1 is compared with the rgb value of Transparent color one by one, if the rgb value of a certain pixel of this customization picture bmp1 equals the rgb value of Transparent color, then the rgb value of synthesising picture bmp3 co-located pixel is got the rgb value of the picture bmp2 co-located pixel of extracting; If if the rgb value of a certain pixel of this customization picture bmp1 is not equal to the rgb value of Transparent color, then the rgb value of synthesising picture bmp3 co-located pixel is got the rgb value of customization picture bmp1 co-located pixel.
In step S103, with the picture of corresponding extracting in the synthesising picture reduction background picture that obtains.
Below with a concrete example, describe the animation implementation method that the embodiment of the invention provides in detail, but do not exceed with this example:
The customization picture bmp1 that the user selects is a butterfly shown in Fig. 2 (1).Behind the customization picture bmp1 that receives user's selection,, regularly in background picture bmp0, grasp the equal-sized picture bmp2 of customization picture bmp1 with user's selection according to default animation motion track.If according to default animation motion track, the a certain moment should move to the dot1 point of background picture bmp0, if this coordinate is (x, y), grasp 1 frame rectangular window picture bmp2 (pixel is 24*32) from the beginning of dot1 point along x, y direction of principal axis in background picture bmp0, the picture bmp2 of extracting is the rectangle shown in the black and white grid shade among Fig. 2 (2).
Wherein, the wide width_back=240 of background picture bmp0, high height_back=320, the size of the picture bmp2 of extracting is wide width_cartoon=24, high height_cartoon=32.In background picture bmp0, grasp from coordinate dot1 (x, y) to coordinate dot2 (x+width_cartoon, y+height_cartoon), the pixel of width_cartoon*height_cartoon altogether of this rectangular area, then, application layer is passed to Drive Layer by display () function with the picture bmp2 that grasps.The rgb value of each pixel that Drive Layer reads the picture bmp2 of extracting line by line generates 1 frame and grasps data bitmap.
File header (bitmap-file header), message bit pattern head (bitmap-information header) and the color table (color table) of the customization picture bmp1 that the user is selected remove, obtain bitmap array of bytes (Bitmap Data), be 1 frame animation data bitmap.
Then, judge the rgb value of the Transparent color the correspondence whether rgb value of 24*32 pixel of animation data bitmap correspondence equals to preset one by one, if equate, then the rgb value of synthetic data bitmap co-located pixel is got the rgb value that grasps data bitmap co-located pixel; If unequal, then synthetic data bitmap co-located pixel rgb value is got the rgb value of the animation data bitmap co-located pixel that is customized.Like this, just 2 framing bit diagram datas (promptly 1 frame grasps data bitmap and 1 frame animation data bitmap) are synthesized the synthetic data bitmap of 1 frame, this process also is to finish in Drive Layer.
To synthesize data bitmap coordinate dot1 (x in background picture bmp0, y) to coordinate dot2 (x+width_cartoon, y+height_cartoon) this rectangular area reduction, the synthetic data bitmap integral body that is about to obtain is copied to coordinate dot1 (x among the background picture bmp0, y) to coordinate dot2 (x+width_cartoon, y+height_cartoon) this rectangular area, this process is finished in Drive Layer, the background picture bmp0 that the reduction back shows is shown in Fig. 2 (3), and the butterfly that the user chooses is synthetic to be substituted among the background picture bmp0.Like this, just with among the background picture bmp0 from coordinate dot1 (x, y) picture that rises to the axial rectangular area of x, y of position replaces with the customization picture, as long as coordinate dot1 (x, y) the animation motion track according to user preset changes, and just can realize customizing the effect that the picture animation moves.
Wherein, Yu She animation motion track can be divided into:
1. straight line comprises from left to right, from right to left, from top to bottom, wait from top to bottom;
2. curve comprises circle, ellipse, S curve etc.;
3. disperse, for example, from the center to around etc.;
The convergence, for example, from around to the center;
5. at random.
In order to receive the customization picture that the user selects, as a preferred embodiment of the present invention, at step S101, before the step according to the default animation motion track picture that regularly extracting equates with the customization picture size of user's selection from background picture, also comprise step:
Receive the customization picture that the user selects.
For the ease of the user animation motion track is set as required, as a preferred embodiment of the present invention, at step S101, before the step according to the default animation motion track picture that regularly extracting equates with the customization picture size of user's selection from background picture, also comprise step:
Configuration information according to user's input is set the animation motion track.
Like this, the user just can be provided with the animation motion track as required in the corresponding setting interface.
Further, can Transparent color is unified, realize difficulty to simplify.This also needs the customization picture bmp1 background colour of bmp forms such as cartoon figure, animal is made as Transparent color (for example white) by picture process softwares such as photoshop earlier, and sets the size (for example 24*32) and the pixel format (for example RGB565) of picture.
The animation that Fig. 3 shows the embodiment of the invention to be provided is realized the structure of system, only shows the part relevant with the embodiment of the invention for convenience of explanation.
This system can be used for portable terminal, for example mobile phone, personal digital assistant (Personal Digital Assistant, PDA) etc., can be to run on the unit that software unit, hardware cell or software and hardware in these portable terminals combine, also can be used as independently, suspension member is integrated in these portable terminals or runs in the application system of these portable terminals, wherein:
The picture of corresponding extracting in the synthesising picture reduction background picture that reduction unit 303 usefulness synthesis units 302 obtain.
In embodiments of the present invention, placement unit 301 comprises the picture grabbing assembly 3011 and first data acquisition component 3012, wherein:
The picture that first data acquisition component 3012 grabs according to picture grabbing assembly 3011 obtains grasping data bitmap, and its embodiment repeats no more as mentioned above.
In embodiments of the present invention, synthesis unit 302 comprises second data acquisition component 3021, determination component 3022 and processing components 3023, wherein:
Second data acquisition component 3021 obtains the animation data bitmap according to the customization picture that the user selects.
The rgb value that processing components 3023 will be synthesized a certain position of data bitmap pixel according to the judged result of determination component 3022 is got extracting data bitmap co-located pixel rgb value or is got the rgb value of animation data bitmap co-located pixel, its embodiment repeats no more as mentioned above.
In order to receive the customization picture that the user selects, as a preferred embodiment of the present invention, animation realizes that system also comprises:
For the ease of the user animation motion track is set as required, as another preferred embodiment of the present invention, animation realizes that system also comprises:
In embodiments of the present invention, each pixel by customization picture that the user is selected compares with Transparent color one by one, and obtain synthesising picture in conjunction with the respective pixel of the picture that regularly grabs according to the animation motion track, picture with corresponding extracting in the synthesising picture reduction background picture that obtains, realized a kind of animation implementation method, committed memory is little, display effect is good, demonstration is continuous.
And, adopting this method, the customization picture of selecting according to the user, the animation motion track of setting are realized abundant animation effect, effectively solve problems such as existing mobile terminal standby picture is lively inadequately.
One of ordinary skill in the art will appreciate that, realize that all or part of step in the foregoing description method is to instruct relevant hardware to finish by program, described program can be in being stored in a computer read/write memory medium, described storage medium is as ROM/RAM, disk, CD etc.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.
Claims (7)
1. an animation implementation method is characterized in that, described method comprises the steps:
Regularly from background picture, grasp the picture that equates with the customization picture size of user's selection according to default animation motion track; Described background picture and customization picture are bitmap file;
The customization picture of selecting according to the user obtains the animation data bitmap;
Judge one by one whether the rgb value of each pixel of animation data bitmap equals the rgb value of Transparent color correspondence; If equate, then the rgb value of synthetic data bitmap co-located pixel is got the rgb value that grasps data bitmap co-located pixel; If etc., then the rgb value of synthetic data bitmap co-located pixel is not got the rgb value of animation data bitmap co-located pixel;
Picture with corresponding extracting in the synthesising picture reduction background picture that obtains.
2. the method for claim 1 is characterized in that, after described step according to the default animation motion track picture that regularly extracting equates with the customization picture size of user's selection from background picture, described method further comprises:
Obtain grasping data bitmap according to the picture that grabs.
3. as right 1 described method, it is characterized in that, before described step, further comprise according to the default animation motion track picture that regularly extracting equates with the customization picture size of user's selection from background picture:
Receive the customization picture that the user selects; Perhaps
Configuration information according to user's input is set the animation motion track.
4. an animation is realized system, it is characterized in that described system comprises:
Placement unit is used for regularly grasping the picture that equates with the customization picture size of user's selection from background picture according to default animation motion track; Described background picture and customization picture are bitmap file;
Second data acquisition component is used for obtaining the animation data bitmap according to the customization picture that the user selects;
Determination component, whether the rgb value of each pixel of animation data bitmap that is used for judging that one by one described second data acquisition component obtains equals the rgb value of Transparent color correspondence;
Processing components is used for getting according to the rgb value that the judged result of described determination component will be synthesized a certain position of data bitmap pixel and grasps data bitmap co-located pixel rgb value or get the rgb value of animation data bitmap co-located pixel; And
Reduction unit, the picture of corresponding extracting in the synthesising picture that obtains with the described synthesis unit reduction background picture.
5. as right 4 described systems, it is characterized in that described placement unit comprises:
The picture grabbing assembly is used for regularly grasping the picture that equates with the customization picture size of user's selection from background picture according to default animation motion track; And
First data acquisition component is used for obtaining grasping data bitmap according to the picture that described picture grabbing assembly grabs.
6. as right 4 described systems, it is characterized in that described system also comprises:
The picture acquiring unit is used to receive the customization picture that the user selects;
The unit is set, is used for setting the animation motion track according to the configuration information of user's input.
7. one kind comprises that the described animation of the arbitrary claim of claim 4 to 6 realizes the portable terminal of system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008102175946A CN101441773B (en) | 2008-11-11 | 2008-11-11 | Cartoon implementing method, system and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008102175946A CN101441773B (en) | 2008-11-11 | 2008-11-11 | Cartoon implementing method, system and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101441773A CN101441773A (en) | 2009-05-27 |
CN101441773B true CN101441773B (en) | 2011-09-14 |
Family
ID=40726192
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008102175946A Active CN101441773B (en) | 2008-11-11 | 2008-11-11 | Cartoon implementing method, system and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101441773B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101930367B (en) | 2010-08-25 | 2014-04-30 | 中兴通讯股份有限公司 | Implementation method of switching images and mobile terminal |
CN102221996A (en) * | 2011-05-20 | 2011-10-19 | 广州市久邦数码科技有限公司 | Implementation method for performing interaction between dynamic wallpaper and desktop component |
CN103971391A (en) * | 2013-02-01 | 2014-08-06 | 腾讯科技(深圳)有限公司 | Animation method and device |
CN104199841B (en) * | 2014-08-06 | 2018-01-02 | 武汉图歌信息技术有限责任公司 | A kind of picture generates animation and the video editing method synthesized with video segment splicing |
CN104363466B (en) * | 2014-11-04 | 2017-10-03 | 无锡天脉聚源传媒科技有限公司 | A kind of Picture Generation Method and device |
CN105719330B (en) * | 2014-12-05 | 2020-07-28 | 腾讯科技(北京)有限公司 | Animation curve generation method and device |
CN106327453B (en) * | 2015-06-30 | 2020-02-07 | 珠海豹趣科技有限公司 | Method for splicing picture resources and picture resource splicing device |
CN107644451B (en) * | 2016-07-20 | 2021-04-06 | 腾讯科技(深圳)有限公司 | Animation display method and device |
CN110033501B (en) * | 2018-01-10 | 2023-09-26 | 武汉斗鱼网络科技有限公司 | Animation realization method and electronic terminal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1279452A (en) * | 1999-07-05 | 2001-01-10 | 英业达股份有限公司 | Dynamic clip and aggregation method of images |
CN1362696A (en) * | 2000-12-28 | 2002-08-07 | 皇家菲利浦电子有限公司 | Image synthesis |
CN1369862A (en) * | 2001-02-15 | 2002-09-18 | 英业达股份有限公司 | Method and system for creating animation |
CN101206766A (en) * | 2006-12-21 | 2008-06-25 | 珠海金山软件股份有限公司 | Apparatus and method for transferring mutually cartoon track and optional pattern |
-
2008
- 2008-11-11 CN CN2008102175946A patent/CN101441773B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1279452A (en) * | 1999-07-05 | 2001-01-10 | 英业达股份有限公司 | Dynamic clip and aggregation method of images |
CN1362696A (en) * | 2000-12-28 | 2002-08-07 | 皇家菲利浦电子有限公司 | Image synthesis |
CN1369862A (en) * | 2001-02-15 | 2002-09-18 | 英业达股份有限公司 | Method and system for creating animation |
CN101206766A (en) * | 2006-12-21 | 2008-06-25 | 珠海金山软件股份有限公司 | Apparatus and method for transferring mutually cartoon track and optional pattern |
Also Published As
Publication number | Publication date |
---|---|
CN101441773A (en) | 2009-05-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101441773B (en) | Cartoon implementing method, system and mobile terminal | |
US10664718B1 (en) | Real-time adjustment of hybrid DNN style transfer networks | |
CN107092684B (en) | Image processing method and device, storage medium | |
WO2020078027A1 (en) | Image processing method, apparatus and device | |
WO2020078026A1 (en) | Image processing method and apparatus, and device | |
US20060181547A1 (en) | Method and system for image editing in a mobile multimedia processor | |
EP4171014A1 (en) | Photographing method, graphical interface and related apparatus | |
WO2017206761A1 (en) | Method and apparatus for displaying picture content in application, and storage medium | |
US20060182411A1 (en) | Architecture for an image editor used for editing images in a mobile communication device | |
CN103338235B (en) | On mobile phone, realize the method for dynamic wallpaper interactive mode, personalized creation | |
WO2021008427A1 (en) | Image synthesis method and apparatus, electronic device, and storage medium | |
CN103942048B (en) | A kind of method and device that speech volume animation is shown | |
EP1691368A2 (en) | An image editor with plug-in capability for editing images in a mobile communication device | |
WO2020155875A1 (en) | Display method for electronic device, graphic user interface and electronic device | |
CN113643186A (en) | Image enhancement method and electronic equipment | |
WO2022242487A1 (en) | Display method and related device | |
CN103312981A (en) | Synthetic multi-picture taking method and shooting device | |
CN105975168A (en) | OSD menu fading-in and fading-out method and device | |
CN109993817A (en) | A kind of implementation method and terminal of animation | |
CN1238785C (en) | Image displaying circuit and mobile electronic apparatus | |
CN1825934B (en) | Method and system for processing multimedia information | |
CN102546899A (en) | Cell phone and picture processing method of cell phone | |
CN103135973A (en) | Rendering method and device for graphic image in interface engine | |
CN111326118B (en) | Device and method for setting display parameters and computer readable storage medium | |
CN114222187A (en) | Video editing method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |