摘要 |
An anti-aliased computer display system has graphical elements that may be defined with a pixel-snapping property that causes the elements to be shifted or transformed to align with the pixel map of a display. When the property is set, horizontal and vertical guidelines are established that are used to calculate a transformation for the elements, and the transformation is applied to the element plus any child elements. In some cases, guidelines may be established for both the right and left as well as top and bottom of the elements, and portions of the graphical elements that end on or are collinear with the guidelines may be transformed by shifting or stretching the elements. In general, the transformation is a translation that is less than one pixel in size. The result is a pixel-snapped image that may be displayed on any type of display with any resolution while remaining crisp and clear, just as the designer intended.
|