Using NativeProcess in AIR 2 for screencaps
Sunday, April 18th, 2010My aim here was to get familiar with AIR 2′s new capability of interacting with external processes’ standard streams.
One useful way of learning how to use a new feature is to proceed directly to trying to abuse it.
To that end, this AIR application takes in a fairly continuous stream of uncompressed binary image data from a native process’ standard output. My hope was to get real-time screen capture updates into AIR at a decent frame rate.
Details and source code after the break–

