SHARE
TWEET

Untitled

a guest Dec 12th, 2012 21 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var tmpPath = path.join(dirPath, x + "*" + y + ".png");
  2. var tmpCanvas = new Canvas(chunk_size.width,chunk_size.height);
  3. var tmpCtx = canvas.getContext('2d');
  4. if (!fs.existsSync(tmpPath))
  5. {
  6.        
  7. }
  8. else
  9. {
  10.         s.readFile(tmpPath, function(err, squid){
  11.                 if (err) throw err;
  12.                 img = new Image;
  13.                 img.src = squid;
  14.                 ctx.drawImage(img, 0, 0, img.width / 4, img.height / 4);
  15.         });
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top