# Pixmap (leaf)

Displays a pixmap, centered in the space available. The image in the pixmap is a resource in ``pnm'' format, representing one of three types of images: ``pbm'' is a 1-bit-deep (bitmap) image; ``pgm'' is a greyscale image; ``ppm'' is a color image.

Main `P`
  (Text)
  The name of a resource containing the image for a pixmap. The image must be in ``pnm'' format.
Accurate
  (Boolean, `FALSE`)
  If the image is is greyscale or color (pgm or ppm), this property determines how each RGB value in the pixmap should be displayed on a color-mapped display.
NeedsGamma
  (Boolean, `FALSE`)
  If the image is is greyscale or color (pgm or ppm), this property indicates whether to let Trestle gamma-correct the colors.

Notes
  The current foreground and background colors are used for bitmap (pbm) images. In all three formats, if the image is smaller than the space available, the current background color is used for the surrounding space.
Shape
  The shape of the pixmap, with infinite stretchability in both dimensions.
See Also
  Texture