Line scan-conversion methods
Abstract
An integer arithmetic graphic line scan-conversion procedure sub-divides a pixel grid into a 1/N sub-pixel grid, where N is a positive integer selected to provide a desired precision. A line segment is defined by a pair of vertices relative to the sub-pixel grid. The vertices are ordered such that the line segment is in one of the first and the second quadrants, depending upon the slope of the line segment. An integer estimate is made of the slope of the line segment relative to the sub-pixel grid. The scan progresses along a major axis at pixel intervals, while best-fit integer projections of the line segment are made along an orthogonal axis relative to the sub-pixel grid. A resulting array of integer line-scan points relative to the sub-pixel grid are used to adjust color and brightness attributes of display pixels, and the resulting adjusted pixels are output to a display device to create an image of the scanned line segment. In a preferred embodiment, N is a positive power of 2. In other embodiments, the method is used for general linear interpolation in any graphic subsystem, such as in the processes of drawing polygons, shading and morphing.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 2 · Forward citations: 5.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for using integer arithmetic to scan a line segment for display, the line segment having an arbitrary end-point precision relative to a graphics system pixel space, the method comprising the steps of: providing a graphics system pixel space having orthogonal first and second axes defining rectangular coordinates; subdividing the pixel space by a positive integer N into a sub-pixel space such that each pixel contains N×N sub-pixels; providing a pair of vertices defining a line segment relative to the sub-pixel space; using integer arithmetic to determine a series of points that define
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (5 of 5 total)
References Cited — Backward Prior Art (2)
Non-Patent Literature (3)
- Bresenham, J.E., "Algorithm for computer control of a digital plotter", IBM Systems Journal, 4(1), 1965, pp. 25-30. (no copy available).
- Foley et al., "Computer Graphics: Principles and Practice" 2nd edition in C, 1996, pp. 664, 693. (copy included in S/N 09/342,442).
- Foley, J.D., et al., Computer Graphics, 2nd ed., 1996, Addison-Wesley, pp. 72-81, 884. (copy provided in S/N 09/342,442).