Home | Trees | Indices | Help |
|
---|
|
Class representing a rectangular set of pixels. Bitmaps can be obtained from any RasterNode. For nodes of type Image, the current bitmap can be set as well.
Instance Methods | |||
|
|||
|
|||
|
|||
string |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
bmp |
|
||
Inherited from Inherited from |
Properties | |
Inherited from |
Method Details |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Returns the layout of the pixels in the bitmap. Possible return values are B5G6R5, B8G8R8, B8G8R8A8, B8G8R8X8, A8B8G8R8, X8B8G8R8, R5G6B5, R8G8B8, R8G8B8A8, R8G8B8X8, A8R8G8B8, X8R8G8B8, I8 and YCbCr422. |
Returns the raw pixel data in the bitmap as a python string. This method can be used to interface to the python imaging library PIL (http://www.pythonware.com/products/pil/). |
Writes the image to a file. File format is determined using the extension. Any file format specified by ImageMagick (http://www.imagemagick.org) can be used. |
Changes the raw pixel data in the bitmap. Doesn't change dimensions or pixel format. Can be used to interface to the python imaging library PIL (http://www.pythonware.com/products/pil/).
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jan 8 16:09:00 2010 | http://epydoc.sourceforge.net |