Claims
- 1. A method for displaying an image at a desired level of opacity on a pixel-oriented display of a computer, said image being formed by a plurality of rows of tiles, each tile having a predetermined number of pixels, comprising the steps of:
- (a) determining the desired level of opacity of the image;
- (b) selecting a dither pattern corresponding to the desired level of opacity;
- (c) displaying the pixels in each tile in a row according to the dither pattern;
- (d) creating a new dither pattern by shifting the dither pattern by a random number of bits;
- (e) displaying the pixels of each tile in another row corresponding to the new dither pattern;
- repeating steps (d) and (e) for each row of said image.
- 2. The method of claim 1 wherein each dither pattern comprises a predetermined number of bits, and wherein each bit of said dither pattern corresponds to a respective pixel in each tile.
- 3. The method of claim 1 wherein said dither pattern is selected from a table of predetermined dither patterns, said table including a predetermined number of dither patterns corresponding to a predetermined number of opacity levels.
- 4. The method of claim 1 where said step of creating a new dither pattern further comprises selecting another dither pattern from one of a plurality of dither patterns having the same level of opacity prior to the shifting of the dither pattern by a random number of bits.
- 5. The method of claim 1 wherein, if no dither pattern exactly corresponds to the desired level of opacity in step (b):
- (c) setting the desired level of opacity equal to O.sub.D ;
- (d) selecting a dither pattern from among a plurality of dither patterns corresponding to different levels of opacity, said selected dither pattern having an actual opacity level (O.sub.A) closest to, but not exceeding, O.sub.D ;
- (e) displaying the pixels in each tile in a first row according to the selected dither pattern;
- (f) calculating the opacity error (O.sub.E) according to the formula O.sub.E =O.sub.D -O.sub.A ;
- (g) calculating the opacity level for a second row according to the formula O.sub.i =O.sub.D +O.sub.E ;
- (h) selecting a dither pattern having an actual opacity level O.sub.A closest to, but not exceeding, O.sub.i ;
- (i) displaying the pixels in each tile in the second row according to the selected dither pattern;
- (j) calculating the error according to the formula O.sub.E =O.sub.i -O.sub.A ;
- repeating steps (g) through (j) for each row of said image.
- 6. A computer-readable medium on which is stored a program module for displaying an image at a particular level of opacity, the program module comprising instructions which, when executed by the computer, perform the steps of:
- (a) determining the desired level of opacity of the image;
- (b) selecting a dither pattern corresponding to the desired level of opacity;
- (c) displaying the pixels in each tile in a row according to the dither pattern;
- (d) creating a new dither pattern by shifting the dither pattern by a random number of bits;
- (e) displaying the pixels of each tile in another row corresponding to the new dither pattern;
- repeating steps (d) and (e) for each row of said image.
- 7. The medium of claim 6 wherein each dither pattern comprises a predetermined number of bits, and wherein each bit of said dither pattern corresponds to a respective pixel in each said tile.
- 8. The medium of claim 6 wherein said dither pattern is selected from a table of predetermined dither patterns, said table including a predetermined number of dither patterns corresponding to a predetermined number of opacity levels.
- 9. The medium of claim 6 wherein, if no dither pattern exactly corresponds to the desired level of opacity in step (b):
- (c) setting the desired level of opacity equal to O.sub.D ;
- (d) selecting a dither pattern from among a plurality of dither patterns corresponding to different levels of opacity, said selected dither pattern having an actual opacity level (O.sub.A) closest to, but not exceeding, O.sub.D ;
- (e) displaying the pixels in each tile in a first row according to the selected dither pattern;
- (f) calculating the opacity error (O.sub.E) according to the formula O.sub.E =O.sub.D -O.sub.A ;
- (g) calculating the opacity level for a second row according to the formula O.sub.i =O.sub.D +O.sub.E ;
- (h) selecting a dither pattern having an actual opacity level O.sub.A closest to, but not exceeding, O.sub.i ;
- (i) displaying the pixels in each tile in the second row according to the selected dither pattern;
- (j) calculating the error according to the formula O.sub.E =O.sub.i -O.sub.A ;
- repeating steps (g) through (j) for each row of said image.
Parent Case Info
This application is a divisional of U.S. patent application Ser. No. 08/653,590, entitled "Method and System for Dissolving an Image Displayed on a Computer Screen", and filed on May 24, 1996, now U.S. Pat. No. 5,776,033.
US Referenced Citations (9)
Non-Patent Literature Citations (1)
Entry |
"A Digital `Dissolve` Effect", Mike Morton, Graphic Gems, Academic Press, 1990, pp. 221-232. |
Divisions (1)
|
Number |
Date |
Country |
Parent |
653590 |
May 1996 |
|