/// <summary> /// Render the html using the given device. /// </summary> /// <param name="g">the device to use to render</param> /// <param name="clip">the clip rectangle of the html container</param> public void PerformPaint(DrawingContext g, Rect clip) { ArgChecker.AssertArgNotNull(g, "g"); using var ig = new GraphicsAdapter(g, Utils.Convert(clip)); _htmlContainerInt.PerformPaint(ig); }
/// <summary> /// Render the html using the given device. /// </summary> /// <param name="g">the device to use to render</param> public void PerformPaint(Graphics g) { ArgChecker.AssertArgNotNull(g, "g"); using (var ig = new GraphicsAdapter(g, _useGdiPlusTextRendering)) { _htmlContainerInt.PerformPaint(ig); } }
/// <summary> /// Render the html using the given device. /// </summary> /// <param name="g">the device to use to render</param> public void PerformPaint(IRenderer g) { ArgChecker.AssertArgNotNull(g, "g"); using (var ig = new SkiaAdapter(g)) { _htmlContainerInt.PerformPaint(ig); } }
/// <summary> /// Render the html using the given device. /// </summary> /// <param name="g">the device to use to render</param> public void PerformPaint(XGraphics g) { ArgChecker.AssertArgNotNull(g, "g"); using (var ig = new GraphicsAdapter(g)) { _htmlContainerInt.PerformPaint(ig); } }
/// <summary> /// Render the html using the given device. /// </summary> /// <param name="g">the device to use to render</param> public void PerformPaint() { var renderer = SDL2Adapter.Instance.renderer; SDL.SDL_SetRenderDrawColor(renderer, 0xFF, 0xFF, 0xFF, 0xFF); SDL.SDL_RenderClear(renderer); using (var ig = new GraphicsAdapter(SDL2Adapter.Instance, SDL2Adapter.Instance.GetRendererRect())) { _htmlContainerInt.PerformPaint(ig); } }