wx.ImageHandler

Inheritance diagram for 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.

See also

wx.Image

Derived From

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

Properties Summary

Class API

Methods

__init__()
No docstrings available for this method.

CanRead(name)

Parameters:

  • name (string)

Returns:

bool


CanReadStream(stream)

Parameters:


Returns:

bool


GetExtension()

Gets the file extension associated with this handler.


Returns:

string


GetMimeType()

Gets the MIME type associated with this handler.


Returns:

string


GetName()

Gets the name of this handler.


Returns:

string


GetType()

Gets the image type associated with this handler.


Returns:

long


SetExtension(extension)

Sets the handler extension.

Parameters:

  • extension (string): Handler extension.

SetMimeType(mimetype)

Sets the handler MIME type.

Parameters:

  • mimetype (string): Handler MIME type.

SetName(name)

Sets the handler name.

Parameters:

  • name (string): Handler name.

SetType(type)

Sets the handler type.

Parameters:

  • type (long): Handler type.

Properties

Extension
See GetExtension and SetExtension
MimeType
See GetMimeType and SetMimeType
Name
See GetName and SetName
Type
See GetType and SetType