Claims
- 1. A method for dynamically rendering a digital ink stroke, comprising the steps of:
receiving a new pen tip instance; determining a first region based on the new pen tip instance; determining a second region based on a previous pen tip instance; freezing a color of each of a plurality of pixels within an intersection of the first and second regions; and painting the first region while the color of the pixels within the intersection is frozen.
- 2. The method of claim 1, wherein the color of the plurality of each of the pixels within the second region is transparent.
- 3. The method of claim 1, wherein the first region is the new pen tip instance.
- 4. The method of claim 1, wherein the step of determining the first region includes determining a quadrangle connecting the previous pen tip instance to the new pen tip instance.
- 5. The method of claim 4, wherein the first region comprises the quadrangle.
- 6. The method of claim 4, wherein the first region comprises both the quadrangle and the new pen tip instance.
- 7. The method of claim 4, wherein the new and previous pen tip instances are both one of a circle and an oval, the step of determining the quadrangle including determining the quadrangle to have two sides each tangent to both the new and previous pen tip instances.
- 8. The method of claim 4, wherein the new and previous pen tip instances are both rectangles, the step of determining the quadrangle including determining the quadrangle to have first and second corners each touching a different corner of the previous pen tip instance and third and fourth corners each touching a different corner of the new pen tip instance.
- 9. The method of claim 1, wherein the second region comprises a plurality of sub-regions stored in a queue, the method further comprising the step of pushing the first region into the queue.
- 10. The method of claim 9, further comprising the step of pushing at least one of the stored sub-regions, other than the first region, out of the queue.
- 11. The method of claim 1, further comprising the step of determining the second region by taking the union of a plurality of sub-regions including the previous pen tip instance.
- 12. The method of claim 1, wherein said painting the first region comprises applying a new color setting to a plurality of pixels that are within a third ink stroke region preceding the second region.
- 13. The method of claim 12, wherein the second region is a combined set of regions including at least one previous pen tip instance.
- 14. The method of claim 13, wherein the second region is a union of the set of regions.
- 15. A method for dynamically rendering a digital ink stroke, comprising the steps of:
receiving a new pen tip position; determining a new pen tip instance based on the new pen tip position and a selected pen tip shape; determining a first region based on the new pen tip instance; determining a second region based on a previous pen tip instance; sending a first command to a graphics toolbox to freeze a color of each of a plurality of pixels within an intersection of the first and second regions; and sending a second command to the graphics toolbox to paint the first region while the color of the pixels within the intersection is frozen.
- 16. The method of claim 15, wherein the color of the plurality of each of the pixels within the second region is transparent.
- 17. The method of claim 15, wherein the first region is the new pen tip instance.
- 18. The method of claim 15, wherein the step of determining the first region includes determining a quadrangle connecting the previous pen tip instance to the new pen tip instance.
- 19. An apparatus for dynamically rendering a digital ink stroke, the apparatus coupled to a graphics toolbox, the apparatus comprising:
an ink storage configured to receive a new pen tip instance and to determine a first region based on the new pen tip instance; and a rendering environment coupled to the ink storage and configured to determine a second region based on a previous pen tip instance, to command the graphics toolbox to freeze a color of each of a plurality of pixels within an intersection of the first and second regions, and to command the graphics toolbox to paint the first region while the color of the pixels within the intersection is frozen.
- 20. An apparatus for dynamically rendering a digital ink stroke, comprising:
a computer configured to receive a new pen tip instance, to determine a first region based on the new pen tip instance, and to determine a second region based on a previous pen tip instance; and a graphics toolbox coupled to the computer and configured to freeze a color of a plurality of pixels in an intersection of the first and second regions and to paint the first region.
- 21. The apparatus of claim 20, wherein the color of the plurality of pixels in the second region is transparent.
- 22. The apparatus of claim 20, wherein the graphics toolbox is a part of the computer.
- 23. The apparatus of claim 20, wherein the computer is further configured to determine a quadrangle connecting the previous and new pen tip instances.
- 24. The apparatus of claim 23, wherein the first region includes the quadrangle.
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application is a continuation of U.S. patent application Ser. No. 09/918,484, filed Aug. 1, 2002 and titled “Dynamic Rendering of Ink Strokes with Transparency,” now U.S. Pat. No. ______. This application is related to U.S. patent application Ser. No. 09/918,721, entitled “Rendering Ink Strokes of Variable Width and Angle,” filed Aug. 1, 2001, and U.S. patent application Ser. No. 09/852,799, entitled “Serial Storage of Ink and its Properties,” filed May 11, 2001. All of said applications are hereby incorporated by reference as to their entireties.
Continuations (1)
|
Number |
Date |
Country |
Parent |
09918484 |
Aug 2001 |
US |
Child |
10770448 |
Feb 2004 |
US |