Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var tmpPath = path.join(dirPath, x + "*" + y + ".png");
- var tmpCanvas = new Canvas(chunk_size.width,chunk_size.height);
- var tmpCtx = canvas.getContext('2d');
- if (!fs.existsSync(tmpPath))
- {
- }
- else
- {
- s.readFile(tmpPath, function(err, squid){
- if (err) throw err;
- img = new Image;
- img.src = squid;
- ctx.drawImage(img, 0, 0, img.width / 4, img.height / 4);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement