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; freezing a color of each of a plurality of pixels within a second region, the second region including a previous pen tip instance; and painting the first region while the color of the pixels within the second region is frozen.
- 2. The method of claim 1, wherein the color of the plurality of each of the pixels within the stored 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. 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; sending a first command to a graphics toolbox to freeze a color of each of a plurality of pixels within a second region, the second region including a previous pen tip instance; and sending a second command to the graphics toolbox to paint the first region while the color of the pixels within the second region is frozen.
- 13. The method of claim 12, wherein the color of the plurality of each of the pixels within the stored region is transparent.
- 14. The method of claim 12, wherein the first region is the new pen tip instance.
- 15. The method of claim 12, wherein the step of determining the first region includes determining a quadrangle connecting the previous pen tip instance to the new pen tip instance.
- 16. 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 including a previous pen tip instance, to command the graphics toolbox to freeze a color of each of a plurality of pixels within the second region, and to command the graphics toolbox to paint the first region while the color of the pixels within the second region is frozen.
- 17. 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 including 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 the second region and to paint the first region.
- 18. The apparatus of claim 17, wherein the color of the plurality of pixels in the second region is transparent.
- 19. The apparatus of claim 17, wherein the graphics toolbox is a part of the computer.
- 20. The apparatus of claim 17, wherein the computer is further configured to determine a quadrangle connecting the previous and new pen tip instances.
- 21. The apparatus of claim 20, wherein the first region includes the quadrangle.
- 22. 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 whether a plurality of pixels within the first region are also within a second region; and applying a new color setting to only those of the plurality of pixels that are within the first region but not within the second region.
- 23. The method of claim 22, wherein the second region is a combined set of regions including at least one previous pen tip instance.
- 24. The method of claim 23, wherein the second region is a union of the set of regions.
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application is related to U.S. patent application Ser. No. TBD, entitled “Rendering Ink Strokes of Variable Width and Angle,” attorney docket no. 03797.00129, filed simultaneously with the present application, and U.S. patent application Ser. No. TBD, entitled “Serial Storage of Ink and its Properties”, attorney docket no. 03797.00132, filed May 11, 2001, both hereby incorporated by reference as to their entireties.