1vga_getscansegment(3) Svgalib User Manual vga_getscansegment(3)
2
3
4
6 vga_getscansegment - get a list of consecutive pixel values
7
9 #include <vga.h>
10
11 int vga_getscansegment(unsigned char *colors, int x, int y, int
12 length);
13
14
16 The direct opposite of vga_drawscansegment(). The line of length pixels
17 starting at (x, y) is not drawn but instead the colorvalues are taken
18 from the screen and copied into color[0] .. color[length - 1]. Svgalib
19 versions was introduced in version 1.2.10. In high/truecolor modes,
20 the length must be given in bytes, not pixels.
21
23 svgalib(7), vgagl(7), libvga.config(5), vga_clear(3), vga_drawpixel(3),
24 vga_drawline(3), vga_getpixel(3), vga_drawscanline(3), vga_drawscansegâ
25 ment(3)
26
28 This manual page was edited by Michael Weller <eowmob@exp-math.uni-
29 essen.de>. The referenced function and its documentation are due to
30 Bill Randle <billr@master.CNA.TEK.COM>.
31
32
33
34Svgalib (>= 1.2.11) 27 July 1997 vga_getscansegment(3)