Creating Screenshots with SVGAlib

Monday Dec 4th 2000 by Jay Link
Share:

Because SVGAlib is a library not an environment it has no screenshot feature. Jay Link shows you how to incorporate this popular function into your next project.

SVGAlib (the Linux Super VGA Graphics Library) is a powerful, console-based library used to display graphics under Linux. It's entirely separate from the X-Windowing System, and won't work across a network. However, it compensates

Things are simplified considerably when using vgagl, as WIDTH, HEIGHT, and BYTESPERPIXELS are predefined. Here we'll take a look at gl_getbox():

Other Options

Matan Ziv-Av, who maintains SVGAlib, has contributed this code, which uses vga_getscansegment(). Note that his function creates a ppm file, which is a plain-text dump of every pixel's RGB values.

Here, he

Share:
Mobile Site | Full Site
Copyright 2017 © QuinStreet Inc. All Rights Reserved