Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 334 Bytes

File metadata and controls

18 lines (13 loc) · 334 Bytes

Save palette as a new PNG image.

toPng(string file[, function callback])
  • file new image file.
  • callback call function after creating a palette.
Example:
var imageLib = require('./imageLib.js');

imageLib('./images/sample.bmp').bmpToData(function() {
	this.toPng('./images/simple.png');
});