Haxe / OpenFL extension for grabbing the screen on a Raspberry Pi
make sure you have libpng12-dev installed:
sudo apt-get install libpng12-dev
Include hxPiScreenCapture in your project.xml
In your project set a Path (default is /home/pi)
PiScreenCapture.setPath("/home/pi/Desktop/");
Call capture when you want to make a screenshot
PiScreenCapture.capture()
uses the code from raspi2png