//We take the complement of latProportion to flip it.
int x=(int)(longProportion*smallerDimension);
int y=(int)(latProportion*smallerDimension);
double x=(longProportion*smallerDimension);
double y=(latProportion*smallerDimension);
//Because we try to maintain the correct aspect ratio, we will end up with "spare" pixels along the larger dimension (e.g., width 800, height 600, 200 extra pixels along width).