When I go to draw an image to the screen, idk why, but it places the image higher than desired. Can someone tell me what i'm doing wrong with this?
Also, screen is a BufferedImage
1 2 3
| Graphics g = this.screen.getGraphics(); Graphics2D g2d = (Graphics2D)g; Graphics appG = getGraphics(); |
1 2 3 4 5 6 7 8 9 10
| g2d = (Graphics2D) screen.getGraphics(); g2d.setColor(Color.white); g2d.fillRect(0, 0, screen.getWidth(), screen.getHeight()); g2d.scale(3, 3); for (Entity e:this.entities){ e.Draw(g2d); } g2d.setColor(Color.green); appG.drawImage(screen, 0 , 0, screen.getWidth(),screen.getHeight(),null); |