本文整理汇总了Java中br.com.etyllica.core.graphics.Graphic.drawImage方法的典型用法代码示例。如果您正苦于以下问题:Java Graphic.drawImage方法的具体用法?Java Graphic.drawImage怎么用?Java Graphic.drawImage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类br.com.etyllica.core.graphics.Graphic
的用法示例。
在下文中一共展示了Graphic.drawImage方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: draw
import br.com.etyllica.core.graphics.Graphic; //导入方法依赖的package包/类
@Override
public void draw(Graphic g) {
// Draw PipCamera
g.drawImage(droneCamera.getBufferedImage(), 0, 60);
// Draw Information
g.setColor(Color.WHITE);
g.drawShadow(20, 60, "Scene", Color.BLACK);
g.drawShadow(20, 120, "DroneX: " + (drone.getX()), Color.BLACK);
g.drawShadow(20, 140, "DroneY: " + (drone.getY()), Color.BLACK);
g.drawShadow(20, 160, "DroneZ: " + (drone.getZ()), Color.BLACK);
g.drawShadow(20, 200, "DroneAngleY: " + (drone.getAngleY()), Color.BLACK);
g.drawShadow(20, 220, "CameraAngleX: " + (droneCamera.getAngleX()), Color.BLACK);
g.drawShadow(20, 240, "CameraAngleY: " + (droneCamera.getAngleY()), Color.BLACK);
g.drawShadow(20, 260, "CameraAngleZ: " + (droneCamera.getAngleZ()), Color.BLACK);
}
示例2: draw
import br.com.etyllica.core.graphics.Graphic; //导入方法依赖的package包/类
@Override
public void draw(Graphic g) {
// Draw PipCamera
g.drawImage(droneCamera1.getBufferedImage(), 0, 60);
// Draw Information
g.setColor(Color.WHITE);
g.drawShadow(20, 60, "Scene", Color.BLACK);
g.drawShadow(20, 120, "DroneX: " + (drone1.getX()), Color.BLACK);
g.drawShadow(20, 140, "DroneY: " + (drone1.getY()), Color.BLACK);
g.drawShadow(20, 160, "DroneZ: " + (drone1.getZ()), Color.BLACK);
g.drawShadow(20, 200, "DroneAngleY: " + (drone1.getAngleY()), Color.BLACK);
g.drawShadow(20, 220, "CameraAngleX: " + (droneCamera1.getAngleX()), Color.BLACK);
g.drawShadow(20, 240, "CameraAngleY: " + (droneCamera1.getAngleY()), Color.BLACK);
g.drawShadow(20, 260, "CameraAngleZ: " + (droneCamera1.getAngleZ()), Color.BLACK);
batteryIndicator1.draw(g);
batteryIndicator2.draw(g);
}
示例3: draw
import br.com.etyllica.core.graphics.Graphic; //导入方法依赖的package包/类
@Override
public void draw(Graphic g) {
// Draw PipCamera
g.drawImage(droneCamera.getBufferedImage(), 0, 60);
// Draw Information
g.setColor(Color.WHITE);
g.drawShadow(20, 60, "Scene", Color.BLACK);
g.drawShadow(20, 120, "DroneX: " + (drone.getX()), Color.BLACK);
g.drawShadow(20, 140, "DroneY: " + (drone.getY()), Color.BLACK);
g.drawShadow(20, 160, "DroneZ: " + (drone.getZ()), Color.BLACK);
g.drawShadow(20, 200, "DroneAngleY: " + (drone.getAngleY()), Color.BLACK);
g.drawShadow(20, 220, "CameraAngleX: " + (droneCamera.getAngleX()), Color.BLACK);
g.drawShadow(20, 240, "CameraAngleY: " + (droneCamera.getAngleY()), Color.BLACK);
g.drawShadow(20, 260, "CameraAngleZ: " + (droneCamera.getAngleZ()), Color.BLACK);
batteryIndicator.draw(g);
}
示例4: draw
import br.com.etyllica.core.graphics.Graphic; //导入方法依赖的package包/类
@Override
public void draw(Graphic g) {
// Draw PipCamera
g.drawImage(droneCamera1.getBufferedImage(), 0, 60);
// Draw Information
g.setColor(Color.WHITE);
g.drawShadow(20, 60, "Scene", Color.BLACK);
g.drawShadow(20, 120, "DroneX: " + (drone1.getX()), Color.BLACK);
g.drawShadow(20, 140, "DroneY: " + (drone1.getY()), Color.BLACK);
g.drawShadow(20, 160, "DroneZ: " + (drone1.getZ()), Color.BLACK);
g.drawShadow(20, 200, "DroneAngleY: " + (drone1.getAngleY()), Color.BLACK);
g.drawShadow(20, 220, "CameraAngleX: " + (droneCamera1.getAngleX()), Color.BLACK);
g.drawShadow(20, 240, "CameraAngleY: " + (droneCamera1.getAngleY()), Color.BLACK);
g.drawShadow(20, 260, "CameraAngleZ: " + (droneCamera1.getAngleZ()), Color.BLACK);
batteryIndicator1.draw(g);
}
示例5: draw
import br.com.etyllica.core.graphics.Graphic; //导入方法依赖的package包/类
@Override
public void draw(Graphic g) {
//Draw PipCamera
g.drawImage(drone.getCamera().getBufferedImage(), 0, 60);
//Draw Information
g.setColor(Color.WHITE);
g.drawShadow(20,20, "Scene",Color.BLACK);
g.drawShadow(20,40, "AngleX: "+(angleX-5),Color.BLACK);
g.drawShadow(20,60, "AngleY: "+(angleY),Color.BLACK);
g.drawShadow(20,100, "DroneX: "+(drone.getX()),Color.BLACK);
g.drawShadow(20,120, "DroneY: "+(drone.getY()),Color.BLACK);
g.drawShadow(20,140, "DroneZ: "+(drone.getZ()),Color.BLACK);
g.drawShadow(20,160, "DroneAngleY: "+(drone.getAngleY()),Color.BLACK);
}
示例6: draw
import br.com.etyllica.core.graphics.Graphic; //导入方法依赖的package包/类
@Override
public void draw(Graphic g) {
super.draw(g);
g.drawImage(buffer, 20, 50);
}
示例7: drawPipCamera
import br.com.etyllica.core.graphics.Graphic; //导入方法依赖的package包/类
protected void drawPipCamera(Graphic g, BufferedImage pipCamera) {
//AffineTransform transform = AffineTransform.getScaleInstance(640/w, 480/h);
AffineTransform transform = AffineTransform.getScaleInstance(0.2, 0.2);
AffineTransformOp op = new AffineTransformOp(transform, AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
BufferedImage camera = op.filter(pipCamera, null);
g.drawImage(camera, 50, 200);
}