line
Jack Bresenham (Decision Variable) Method of Line Drawing
Steps for Bresenham Algorithm for 1st octant:
- Enter end points P(x1, y1) and Q(x2, y2).
- Display x1, y1 on screen.
- Compute dx = x2 - x1 ; and dy = y2 - y1 ; and p1 = 2dy - dx.
- If p1 < 0.0, display x1 + 1, and y1, else display x1+1 and y1 + 1
- if p1 < 0.0, p2 = p1 + 2dy else let p2 = p1 + 2dy - 2dx
- Repeat steps 4, 5 until reach x2, y2.
Digital Differential Analyzer (DDA) Method of Line Drawing(Implementation using C language)
The basis of the DDA (Digital Differential Analyzer) method is to take unit steps along one of the coordinate assume x co-ordinate and compute the corresponding values along the other coordinate lets say Y co-ordinate. The unit steps Lets say m are always along the coordinate of greatest change, e.g. if we have dx = 11 and dy = 6, then we would take unit steps along x and compute the steps m along y.
Basic line drawing algorithm Line, Drawing a Straight Line Examples and explaination
Line drawing between two points (x1,y1) and (y1,y2) is accomplished by calculating intermediate positions along the line path between specified end points.
We use The Equation:-
y= m. x + b
If we have a graph and given two positions P(x1,y1) and Q(x2,y2) then we need to draw line between P and Q by calculating The each occurrence of Y! for variance in X!. This factor is known as m here. Example:
(x1=1,y1=1)&(x2=6,y2=5)
We need now to calculate all factors i.e. m and b Here
m = y2-y1 / x2-x1
So m is
Serial Line Internet Protocol(SLIP)
SLIP is a protocol for connection to the Internet via a dial-up connection.Serial Line Internet Protocol (SLIP) is a mostly obsolete encapsulation of the Internet Protocol designed to work over serial ports and modem connections. It is documented in RFC 1055.
SLIP requires a port configuration of 8 data bits, no parity, and either EIA hardware flow control, or CLOCAL mode (3-wire null-modem) UART operation settings.
SLIP is also currently used in the BlueCore Serial Protocol for communication between Bluetooth modules and host computers

Sign In





