Compute width and height of image
The final two statements in
Listing 2
:
Use the values stored in
lowerRightX
and
lowerRightY
To compute the width and height of the image
Under the assumption that the coordinates of the upper-left corner are 0,0.