next up previous contents
Next: Displaying 2D objects Up: Displaying images and 2D Previous: Displaying images and 2D

Displaying an image

This first example simply displays an image in a window. The image is loaded into a tableau which displays images (vgui_image_tableau) and this is put inside a 2D viewer tableau (vgui_viewer2d). The 2D viewer adds the functionality that would commonly be required for viewing 2D images and objects such as zooming and moving which part of the image is displayed.

The viewer2D provides the following functionality:

control and right mouse button zoom out
control and left mouse button zoom in
control and middle mouse button image can be dragged around the display
  area while the button is held down


Target Junior User