Skip to content

Access backing cairo_surface_t? #369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
walling opened this issue Dec 16, 2013 · 1 comment
Closed

Access backing cairo_surface_t? #369

walling opened this issue Dec 16, 2013 · 1 comment

Comments

@walling
Copy link

walling commented Dec 16, 2013

I'm creating a binding for a library that can draw using Cairo. Is it possible to access the backing cairo_surface_t instance in node-canvas? That way, I can interface with this module.

@kkoopa
Copy link
Contributor

kkoopa commented Dec 17, 2013

It is not directly exposed to the javascript side, but there is a public method Canvas::surface() defined in Canvas.h. Simply expose it to v8 if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants