Documentation Set for Swarm 2.2
Prev | Reference VIII. Gui Library | Next

# Pixmap

## Name

Pixmap -- A class for drawing color bitmaps on a Raster.

## Description

A class for drawing color bitmaps on a Raster. The bitmaps are stored in the Portable Network Graphics format.

## Protocols adopted by Pixmap

Drawer Create Drop CREATABLE

## Methods

### Phase: Creating

- - setDecorationsFlag: (BOOL)decorationsFlag
  Specify whether or not window manager decorations for a widget should be included.

- - setWidget: (id <Widget>)widget
  Create a pixmap from a widget, or from the root window if widget is nil.

- - setDirectory: (const char *)path
  Specify the directory to find the PNG file.

- - setFile: (const char *)filename
  Create a pixmap from a PNG file.

### Phase: Using

- - (void)save: (const char *)filename
  Save the pixmap to a file.

- - (unsigned)getHeight
  Get the height of the bitmap in pixels.

- - (unsigned)getWidth
  Get the width of the bitmap in pixels.

- - (void)setRaster: (id <Raster>)raster
  Set the raster that the pixmap will be shown on. It's used to augment raster the color palette as necessary.

Prev | Home | Next
OvalNodeItem | Up | ProbeCanvas