Alpha version!

Started to add speed type string to the visual speedometer
Chaged some ways of reading or copying data
This commit is contained in:
2023-08-31 11:09:40 +02:00
parent c04963cbe6
commit 47e475cecb
5 changed files with 98 additions and 78 deletions

View File

@@ -11,4 +11,16 @@ public class ImageHandler {
g2d.drawImage(img1,0,0,null);
return out;
}
public static BufferedImage clone(BufferedImage image) {
BufferedImage out = new BufferedImage(image.getWidth(), image.getHeight(), BufferedImage.TYPE_INT_ARGB);
Graphics2D g2d = out.createGraphics();
for(int x = 0; x < image.getWidth(); x++){
for(int y = 0; y < image.getWidth(); y++){
g2d.setColor(new Color(image.getRGB(x,y)));
g2d.fillRect(x,y,1,1);
}
}
return out;
}
}