The image (the world-window) is 640 pixels wide and 480 pixels high, and the viewport is half that size, 320 pixels wide and 240 pixels high.