class Pixmap(ImageBase)

A Pixmap is an offscreen area that can be used both as a destination for drawing and a source of image data for drawing in a View or another Pixmap.

Constructor

Pixmap(width, height)
Creates a new, empty Pixmap with the given width and height.

Methods

with_canvas(proc)
Calls the given procedure with a Canvas suitable for drawing on this Pixmap. The canvas is valid only for the duration of the call, and should not be retained beyond it.
---