What I want to implement is simple, I want to use a programmable
method to capture the HTML into JPG file, given the start and end x,y
coordinates. Like I capture www.news.com (100,200) - (200 - 400)
rectangular area into JPG file.
I think I need to use a HTML rendering library like WEBKIT? Or maybe I
can use an invisible window to let browser render it and then use
graphics API to save the result.
Any ideas? This program needs to support UNIX and Windows and
preferable windows platform.
Thanks.
Bin
Does the problem as stated really makes sense? Depending on
renderer being used plus all kinds of set-up values (the
window size for the page or e.g. default font sizes) the
rectangle could look completely different. There's no well-
defined relation between the HTML data and the way it looks
like - that's just the advantage of it, it can be rendered
in a way suitable for the display being used for output.
> I think I need to use a HTML rendering library like WEBKIT?
> Or maybe I can use an invisible window to let browser render
> it and then use graphics API to save the result.
You definitely would need something that does the rendering,
be it a HTML rendering library or a browser. Since I have no
idea how you could get a browser to draw into an unvisible
window I would guess your best bet would be the use of a ren-
dering library. That should also take care of problems of get-
ting the same settings each time and everywhere, not being de-
pendent on browser settings that probably are hard to control.
Regards, Jens
--
\ Jens Thoms Toerring ___ j...@toerring.de
\__________________________ http://toerring.de
Bin