Next: Miscellaneous Operations Up: DrawClear and Flip Previous: Strings

## Pixmaps

- `(((draw-pixmap-posn filename type) viewport) posn color)`

  Draws a pixmap into viewport with its upper left corner at position posn. type is a symbol, one of `'gif`, `'xbm`, `'xpm`, `'bmp`, `'pict` or `'unknown`, and defaults to `'unknown`. If type is `'unknown` then the content of the file is examined to determine the type. All formats are supported on all platforms except `'pict` which is only supported under MacOS.

  The argument color is only used when the pixmap is black and white. In that case, the color is used instead of black in the drawn image.

- `((draw-pixmap viewport) filename p color)`
  Draws a pixmap into viewport w with its upper left corner at position p. If color is not `#f` it is passed to `set-viewport-pen` with the viewport. It defaults to `#f`.