Tj Holowaychuk 14 years ago
parent
commit
191ff72ec3
  1. 3
      Readme.md

3
Readme.md

@ -58,11 +58,12 @@ If not previously installed, you will want to install the [cairo graphics librar
console.log('saved png'); console.log('saved png');
}); });
Currently _only_ sync streaming is supported, however we plan on supporting async streaming as well (of course :) ). Until then the `Canvas#toBuffer(callback)` alternative is async utilizing `eio_custom()`.
### Canvas#toBuffer() ### Canvas#toBuffer()
A call to `Canvas#toBuffer()` will return a node `Buffer` instance containing all of the PNG data. A call to `Canvas#toBuffer()` will return a node `Buffer` instance containing all of the PNG data.
canvas.toBuffer(); canvas.toBuffer();
### Canvas#toBuffer() async ### Canvas#toBuffer() async

Loading…
Cancel
Save