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:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user