After searching my pants off for the correct approach for this, I need some help regarding this. I want to save the contents of an html component to an image (png/jpg/whatever) in the filesystem. The added bonus, is that I want to render the entire HTML page, not just the visible part in the component.
A few approaches I tried:
- Trying to get some reference to the canvas that is drawn on in the html component, no luck (this seemed to me to be the easiest solution)
- Trying out a way of splitting the entire html page in multiple squares and creating seperate bitmaps for each viewport's content, after that combining them into 1.
Some problems I have:
- No way to get an easy reference to the entire html-canvas in the html component (that I could find).
- Lot's of other stuff that went wrong which made me think there has to be an easier way.
- Pages can become 10000px or more high easy, how do we work with bitmaps this size taking the bitmap size limit in the player into account?
I know this should be possible, since I've seen Air apps do it already (Webkut e.g.).
Any help appreciated,
Ben