CPC G06T 11/40 (2013.01) [G06T 1/20 (2013.01); G06T 11/001 (2013.01); G06T 11/206 (2013.01)] | 17 Claims |
1. One or more computer storage media storing computer-useable instructions that, when used by one or more computing devices, cause the one or more computing devices to perform operations comprising:
prior to receiving an instruction to render a scaled version of an initial raster image, generating: a first pre-computed texture representing unsigned distance values, a second pre-computed texture comprising texels wherein each texel stores a bit for each neighboring texel and wherein the bit for each neighboring texel stores a binary value representing whether or not the texel and the neighboring texel are considered to be in a same region, and a third pre-computed texture representing color values of the initial raster image, wherein generating the second pre-computed texture comprises performing edge detection on the initial raster image to generate detected edges, and determining, for each texel, whether the texel is in the same region as a particular neighboring texel of its neighboring texels based on drawing a line between the texel and the particular neighboring texel and counting a number of times the line crosses any of the detected edges;
while executing a graphics rendering pipeline in response to the instruction, determining a color value for a pixel of the scaled version using the first, second, and third pre-computed textures; and
outputting the scaled version.
|