Package wx :: Class Quantize
[frames | no frames]

Type Quantize

object --+
         |
        Quantize


Performs quantization, or colour reduction, on a wxImage.


Method Summary
  __init__(self)
  __repr__(self)
bool Quantize(src, dest, desiredNoColours, flags)
Reduce the colours in the source image and put the result into the destination image, setting the palette in the destination if needed. (Static method)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
Return hash(x)...
  __new__(T, S, ...)
Return a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
Return str(x)...

Static Method Details

Quantize(src, dest, desiredNoColours=236, flags=wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTIN...)

Reduce the colours in the source image and put the result into the destination image, setting the palette in the destination if needed. Both images may be the same, to overwrite the source image. :todo: Create a version that returns the wx.Palette used.

Parameters:
src
           (type=Image)

dest
           (type=Image)

desiredNoColours
           (type=int)

flags
           (type=int)

Returns:
bool

Generated by Epydoc 2.1.20050511.rpd on Sat Jun 16 17:01:06 2007 http://epydoc.sf.net