Hi guys,
New version of Bluphys - Physics Game.
Get it while it's free :)
New features:
20 more levels;
More enemies;
New objects to interact;
Next version will have
private String rotateImage(String pathToImage) { BufferedImage image = null; String tempFileName = null; try { File f = new File(pathToImage); if (f.exists()) { image = ImageIO.read(f); Image rotatedImage = new BufferedImage(image.getHeight(), image.getWidth(),image.getType()); Graphics2D g2d = (Graphics2D) rotatedImage.getGraphics(); g2d.rotate(Math.toRadians(90.0)); g2d.drawImage(image, 0, -rotatedImage.getWidth(null), null); g2d.dispose(); //Random name String timeStampName = UUID.randomUUID(). toString().substring(1, 8); //Save image to java.io.tmpdir tempFileName = System.getProperty("java.io.tmpdir") + timeStampName + ".jpg"; ImageIO.write((BufferedImage) rotatedImage, "jpg", new File(tempFileName)); } } catch (Exception e) { //TODO: Do something here } return tempFileName; }