Logo Search packages:      
Sourcecode: umit version File versions  Download package

def higwidgets::higspinner::HIGSpinnerCache::__extract_frame (   self,
  pixbuf,
  x,
  y,
  w,
  h 
) [private]

Cuts a sub pixbuffer, usually a frame of an animation.

- pixbuf is the complete pixbuf, from which a frame will be cut off
- x/y are the position
- w (width) is the is the number of pixels to move right
- h (height) is the is the number of pixels to move down

Definition at line 198 of file higspinner.py.

00198                                                  :
        """Cuts a sub pixbuffer, usually a frame of an animation.

        - pixbuf is the complete pixbuf, from which a frame will be cut off
        - x/y are the position
        - w (width) is the is the number of pixels to move right
        - h (height) is the is the number of pixels to move down
        """
        if (x + w > pixbuf.get_width()) or (y + h > pixbuf.get_height()):
            raise PixbufSmallerThanRequiredError
        return pixbuf.subpixbuf(x, y, w, h)

    def _write_animated_pixbuf_to_files(self, path_format, image_format):


Generated by  Doxygen 1.6.0   Back to index