cssCursorProperty += pixmap.getCanvasElement().toDataUrl("image/png"); cssCursorProperty += "')"; cssCursorProperty += xHotspot;
cssCursorProperty += pixmap.getCanvasElement().toDataUrl("image/png"); cssCursorProperty += "')"; cssCursorProperty += xHotspot;
/** * Returns a data URL for the current content of the canvas element. * * @return a data URL for the current content of this element. */ public String toDataUrl() { return getCanvasElement().toDataUrl(); }
/** * Returns a data URL for the current content of the canvas element, with a * specified type. * * @param type the type of the data url, e.g., image/jpeg or image/png. * @return a data URL for the current content of this element with the * specified type. */ public String toDataUrl(String type) { return getCanvasElement().toDataUrl(type); }
/** * Returns a data URL for the current content of the canvas element. * * @return a data URL for the current content of this element. */ public String toDataUrl() { return getCanvasElement().toDataUrl(); }
/** * Returns a data URL for the current content of the canvas element. * * @return a data URL for the current content of this element. */ public String toDataUrl() { return getCanvasElement().toDataUrl(); }
/** * Returns a data URL for the current content of the canvas element, with a * specified type. * * @param type the type of the data url, e.g., image/jpeg or image/png. * @return a data URL for the current content of this element with the * specified type. */ public String toDataUrl(String type) { return getCanvasElement().toDataUrl(type); }
/** * Returns a data URL for the current content of the canvas element, with a * specified type. * * @param type the type of the data url, e.g., image/jpeg or image/png. * @return a data URL for the current content of this element with the * specified type. */ public String toDataUrl(String type) { return getCanvasElement().toDataUrl(type); }
/** * Native call to capture the frame of the video stream. */ protected String nativeCaptureToDataURL(CanvasElement canvas, Element element, String mimeType) { VideoElement videoElement = (VideoElement) element; int width = videoElement.getVideoWidth(); int height = videoElement.getVideoHeight(); if (Double.isNaN(width) || Double.isNaN(height)) { width = videoElement.getClientWidth(); height = videoElement.getClientHeight(); } canvas.setWidth(width); canvas.setHeight(height); Context2d context = canvas.getContext2d(); context.drawImage(videoElement, 0, 0, width, height); return canvas.toDataUrl(mimeType); }
cssCursorProperty += pixmap.getCanvasElement().toDataUrl("image/png"); cssCursorProperty += "')"; cssCursorProperty += xHotspot;