Open SourceCreating Screenshots with SVGAlib

Creating Screenshots with SVGAlib

Developer.com content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.


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

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Latest Posts

Related Stories