| |
- __builtin__.object
-
- PngBitmap
- PngColor
class PngBitmap(__builtin__.object) |
|
Utilities for parsing and inspecting inspecting a PNG |
|
Methods defined here:
- GetPixelColor(self, x, y)
- Returns a PngColor for the pixel at (x, y)
- WriteFile(self, path)
- __init__(self, base64_png)
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
- height
- Height of the snapshot
- width
- Width of the snapshot
|
class PngColor(__builtin__.object) |
|
Encapsulates an RGB color retreived from a PngBitmap |
|
Methods defined here:
- AssertIsRGB(self, r, g, b, tolerance=0)
- AssertIsRGBA(self, r, g, b, a, tolerance=0)
- IsEqual(self, expected_color, tolerance=0)
- Verifies that the color is within a given tolerance of
the expected color
- __init__(self, r, g, b, a=255)
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
| |