Rendering highlighting strokes
AssigneeMicrosoft Corporation
InventorsBrian J. Ewanchuk, Koji Kato, Stefan Wick, Vladimir V. Smirnov, Sam J. George, Shawn Van Ness
Life of this patent
Estimating the term…
Abstract
A process for rendering highlighter ink strokes and non-highlighter ink strokes in a non-rastering environment is described. Strokes may be grouped under a node having a predefined opacity. The strokes inherit the opacity from the node. Additionally, visuals containing highlighter strokes of the same color are grouped into collections of visuals (one collection per each highlighter color), and change the opacity of the collection (parent) visual to semi-transparent (or any other transparency value defined for the highlighter effect).
Claims16
A computer-readable storage medium having computer-executable instructions stored thereon, the storage medium comprising instructions for:
- determining a transparency value for rendering highlighting ink;
- determining that a highlighting ink stroke is present and, in response to the determination, creating a data structure comprising a first portion providing a root container forming a root of a visual tree for representing visual objects to be rendered in a non-rasterizing environment, said first portion having a second portion and a third portion,
- said second portion including a highlighting ink container having at least a first node and a second node, wherein same-color highlighter strokes are grouped into a same node and each of the highlighter strokes are set to full opacity,
- said first node including a highlighting ink node of a first highlighting ink color, said first node including at least one highlighting ink stroke of said first highlighting ink stroke color, and
- said second node including a highlighting ink node of a second highlighting ink color, said second node including at least one highlighting ink stroke of said second highlighting ink stroke color;
- and
- said third portion including a non-highlighting ink container, said third portion including at least one non-highlighting ink stroke;
- and
- storing said transparency value in said second portion.
A computer-implemented method for rendering highlighting ink comprising:
- determining, by a processor, a transparency value for rendering the highlighting ink;
- determining, by the processor, that a highlighting ink stroke is present and, in response to the determination, creating a first container for the highlighting ink stroke in a data structure for representing visual objects to be rendered, and otherwise creating a second container for non-highlighting strokes and adding the non-highlighting strokes to the second container;
- creating a root node for storing visual content and associating said first container with said root node;
- grouping, by the processor, highlighter strokes by color and storing same-color highlighter strokes into a same node added to said first container, wherein each of the highlighter colors are set to full opacity;
- storing said transparency value in the first container;
- wherein each of said visual objects represents a layer to be rendered in a composition;
- and
- rendering said composition using said transparency value for rendering the highlighter strokes.
A computer system configured to support rendering of highlighting ink strokes in a non-rasterizing graphical environment comprising:
- a processor that receives highlighter ink strokes and non-highlighter ink strokes;
- and
- a memory having stored therein computer-executable instructions that, when executed by the processor, cause the system to:
- determine a transparency value for rendering the highlighting ink;
- and
- determine that a highlighting ink stroke is present and, in response to the determination, create a data structure for representing visual objects to be rendered, said data structure having a root container, a first container for highlighting ink stroke content, a second container for non-highlighting ink stroke content, and at least first and second nodes associated with a highlighting ink stroke and a non-highlighting ink stroke, respectively, wherein same-color highlighter strokes are grouped into a same node and each highlighter color is set to full opacity, and wherein each of the at least first and second nodes stores the transparency value for rendering the highlighter strokes.
Dependencies are inferred from the claim text.