Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 17, 2010
1 parent 700d214 commit 191ff72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Readme.md
Expand Up @@ -58,11 +58,12 @@ If not previously installed, you will want to install the [cairo graphics librar
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()

A call to `Canvas#toBuffer()` will return a node `Buffer` instance containing all of the PNG data.


canvas.toBuffer();

### Canvas#toBuffer() async
Expand Down

0 comments on commit 191ff72

Please sign in to comment.