Any reason to use "newImageRect()" with image sheets?

From the documentation (blog) on image sheets, both image APIs… newImage() and newImageRect() are shown as valid methods to display images from image sheets. But as far as I can tell, the latter is totally unnecessary since the image sizes, and thus the per-device scaling… is pulled from the sheet frame table , not the image display call.

For example:

local fish = display.newImage( imageSheet, 2 )  
local frog = display.newImageRect( imageSheet, 4, 40, 82 )  

In the latter case, the width and height parameters (40 and 82) that typically were needed for newImageRect() are now pulled from the image sheet frame setup table.

Can anybody confirm that this is true? Jonathan perhaps, since you wrote the blog post and seem to have detailed knowledge of the method behind these APIs? It would certainly simplify my code if I could just use the classic “newImage()” and simply define a frame number! :slight_smile:

Regards,
Brent Sorrentino
[import]uid: 9747 topic_id: 27864 reply_id: 327864[/import]