This should be used by all programs that need to write images.
They should construct the writer, call the arghandler for
each command line argument, and finally send the image.
|
Methods
|
|
|
|
|
Begin
|
Begin ( self, filename )
Part of ImageSink protocol |
|
|
End
|
End ( self )
Part of ImageSink protocol |
|
|
FinalEnd
|
FinalEnd ( self )
Part of ImageSink protocol |
|
|
Hand
|
Hand ( self, filename )
Return the handler (function) for images of this type
For internal use.
|
Exceptions
|
|
ValueError( "Can not write images of this type: %s" % filename )
|
|
|
|
HeaderInfo
|
HeaderInfo ( self, h )
Part of ImageSink protocol |
|
|
SetFormat
|
SetFormat ( self, format )
Part of ImageSink protocol |
|
|
SetOutputDatatype
|
SetOutputDatatype ( self, datatype )
Part of ImageSink protocol |
|
|
SetOutputFilename
|
SetOutputFilename ( self, outfilename )
Part of ImageSink protocol |
|
|
SetOutputFilenamePrefix
|
SetOutputFilenamePrefix ( self, outfilenameprefix )
Part of ImageSink protocol |
|
|
__del__
|
__del__ ( self )
Destructor |
|
|
__getattr__
|
__getattr__ ( self, attr )
Handle all ImageSink functions that are not explicitly handled.
Sends all requests by proxy to the ImageSink client. |
|
|
__init__
|
__init__ ( self )
Constructor.
Performs some initialisation. |
|
|
arghandler
|
arghandler ( self, s )
Command line argument handler.
Should be called once for each command line argument of the program.
If the argument is handled, this will return 1; otherwise 0. |
|
|
setscale
|
setscale (
self,
scalefactor=None,
force=0,
)
Set the scaling factor.
If force is true, even rescale if the range is smaller than 65536. |
|
|
setshift
|
setshift ( self, shift=None )
Set the value shift. |