Search in sources :

Example 6 with CanvasElement

use of com.google.gwt.dom.client.CanvasElement in project libgdx by libgdx.

the class Pixmap method drawPixmap.

/** Draws an area form another Pixmap to this Pixmap.
	 * 
	 * @param pixmap The other Pixmap
	 * @param x The target x-coordinate (top left corner)
	 * @param y The target y-coordinate (top left corner)
	 * @param srcx The source x-coordinate (top left corner)
	 * @param srcy The source y-coordinate (top left corner);
	 * @param srcWidth The width of the area form the other Pixmap in pixels
	 * @param srcHeight The height of the area form the other Pixmap in pixles */
public void drawPixmap(Pixmap pixmap, int x, int y, int srcx, int srcy, int srcWidth, int srcHeight) {
    CanvasElement image = pixmap.getCanvasElement();
    image(image, srcx, srcy, srcWidth, srcHeight, x, y, srcWidth, srcHeight);
}
Also used : CanvasElement(com.google.gwt.dom.client.CanvasElement)

Aggregations

CanvasElement (com.google.gwt.dom.client.CanvasElement)6 ImageElement (com.google.gwt.dom.client.ImageElement)2 AbsolutePanel (com.google.gwt.user.client.ui.AbsolutePanel)2 HTML (com.google.gwt.user.client.ui.HTML)2 Entity (org.cesiumjs.cs.datasources.Entity)2 ViewerPanel (org.cesiumjs.cs.widgets.ViewerPanel)2 Canvas (com.google.gwt.canvas.client.Canvas)1 Context2d (com.google.gwt.canvas.dom.client.Context2d)1 ChangeEvent (com.google.gwt.event.dom.client.ChangeEvent)1 ChangeHandler (com.google.gwt.event.dom.client.ChangeHandler)1 ListBox (com.google.gwt.user.client.ui.ListBox)1 ResourceImageOptions (org.cesiumjs.cs.core.options.ResourceImageOptions)1 KmlDataSource (org.cesiumjs.cs.datasources.KmlDataSource)1 BillboardGraphics (org.cesiumjs.cs.datasources.graphics.BillboardGraphics)1 BillboardGraphicsOptions (org.cesiumjs.cs.datasources.graphics.options.BillboardGraphicsOptions)1 EntityOptions (org.cesiumjs.cs.datasources.options.EntityOptions)1 KmlDataSourceOptions (org.cesiumjs.cs.datasources.options.KmlDataSourceOptions)1 ConstantPositionProperty (org.cesiumjs.cs.datasources.properties.ConstantPositionProperty)1 ConstantProperty (org.cesiumjs.cs.datasources.properties.ConstantProperty)1 JsImage (org.cesiumjs.cs.js.JsImage)1