var imgBox = scene.getBoxById("startImgBox"); if (imgBox) { var bitmap = imgBox.bitmap; if (bitmap) { shell.print("width = " + bitmap.width); shell.print("height = " + bitmap.height); } }