Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 377 Bytes

constructor.md

File metadata and controls

17 lines (12 loc) · 377 Bytes

Preparing an image or create a new sizes of canvas.

constructor(mixed first_argument[, int second_argument])
  • first_argument filename or width a new image.
  • second_argument height a new image.
Example:
var imageLib = require('./imageLib.js');

var new_canvas = imageLib(200, 200);
var prepare_image = imageLib('./images/sample.png');