I see what is going on now. The frame size used for the LCD Shield swaps the width and height of the frame.
For standard QQVGA, QVGA and VGA, the width of the rectangular framesize is greater than the height:
However, for the rectangular LCD Shield the “special” framesize used in the example has a width smaller than the height:
sensor.QQVGA2 # Special 128x160 framesize for LCD Shield.
I developed my application with the IDE using the QVGA framesize (adding text, etc to the image), but when trying to display this on the LCD Shield, because the frame width and height are inverted, the image on the LCD cannot be scaled to fit. When I rotated and scaled the framebuffer to match the inverted framesize of the LCD, the IDE display is then messed up.
Is it possible to provide and option to write the image to the LCD with the width x height aspects as the VGA standard (i.e. width > height)?