This is the image handler for the TIFF
format.
See also
wx.Image, wx.ImageHandler, wx.InitAllImageHandlers
Default constructor for wx.TIFFHandler. |
|
Called to test if this handler can read an image from the given stream. |
|
Loads an image from a stream, putting the resulting data into image. |
wx.
TIFFHandler
(ImageHandler)¶Possible constructors:
TIFFHandler()
This is the image handler for the TIFF
format.
__init__
(self)¶Default constructor for wx.TIFFHandler.
DoCanRead
(self, stream)¶Called to test if this handler can read an image from the given stream.
NOTE
: this function is allowed to change the current stream position since CallDoCanRead() will take care of restoring it later
stream (wx.InputStream) –
bool
LoadFile
(self, image, stream, verbose=True, index=-1)¶Loads an image from a stream, putting the resulting data into image.
If the image file contains more than one image and the image handler is capable of retrieving these individually, index indicates which image to read from the stream.
image (wx.Image) – The image object which is to be affected by this operation.
stream (wx.InputStream) – Opened input stream for reading image data.
verbose (bool) – If set to True
, errors reported by the image handler will produce LogMessages.
index (int) – The index of the image in the file (starting from zero).
bool
True
if the operation succeeded, False
otherwise.
See also