On 11/8/10 8:40 AM, [email protected] wrote:
I'm extending my MozMFC example to handle rendering into a Win32 bitmap. I start with the following ...nsCOMPtr<nsICanvasRenderingContextInternal> context; context = do_CreateInstance("@mozilla.org/content/canvas-rendering-context;1?id=2d", &rv);
This really doesn't make any sense. The way to get a canvas rendering context is to create a <canvas> element and then call .getContext('2d') on it. Otherwise your rendering context isn't actually backed by a drawing buffer.
--BDS _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
