wx.JPEGHandler¶This is the image handler for the JPEG format.
See also
Methods Summary¶__init__ |
Default constructor for wx.JPEGHandler. |
DoCanRead |
Called to test if this handler can read an image from the given stream. |
GetLibraryVersionInfo |
Retrieve the version information about the JPEG library used by this handler. |
LoadFile |
Loads a image from a stream, putting the resulting data into image. |
SaveFile |
Saves a image in the output stream. |
Class API¶wx.JPEGHandler(ImageHandler)¶Possible constructors:
JPEGHandler()
This is the image handler for the JPEG format.
__init__(self)¶Default constructor for wx.JPEGHandler.
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
| Parameters: | stream (wx.InputStream) – |
|---|---|
| Return type: | bool |
GetLibraryVersionInfo()¶Retrieve the version information about the JPEG library used by this handler.
| Return type: | wx.VersionInfo |
|---|
New in version 2.9.2.
LoadFile(self, image, stream, verbose=True, index=-1)¶Loads a 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.
| Parameters: |
|
|---|---|
| Return type: | bool |
| Returns: |
|
See also
SaveFile(self, image, stream, verbose=True)¶Saves a image in the output stream.
| Parameters: |
|
|---|---|
| Return type: | bool |
| Returns: |
|
See also