Lightningbeam/PyGUI-2.5.3/Doc/Pixmap.html

24 lines
953 B
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>PyGUI - Class Pixmap</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></head>
<body>
<h1>class <tt>Pixmap(<a href="ImageBase.html">ImageBase</a>)</tt></h1>
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.<br>
<h2>Constructor</h2>
<blockquote>
<dl>
<dt><tt>Pixmap(width</tt><tt>,</tt> <tt>height)</tt></dt>
<dd>Creates a new, empty Pixmap with the given width and height.</dd>
</dl>
</blockquote><h2>Methods</h2><blockquote><dl><dt><tt>with_canvas(proc)</tt></dt>
<dd>Calls the given procedure with a <a href="Canvas.html">Canvas</a>
suitable for drawing on this Pixmap. The canvas is valid only for the duration
of the call, and should not be retained beyond it.</dd>
</dl>
</blockquote>
---<br>
<br>
</body></html>