Projekat

Općenito

Profil

Podrška #24562 » test_png.js

Ernad Husremović, 26.09.2011 15:21

 
var gd = require("node-gd");
/*
gd.openPng("vim_path.png", function(png, path) {
console.log("Width:", png.width);
console.log("H:", png.heigth);
});

*/

var width = 100, height = 100;

var img = gd.createTrueColor(width, height);


img.savePng("out.png", 0, function() {
console.log("image saved!");
});
(1-1/2)