0.0.5 • Published 11 years ago
pixbuf-simple v0.0.5
Simple synchronous javascript interface to gdk-pixbuf 2.0
To build:
node-waf configure node-waf build
To try:
// Create a new pixbuf (has_alpha, width, height) var pb = new Pixbuf(false, 2, 2); // Set or get some pixels var upperLeftPixel = pb0; pb3 = {r: 0, g: 255, b: 0}; // Render pixbuf to image buffer var imageBuffer = pb.toImage('png',{compression: '9'});
Additional info:
For list of supported image formats and options please refer to gdk-pixbuf 2.0 documentation. Gdk-pixbuf has limited support of transparency.