Hello everybody, I'm begginer in this forum and I'm programming an aplication.
I have problems with images, I'm trying to show an image "PNG", 90.4Kb, with a resolution 1600x1000.
private Image imagen=null;
public Image getImagen(){
if(imagen==null){
try {
mapa = Image.createImage("imagen.png");
} catch (IOException ex) {
System.out.println("Error");
}}
return imagen;
}
protected void paint(Graphics g) {
g.drawImage(getImagen(), 0, 0, 0);
}
it works in nokia 5530, but doesn't work in nokia x2-00, and when I change the image's size to a resolution of 400x250, it works in both. What is happenning?, what can I do?

Reply With Quote

