Efficiently rendering line segments on a computer display
AssigneeSun Microsystems, Inc.
InventorGunawan Ali-Santosa
Life of this patent
Estimating the term…
Loading patent…
AssigneeSun Microsystems, Inc.
InventorGunawan Ali-Santosa
Estimating the term…
A method for rendering a line segment extending in the positive-x direction and positive-y direction on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye). In this method, Δx and Δy are computed using the formula Δx=|xe−xs| and Δy=|ye−ys|, respectively. Then dt(0)=(yf*Δx)−(xf*Δy) is computed, where xf is the fractional portion of xs and yf is the fractional portion of ys, which allows for more precision. If the line segment extends in the postive-x and positive-y directions, then for each column n containing a portion of said line segment the process: plots said current pixel if dt(n)<=0.5*Δx and plotting the pixel above said current pixel if dt(n)>0.5*Δx; moves said current pixel to the right one pixel if dt(n)<=0.5*Δx and moves said pixel to the right and up one pixel if dt(n)>0.5*Δx; and corrects dt(n) by computing dt(n)=dt(n)−Δx if dt(n)>0.5*Δx. After all of these computations have been performed, the process may iterate to the next column by computing dt(n+1)=dt(n)+Δy. This method greatly reduces the number of calculations required by the prior art methods, thus producing a faster and more efficient process by which to draw line segments on a computer display.
A method for rendering a line segment extending in the positive-x direction and positive-y direction with an absolute value of its slope between 0 and 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the method including:
A method for rendering a line segment extending in the negative-x direction and positive-y direction with an absolute value of its slope between 0 and 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the method including:
A method for rendering a line segment extending in the positive-x direction and negative-y direction with an absolute value of its slope between 0 and 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the method including:
A method for rendering a line segment extending in the negative-x direction and negative-y direction with an absolute value of its slope between 0 and 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the method including:
A method for rendering a line segment extending in the positive-x direction and positive-y direction with an absolute value of its slope greater than 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the method including:
A method for rendering a line segment extending in the negative-x direction and positive-y direction with an absolute value of its slope greater than 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the method including:
A method for rendering a line segment extending in the positive-x direction and negative-y direction with an absolute value of its slope greater than 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the method including:
A method for rendering a line segment extending in the negative-x direction and negative-y direction with an absolute value of its slope greater than 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the method including:
An apparatus for rendering a line segment on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current pixel initially set to a pixel containing the starting point, the apparatus including:
An apparatus for rendering a line segment extending in the positive-x direction and positive-y direction with an absolute value of its slope between 0 and 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the apparatus including:
An apparatus for rendering a line segment extending in the negative-x direction and positive-y direction with an absolute value of its slope between 0 and 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the apparatus including:
An apparatus for rendering a line segment extending in the positive-x direction and negative-y direction with an absolute value of its slope between 0 and 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the apparatus including:
An apparatus for rendering a line segment extending in the negative-x direction and negative-y direction with an absolute value of its slope between 0 and 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the apparatus including:
An apparatus for rendering a line segment extending in the positive-x direction and positive-y direction with an absolute value of its slope greater than 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, Ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the apparatus including:
An apparatus for rendering a line segment extending in the negative-x direction and positive-y direction with an absolute value of its slope greater than 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the apparatus including:
An apparatus for rendering a line segment extending in the positive-x direction and negative-y direction with an absolute value of its slope greater than 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the apparatus including:
An apparatus for rendering a line segment extending in the negative-x direction and negative-y direction with an absolute value of its slope greater than 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the apparatus including:
A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine for rendering a line segment extending in the positive-x direction and positive-y direction with an absolute value of its slope between 0 and 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the method including:
A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine for rendering a line segment extending in the negative-x direction and positive-y direction with an absolute value of its slope between 0 and 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the method including:
A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine for rendering a line segment extending in the positive-x direction and negatively direction with an absolute value of its slope between 0 and 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the method including:
A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine for rendering a line segment extending in the negative-x direction and negative-y direction with an absolute value of its slope between 0 and 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the method including:
A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine for rendering a line segment extending in the positive-x direction and positive-y direction with an absolute value of its slope greater than 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the method including:
A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine for rendering a line segment extending in the negative-x direction and positive-y direction with an absolute value of its slope greater than 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the method including:
A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine for rendering a line segment extending in the positive-x direction and negative-y direction with an absolute value of its slope greater than 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the method including:
A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine for rendering a line segment extending in the negative-x direction and negative-y direction with an absolute value of its slope greater than 1 on a computer display given a starting point and an ending point, the starting point having the form (xs, ys) and the ending point having the form (xe, ye), xs, ys, xe, ye each having an integer portion and a fractional portion, the computer display having a current location initially set to a pixel containing the starting point, the method including:
Dependencies are inferred from the claim text.