Wrapper class for the PIL Image class.
The main purpose for this base class is to provide a consistent
interface for defining bitmaps constructed in various different
ways. The resulting bitmap is a PIL Image object that can be
accessed using the normal PIL interface.
If subclasses use the _arrayToImage() function provided, any
pixels larger than the maximum that can be displayed will
be counted before they are clipped; these are stored in the
clipped_pixels attribute.
|
|
__init__(self,
image)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
|
|
__getstate__(self)
Return the object's state (as in the superclass), but replace
the 'image' attribute's Image with a string representation. |
source code
|
|
|
|
__setstate__(self,
state)
Load the object's state (as in the superclass), but replace
the 'image' string with an actual Image object. |
source code
|
|
|
|
show(self)
Renaming of Image.show() for the Bitmap.bitmap attribute. |
source code
|
|
|
|
|
|
|
|
|
|
zoom(self,
factor)
Return a resized Image object, given the input 'factor'
parameter. |
source code
|
|
|
|
|
|
Inherited from param.parameterized.Parameterized:
__repr__,
__str__,
debug,
defaults,
force_new_dynamic_value,
get_param_values,
get_value_generator,
inspect_value,
message,
print_param_values,
script_repr,
set_dynamic_time_fn,
state_pop,
state_push,
verbose,
warning
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__
|