Slide 22
Slide 22 text
Load Image
{Image} = Canvas = require 'canvas'
fs = require 'fs'
path = 'test.png'
fs.readFile path, (err, data) ->
return next(null) if err or not data
img = new Image
img.src = data
ctx.drawImage img, 0, 0, img.width, img.height