Package Things :: Module BagOfStuff :: Class AnImage
[frames] | no frames]

Class AnImage

object --+
         |
        AnImage

Holds a pixbuffer, width and height of a loaded image. Access this via a Bag Of Stuff.

Example

bos['somekey'].pixbuf

Instance Methods
 
__init__(self, paf)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
draw(self, ctx, x, y)
Alternative: Use Cairo to draw a pixbuf: ctx.set_source_pixbuf(pixbuf,x,y)

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables
  height
Of the image
  pixbuf
The actual image data.
  width
Of the image
Properties

Inherited from object: __class__

Method Details

__init__(self, paf)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

draw(self, ctx, x, y)

 

Alternative: Use Cairo to draw a pixbuf: ctx.set_source_pixbuf(pixbuf,x,y)

Parameters:
  • ctx - Your cairo context
  • x, y - Lo, go unto and draw.