Datasheet

951
SAM9263 [DATASHEET]
Atmel-6249N-ATARM-SAM9263-Datasheet_14-Mar-16
44.3.1.2 Line Draw Modes
Absolute Line Draw
First pixel position on the line is the pixel position loaded into source/begin x and source/begin y registers. Last
pixel position on the line is the pixel position loaded into target/end x and target/end y registers.
Figure 44-2. Absolute Line Draw From (2,0) to (5,0)
Relative Line Draw
First pixel position on the line is the pixel position loaded into source/begin x and source/begin y registers. Last
pixel position on the line is the pixel position loaded into target/end x and target/end y registers plus the start pixel
position loaded into source/begin x and source/begin y registers. The target/end x and target/end y registers stand
for the length of the line to be drawn.
Figure 44-3. Relative Line Draw From (2,0) to (5,0)
2,0 3,0 4,0 5,0
X
Y
DISPLAY
(0,0) (9,0)
(0,4) (9,4)
2,0 3,0 4,0 5,0
X
Y
DISPLAY
(0,0) (9,0)
(0,4) (9,4)
6,0 7,0