nanogui: Screenshot utility


Previous by date: 25 Jan 2002 00:55:08 -0000 Re: FLTK/FLNX version, Jordan Crouse
Next by date: 25 Jan 2002 00:55:08 -0000 Have anyone used Nano-X on PowerPC arch?, "SangBaek Lee(=?EUC-KR?B?wMy787np?=)"
Previous in thread:
Next in thread:

Subject: Screenshot utility
From: Jordan Crouse ####@####.####
Date: 25 Jan 2002 00:55:08 -0000
Message-Id: <E16Tuax-0000O9-00@ns.censoft.com>

Some of the folks on the Tuxscreen project have been asking for a snapshot 
utility, so here it is:

nxsnapshot <.JPG image>

Takes a snapshot of the screen (using Greg's client side framebuffer), and 
saves it as a JPEG (with the specified filename).  I've tested it on a x86 
16bit framebuffer, so please let me know how it works on other depths / 
architecture. If anyone is so inclined, please feel free to hack in other 
image type support.

So here you go - Just edit the Makefile to reflect your system, and build it 
up (don't forget, you will need libjpeg compiled for your architecture).  If 
you need help, you might be able to find me as CosmicPenguin in #tuxscreen on 
irc.openprojects.net.
 
Happy hacking!
Jordan

PS:  For all you Microwindows folks - there are still 500 tuxscreens 
available.  They are only $99 bucks while they last, and they can run 
Microwindows.  A great way to get an ARM platform for cheap!

CC=gcc
MICROWIN_DIR=/user/projects/latest/microwin/src
JPEG_INCLUDE=/usr/include
JPEG_LIB=/usr/lib

CFLAGS=-I$(JPEG_INCLUDE) -I$(MICROWIN_DIR)/include

LIBS=-L$(JPEG_LIB) -ljpeg -L$(MICROWIN_DIR)/lib -lnano-X

nxsnapshot: nxsnapshot.c
	$(CC) $(CFLAGS) -o nxsnapshot nxsnapshot.c $(LIBS)


[Content type text/x-c not shown. Download]

Previous by date: 25 Jan 2002 00:55:08 -0000 Re: FLTK/FLNX version, Jordan Crouse
Next by date: 25 Jan 2002 00:55:08 -0000 Have anyone used Nano-X on PowerPC arch?, "SangBaek Lee(=?EUC-KR?B?wMy787np?=)"
Previous in thread:
Next in thread:


Powered by ezmlm-browse 0.20.