Reputation: 655
I've got a div where the user has dropped different image elements. They have also rotated, resized and changed opacity. All is done with CSS and the styles are placed inline on each element inside the div. I now need a way to save the "artwork" as a picture. I'm using CSS3 so the rendering-engine that converts HTML to image has to support this.
Any suggestions?
Upvotes: 2
Views: 820
Reputation: 179
Since you're using CSS3 anyway, it's probably safe to also use the new Canvas API: https://developer.mozilla.org/en-US/docs/HTML/Canvas/Pixel_manipulation_with_canvas
You can use getImageData() to save to bitmap.
Upvotes: 1