Search in sources :

Example 1 with AwtRenderingBackend

use of com.gargoylesoftware.htmlunit.javascript.host.canvas.rendering.AwtRenderingBackend in project htmlunit by HtmlUnit.

the class CanvasRenderingContext2D method getRenderingBackend.

private RenderingBackend getRenderingBackend() {
    if (renderingBackend_ == null) {
        final int imageWidth = Math.max(1, canvas_.getWidth());
        final int imageHeight = Math.max(1, canvas_.getHeight());
        renderingBackend_ = new AwtRenderingBackend(imageWidth, imageHeight);
    }
    return renderingBackend_;
}
Also used : AwtRenderingBackend(com.gargoylesoftware.htmlunit.javascript.host.canvas.rendering.AwtRenderingBackend)

Aggregations

AwtRenderingBackend (com.gargoylesoftware.htmlunit.javascript.host.canvas.rendering.AwtRenderingBackend)1