You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zweiundvierzig/GreenfootImage.java

39 lines
742 B
Java

import java.awt.Color;
import java.awt.image.BufferedImage;
public class GreenfootImage {
private BufferedImage image = null;
public GreenfootImage(GreenfootImage i) {
image = i.getAwtImage().clone();
}
public GreenfootImage(int w, int h) {
image = new BufferedImage(w,h,BufferedImage.TYPE_INT_ARGB);
}
public GreenfootImage(String fileName) {
BufferedImage img = null;
try {
img = ImageIO.read(new File(fileName));
} catch (IOException e) {
}
image = img;
}
public GreenfootImage(String txt, int size, Color foreCol, Color backCol) {
}
public GreenfootImage(String txt, int size, Color foreCol, Color backCol, Color outline) {
}
public BufferedImage getAwtImage() {
return image;
}
}