Image Not Shown

Hi, I’m new with corona. I would like to ask, why my image not shown"appear" when I try using in corona simulator? 

display.newImage(“myimage.png”) 

no error message, just keep black screen on simulator. But when I try using a sample image “icon” and it appear perfectly. it’s someting wrong with my own image? Btw, I made it from adobe illustrator.

I apologize if this question had been asked.

Are you sure there are no messages in your console.log? Failure to load an image usually generates a warning. It won’t be a popup error in the simulator but a message in yellow text in the console.

But yes, a corrupt image could be a problem. An image that is too large could be a problem.

Rob

Thanks for answering my question.

After I wrote the initial post, I can solve this problem. Turned out to be as you say. Drawing too large. My drawing is 6000 x 3500. Now I can show the images in the simulator after shrink the image.

Can you advise me what is the width and height suitable for the simulator? not less and not exceed for simulator.

thank you so much

2048x2048 is the largest image we can realistically load on Android due to heap size limits on many devices.

Are you sure there are no messages in your console.log? Failure to load an image usually generates a warning. It won’t be a popup error in the simulator but a message in yellow text in the console.

But yes, a corrupt image could be a problem. An image that is too large could be a problem.

Rob

Thanks for answering my question.

After I wrote the initial post, I can solve this problem. Turned out to be as you say. Drawing too large. My drawing is 6000 x 3500. Now I can show the images in the simulator after shrink the image.

Can you advise me what is the width and height suitable for the simulator? not less and not exceed for simulator.

thank you so much

2048x2048 is the largest image we can realistically load on Android due to heap size limits on many devices.