Generic Image Reader.
This is the class to use for reading any kind of images.
|
Methods
|
|
Hand Read ReadFile SetClient __init__
|
|
|
Hand
|
Hand ( self, filename )
Return the handler for a file based on the file name.
Used internally.
|
Exceptions
|
|
ValueError( "Can not read images of this type: %s" % filename )
|
|
|
|
Read
|
Read ( self, filename )
Read the image file named by filename |
|
|
ReadFile
|
ReadFile (
self,
file,
filename,
)
Read the open image file file that has the file name filename
This is not supported by all image types, so its use is discouraged |
|
|
SetClient
|
SetClient ( self, sink )
Change the disposition of the images.
parameters:
- sink
an ImageSink where future images will be sent.
|
|
|
__init__
|
__init__ ( self, sink )
Constructor.
parameters:
- sink
an ImageSink where the images will be sent.
|
|