Module screenBitmap :: Class ScreenBitmap
[hide private]
[frames] | no frames]

Class ScreenBitmap

source code

object --+
         |
        ScreenBitmap

Provides a way to capture a bitmap of any part of the screen. The object caches needed DCs and bitmaps therefore an instance of an object only handles one size of bitmap.

Instance Methods [hide private]
 
__init__(self, width, height)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__del__(self) source code
 
captureImage(self, x, y, w, h)
Captures the part of the screen starting at x,y and extends by w (width) and h (height), and stretches/shrinks it to fit in to the object's bitmap size.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, width, height)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • width - the width of the resulting bitmap in rgb pixels.
  • height - the height of the bitmap in rgb pixels.
Overrides: object.__init__