Hitzel Cruz wrote:

What I ideally need is a sort of component, or a piece of code, that
digest Html content and call me back to do the actual painting myself,
as atomic calls or events, like "DrawImage( imgFileName, Rect )",
"DrawText( string, fontName, styles, rect)", "DrawRectangle( Rect,
color )", etc.
You may be able to use parts of Mozilla for this.... you'd want your code to implement nsIRenderingContext (http://lxr.mozilla.org/seamonkey/source/gfx/public/nsIRenderingContext.h) and maybe nsIDeviceContext (http://lxr.mozilla.org/seamonkey/source/gfx/public/nsIDeviceContext.h) and then have the layout engine just use your device context and rendering context...




Reply via email to