*************** wx.ImageHandler *************** Inheritance diagram for `wx.ImageHandler`: | .. inheritance-diagram:: wx.ImageHandler | Description =========== This is the base class for implementing image file loading/saving, and image creation from data. It is used within `wx.Image `_ and is not normally seen by the application. If you wish to extend the capabilities of `wx.Image`, derive a class from `wx.ImageHandler` and add the handler using `wx.Image.AddHandler `_ in your application initialisation. .. seealso:: `wx.Image `_ Derived From ^^^^^^^^^^^^^ * `wx.Object `_ Known Subclasses ^^^^^^^^^^^^^^^^ `wx.ANIHandler`, `wx.BMPHandler`, `wx.CURHandler`, `wx.GIFHandler`, `wx.ICOHandler`, `wx.JPEGHandler`, `wx.PCXHandler`, `wx.PNGHandler`, `wx.PNMHandler`, `wx.PyImageHandler `_, `wx.TGAHandler`, `wx.TIFFHandler`, `wx.XPMHandler` Methods Summary ^^^^^^^^^^^^^^^ * `__init__ <#__init__>`_ * `CanRead <#CanRead>`_ * `CanReadStream <#CanReadStream>`_ * `GetExtension <#GetExtension>`_ * `GetMimeType <#GetMimeType>`_ * `GetName <#GetName>`_ * `GetType <#GetType>`_ * `SetExtension <#SetExtension>`_ * `SetMimeType <#SetMimeType>`_ * `SetName <#SetName>`_ * `SetType <#SetType>`_ Properties Summary ^^^^^^^^^^^^^^^^^^ * `Extension <#Extension>`_ * `MimeType <#MimeType>`_ * `Name <#Name>`_ * `Type <#Type>`_ Class API ========= Methods ^^^^^^^ .. method:: __init__() `No docstrings available for this method.` -------- .. method:: CanRead(name) | **Parameters:** * `name` (string) | **Returns:** `bool` -------- .. method:: CanReadStream(stream) | **Parameters:** * `stream` (`wx.InputStream `_) | **Returns:** `bool` -------- .. method:: GetExtension() Gets the file extension associated with this handler. | **Returns:** `string` -------- .. method:: GetMimeType() Gets the MIME type associated with this handler. | **Returns:** `string` -------- .. method:: GetName() Gets the name of this handler. | **Returns:** `string` -------- .. method:: GetType() Gets the image type associated with this handler. | **Returns:** `long` -------- .. method:: SetExtension(extension) Sets the handler extension. **Parameters:** * `extension` (string): Handler extension. -------- .. method:: SetMimeType(mimetype) Sets the handler MIME type. **Parameters:** * `mimetype` (string): Handler MIME type. -------- .. method:: SetName(name) Sets the handler name. **Parameters:** * `name` (string): Handler name. -------- .. method:: SetType(type) Sets the handler type. **Parameters:** * `type` (long): Handler type. -------- Properties ^^^^^^^^^^ .. attribute:: Extension See `GetExtension <#GetExtension>`_ and `SetExtension <#SetExtension>`_ .. attribute:: MimeType See `GetMimeType <#GetMimeType>`_ and `SetMimeType <#SetMimeType>`_ .. attribute:: Name See `GetName <#GetName>`_ and `SetName <#SetName>`_ .. attribute:: Type See `GetType <#GetType>`_ and `SetType <#SetType>`_