display.newImageRect without having to pass width/height?

Is there not a way to create a “display.newImageRect” without having to pass the image width/height?  

Would be good if Corona could work this out for you.

In the meantime is there a method I could use that doesn’t cause console warnings/errors?  (I say this as I recall I thought there was one method in the past I used but it gave warnings)

Quite simply:

[lua]

display.newImage(“myImage.png”)

[/lua]

  • C

Oh sorry. I meant to say I needed to use automatic image selection as one of the requirements.

Quite simply:

[lua]

display.newImage(“myImage.png”)

[/lua]

  • C

Oh sorry. I meant to say I needed to use automatic image selection as one of the requirements.