Patent ID: 6891968

Claim:
A method of upscaling single-pixel wide text comprising the steps of: selecting at least one group of four input pixels such that each input pixel in the at least one group is adjacent to each other input pixel in the at least one group; dividing the at least one group of four input pixels into four quadrants such that the four input pixels define an outer boundary of the four quadrants and further such that the four input pixels define a rectangular input mask having a pair of diagonal lines; selecting an output pixel within any one of the four quadrants; determining a position of the output pixel with respect to each of the four input pixels to locate the input pixel closest to the output pixel; determining if the output pixel is further from the closest input pixel in the x-direction or in the y-direction to ascertain a first further direction; determining a color associated with the adjacent pixel in the first further direction; determining a color associated with the closest input pixel; assigning a foreground color to the output pixel solely when the color associated with the adjacent input pixel in the first further direction and the color associated with the closest input pixel are both of the foreground color; assigning a background color to the output pixel when the color associated with the adjacent pixel in the first further direction and the color associated with the closest input pixel are not both of foreground color; determining if the output pixel is positioned on one of the diagonal lines and is closer to the center of the input mask than to the closest input pixel to ascertain a second further direction; determining a color associated with the adjacent pixel in the second further direction; assigning a foreground color to the output pixel solely when the color associated with the adjacent input pixel in the second further direction and the color associated with the closest input pixel are both of the foreground color; assigning a background color to the output pixel when the color associated with the adjacent pixel in the second further direction and the color associated with the closest input pixel are not both of foreground color; and assigning to the output pixel, the color associated with the closest input pixel, in the absence of the first and second further directions.