Table Of Contents

Previous topic

_bmpshape

Next topic

_canvas

This Page

phoenix_title BitmapShape

Draws a bitmap (non-resizable).


class_hierarchy Inheritance Diagram

Inheritance diagram for class BitmapShape

Inheritance diagram of BitmapShape


super_classes Known Superclasses

lib.ogl._basic.RectangleShape


method_summary Methods Summary

__init__  
GetBitmap Return a the bitmap associated with this shape.
GetFilename Return the bitmap filename.
OnDraw  
SetBitmap Set the bitmap associated with this shape.
SetFilename Set the bitmap filename.
SetSize  

api Class API



class BitmapShape(RectangleShape)

Draws a bitmap (non-resizable).


Methods



__init__(self)


GetBitmap(self)

Return a the bitmap associated with this shape.



GetFilename(self)

Return the bitmap filename.



OnDraw(self, dc)


SetBitmap(self, bitmap)

Set the bitmap associated with this shape.

You can delete the bitmap from the calling application, since reference counting will take care of holding on to the internal bitmap data.



SetFilename(self, f)

Set the bitmap filename.



SetSize(self, w, h, recursive = True)