CN102147923A - Method for displaying animated image in masking way - Google Patents

Method for displaying animated image in masking way Download PDF

Info

Publication number
CN102147923A
CN102147923A CN 201010551687 CN201010551687A CN102147923A CN 102147923 A CN102147923 A CN 102147923A CN 201010551687 CN201010551687 CN 201010551687 CN 201010551687 A CN201010551687 A CN 201010551687A CN 102147923 A CN102147923 A CN 102147923A
Authority
CN
China
Prior art keywords
image
picture
area
web browser
masking
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
Application number
CN 201010551687
Other languages
Chinese (zh)
Other versions
CN102147923B (en
Inventor
李新全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN RUIDE NETWORK TECHNOLOGY CO., LTD.
Original Assignee
李新全
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 李新全 filed Critical 李新全
Priority to CN 201010551687 priority Critical patent/CN102147923B/en
Publication of CN102147923A publication Critical patent/CN102147923A/en
Application granted granted Critical
Publication of CN102147923B publication Critical patent/CN102147923B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)
  • Display Devices Of Pinball Game Machines (AREA)

Abstract

The invention provides a method for displaying an animated image in a masking way. The method comprises the following steps: dividing the space of a background picture to be displayed into uniform regions, marking the regions required to display a masking effect, and calculating whether an image (comprising people, animals, scenery or the like ) is overlapped with a masking region when the image moves. By setting a picture Alpha rendering and non-rendering mode to achieve the masking display effect, the method accelerates the processing procedure of the computer, facilitates web animation design or web game design, solves the technical problem, and provides a smooth displaying effect for a user.

Description

A kind of animated image block display packing
Technical field
The present patent application relates to the method that a kind of animated image blocks demonstration, and especially a kind of animated image based on the WEB browser blocks display packing.
Technical background
Common web displaying picture can only show a pictures or show the subregion of this picture, can't reach the display effect of Pixel-level.Therefore the conventional web image way of blocking demonstration adopts the way of picture layering stack, reaches image and passes display effect when blocking object.But this display packing has caused needs the picture number of demonstration many, and stack shows that the computing of layering is complicated, blocks complexity is set, and moves various drawbacks such as not smooth.
Therefore, for the WEB browser client when browsing animation or carrying out web game, need a kind of efficient, quick, simple image that can on browser, move to block display packing, thereby satisfy user's demand, and improve the convenient of web animation design and web game design.
Summary of the invention
The present invention promptly is at above shortcomings part in the animated image browser technology at present, provide a kind of WEB browser animated image to block the method for demonstration, be intended to solve that webpage can not block Presentation Function for the user provides the animated image of efficient smoothness in the prior art, can't satisfy the needs of problems of user the animation display of webpage.
Specifically, the described a kind of animated image of the present patent application block display packing, it is characterized in that: described display packing may further comprise the steps:
1. the background picture precision on request that will need to show is divided into the unified grid of size, and rectangular coordinate system is set up in a zone on each grid representative picture on whole background picture, and the corresponding unique coordinate of each point (x, y);
2. the background area that need be shown as occlusion effect when image moves to this zone is put signs on, and be output into the control script institute energy recognition data form of WEB browser;
3. the picture region size of the required demonstration of computed image, and be output into the control script institute of WEB browser can the recognition data form;
4.WEB browser is presented at background picture the bottom of image graphic;
5. when WEB browser control script moves image, add epigraph by coordinate x, the y that moves and carry out overlapping judgement by step 2 and 3 data that produced, if overlapping then key diagram looks like to enter the blocked area, otherwise for not in the blocked area;
6. when image enters the blocked area, by browser script control image graphic display mode is that Alpha plays up, the degree of mixing of Alpha can be provided with according to the occlusion area on the background picture, reaches the display effect that enters the interior of articles that is blocked thereby produce translucent display effect;
7. when image is not in occlusion area, be set to non-Alpha render mode, produce normal image graphic display effect by browser script control image graphic display mode.
The described a kind of animated image of the present patent application block display packing, by being drawn, the background picture space that shows is divided into zone of the same size, the zone note that needs is shown occlusion effect goes up mark, it is whether overlapping when computed image (comprising personage or animal, landscape etc.) is mobile with the blocked area, play up with non-render mode and reach the effect of blocking demonstration by picture Alpha is set, thereby accelerated the speed of Computer Processing, reached the convenient of web animation design or web game design, solve technical matters, satisfied the display effect of user's smoothness.
Description of drawings
Fig. 1 is that blocking of the described a kind of animated image of the present patent application cut apart the area schematic that background shows in the display packing;
Fig. 2 is blocking of the described a kind of animated image of the present patent application enters occlusion area in the display packing a mark synoptic diagram;
Fig. 3 is the demonstration synoptic diagram that adopts when image enters in the occlusion area in the display packing under the Alpha render mode that blocks of the described a kind of animated image of the present patent application;
Fig. 4 be the described a kind of animated image of the present patent application block in the display packing the not synoptic diagram that normally Shows Picture in occlusion area of image.
Embodiment
Below in conjunction with accompanying drawing the display packing of blocking of the described a kind of animated image of the present patent application is carried out concrete description; purpose is better to understand the described technology contents of the present patent application for the public; rather than to the restriction of described content; in fact, corresponding change of making in not violating spirit of the present invention and replacement are all within the claimed technical scheme of the present patent application.
Before using the described display packing of the present patent application, a background picture (gate tower) and an image (animated character) picture that needs demonstration has been arranged, this personage's picture has transparent region, the present patent application is set forth is to pass the display effect of blocking that penetrates that is produced when blocking object as the personage, and how not comprising, display image animation and image can move the zone that arrives.
The described a kind of animated image of the present patent application block display packing, specifically comprise following step:
1. background picture (gate tower) precision on request that needs are shown is drawn the pixel that is divided into some sizes (for example 16 * 16) zone to picture, as shown in Figure 1;
2. the subregion on 3 doors in the background picture and the corner, house is labeled as occlusion area (zone shown in the figure bend), as shown in Figure 2, and is output into the x that the control script of WEB browser can discern and the array data of y coordinate;
3. the picture region size of the required demonstration of computed image as the frame (promptly carrying out the zone of Alpha render mode) around the personage in Fig. 3 and 4, and is output into the data of the height and width that the control script of WEB browser can discern;
4.WEB the browser display background picture is at the bottom of image graphic;
5. when WEB browser control script moves image, add epigraph by the x that moves and y coordinate and carry out overlapping judgement by the data that the 2nd step and the 3rd step are produced, if overlapping then key diagram looks like to enter the blocked area, otherwise for not in the blocked area;
6. when image enters the blocked area, be that Alpha plays up by browser script control image graphic display mode, the degree of mixing of Alpha is 30%, reaches the display effect that enters the interior of articles that is blocked thereby produce translucent display effect, as Fig. 3;
7. when image is not in occlusion area, be set to non-Alpha render mode, produce normal image graphic display effect, as Fig. 4 by browser script control image graphic display mode;
8. the moving coordinate by computed image reaches the display effect of passing between image animation and the shelter.
In fact,, background can be divided into the different zone of pixel size, adopt the different Alpha render mode of degree of mixing according to the needs of different scenes and background, draw transparency different block display effect.
The described animated image of the present patent application block display packing, on browser operation efficient, fast, simple, operation is smooth, has improved the convenient of web animation design and web game design.

Claims (1)

  1. An animated image block display packing, it is characterized in that: described display packing may further comprise the steps:
    1) the background picture precision on request that will need to show is divided into the unified grid of size, and rectangular coordinate system is set up in a zone on each grid representative picture on whole background picture, and the corresponding unique coordinate of each point (x, y);
    2) background area that need be shown as occlusion effect when moving to this zone when image puts signs on, and be output into the control script institute of WEB browser can the recognition data form;
    3) the picture region size of the required demonstration of computed image, and be output into the control script institute of WEB browser can the recognition data form;
    4) the WEB browser is presented at background picture the bottom of image graphic;
    5) when WEB browser control script moves image, add epigraph by coordinate x, the y that moves and carry out overlapping judgement by step 2 and 3 data that produced, if overlapping then key diagram looks like to enter the blocked area, otherwise for not in the blocked area;
    6) when image enters the blocked area, by browser script control image graphic display mode is that Alpha plays up, the degree of mixing of Alpha can be provided with according to the occlusion area on the background picture, reaches the display effect that enters the interior of articles that is blocked thereby produce translucent display effect;
    7) when image is not in occlusion area, be set to non-Alpha render mode by browser script control image graphic display mode, produce normal image graphic display effect.
CN 201010551687 2010-11-19 2010-11-19 Method for displaying animated image in masking way Active CN102147923B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010551687 CN102147923B (en) 2010-11-19 2010-11-19 Method for displaying animated image in masking way

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010551687 CN102147923B (en) 2010-11-19 2010-11-19 Method for displaying animated image in masking way

Publications (2)

Publication Number Publication Date
CN102147923A true CN102147923A (en) 2011-08-10
CN102147923B CN102147923B (en) 2012-12-12

Family

ID=44422172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010551687 Active CN102147923B (en) 2010-11-19 2010-11-19 Method for displaying animated image in masking way

Country Status (1)

Country Link
CN (1) CN102147923B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662958A (en) * 2012-03-06 2012-09-12 苏州阔地网络科技有限公司 Page segmentation display method
WO2013097163A1 (en) * 2011-12-30 2013-07-04 Intel Corporation Selective hardware acceleration in video playback systems
CN103679793A (en) * 2013-12-31 2014-03-26 广州博冠信息科技有限公司 Rendering method and equipment
CN105126343A (en) * 2015-08-27 2015-12-09 网易(杭州)网络有限公司 2D game mask display method and device
CN109936704A (en) * 2017-12-18 2019-06-25 姜鹏飞 A kind of image data transparent effect processing method and processing device
CN113225484A (en) * 2020-12-21 2021-08-06 山西方天圣华数字科技有限公司 Method and device for rapidly acquiring high-definition picture shielding non-target foreground

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2465274Y (en) * 2001-01-16 2001-12-12 何林青 Multi-picture image dot matrix obscuring grid
CN101539939A (en) * 2009-04-30 2009-09-23 北京水晶石数字科技有限公司 Method for fast display of vast images
CN101551901A (en) * 2009-05-25 2009-10-07 中国人民解放军国防科学技术大学 Method for compensating and enhancing dynamic shielded image in real time

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2465274Y (en) * 2001-01-16 2001-12-12 何林青 Multi-picture image dot matrix obscuring grid
CN101539939A (en) * 2009-04-30 2009-09-23 北京水晶石数字科技有限公司 Method for fast display of vast images
CN101551901A (en) * 2009-05-25 2009-10-07 中国人民解放军国防科学技术大学 Method for compensating and enhancing dynamic shielded image in real time

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013097163A1 (en) * 2011-12-30 2013-07-04 Intel Corporation Selective hardware acceleration in video playback systems
TWI479332B (en) * 2011-12-30 2015-04-01 Intel Corp Selective hardware acceleration in video playback systems
US9443280B2 (en) 2011-12-30 2016-09-13 Intel Corporation Selective hardware acceleration in video playback systems
CN102662958A (en) * 2012-03-06 2012-09-12 苏州阔地网络科技有限公司 Page segmentation display method
CN103679793A (en) * 2013-12-31 2014-03-26 广州博冠信息科技有限公司 Rendering method and equipment
CN103679793B (en) * 2013-12-31 2016-09-28 广州博冠信息科技有限公司 A kind of rendering intent and equipment
CN105126343A (en) * 2015-08-27 2015-12-09 网易(杭州)网络有限公司 2D game mask display method and device
CN105126343B (en) * 2015-08-27 2019-01-22 网易(杭州)网络有限公司 A kind of the mask display methods and device of 2D game
CN109936704A (en) * 2017-12-18 2019-06-25 姜鹏飞 A kind of image data transparent effect processing method and processing device
CN113225484A (en) * 2020-12-21 2021-08-06 山西方天圣华数字科技有限公司 Method and device for rapidly acquiring high-definition picture shielding non-target foreground

Also Published As

Publication number Publication date
CN102147923B (en) 2012-12-12

Similar Documents

Publication Publication Date Title
CN102147923B (en) Method for displaying animated image in masking way
CN109646955B (en) Game interface generation method, device and storage medium
CN105096368B (en) Three dimensional object processing method and relevant apparatus
CN107423445A (en) A kind of map data processing method, device and storage medium
CN102521852B (en) Showing method for target label independent of three-dimensional scene space
US8499239B2 (en) Globe container
CN103870558B (en) Page rendering method and mask layer creating method
CN101908060B (en) Manufacturing method, display method and system of vector numerical map
US20120189221A1 (en) Image File Generation Device, Image Processing Device, Image File Generation Method, And Image Processing Method.
CN109300181A (en) The animation of the computer of user interface and content item generation display component
CN103996167A (en) Thumbnail display method and user equipment
CN102566952B (en) Display system and display method applied to embedded digital entertainment on-demand system
CN106648356B (en) Android platform-based trotting horse lantern effect realization device and method
CN103197908B (en) Based on pdf document display packing and the system of information display platform
CN103106361A (en) Method and device for strengthening picture verification code security
CN103677491A (en) Method and device for rendering website
KR102292789B1 (en) Display apparatus and control method thereof
CN101656037B (en) Method for displaying large-format picture on small screen equipment and small screen equipment
CN103606179A (en) Animation image display method and device
CN101930340B (en) Method for generating lighting effect by simulating real page turning for electronic book
CN103677528A (en) Method and electronic device for processing information
CN103577046A (en) 3D stereoscopic desktop system and implementation method thereof
TWI527445B (en) Displaying hardware accelerated video on x window systems
CN106909263A (en) The interactive display method and system of 3-D view
CN102074035A (en) Panoramic image distortion-based mobile phone cartoon character creating method

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
ASS Succession or assignment of patent right

Owner name: SHENZHEN RUIDE NETWORK TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: LI XINQUAN

Effective date: 20140327

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20140327

Address after: 518000 room 718, Zhong Hao building, Bagua four road, Futian District, Guangdong, Shenzhen

Patentee after: SHENZHEN RUIDE NETWORK TECHNOLOGY CO., LTD.

Address before: The streets of Buji City District of Longgang District of Shenzhen City, Guangdong province 518000 unit 27 D 601

Patentee before: Li Xinquan