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)

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.20040428.rpd on Tue Apr 26 14:24:28 2005 http://epydoc.sf.net