Hitachi HD64411 Q2 User Manual page 226

Quick 2d graphics renderer
Table of Contents

Advertisement

(a)
Figure C-2
Comparison of (a) 8-Point Drawing and (b) 4-Point Drawing
Next, 8-point drawing straight line approximation is described, using figure C-3 (a). After pixel
A is drawn, either pixel B or pixel C is selected; the basis for selection is proximity to an
actual straight line. The same approach is also used in 4-point drawing (figure C-3 (b)).
A comparison between 8-point drawing and 4-point drawing shows that closer approximation
to a straight line can be achieved with 8-point drawing. However, the algorithm is
correspondingly complex, requiring longer processing time.
C
B
A
(a)
Figure C-3
Drawing Dot Determination Process in (a) 8-Point Drawing and
Actual straight line
(b) 4-Point Drawing
(b)
C
B
A
(b)
219

Advertisement

Table of Contents
loading

Table of Contents