wx.Quantize

Inheritance diagram for wx.Quantize:



Description

Performs quantization, or colour reduction, on a wx.Image.

Functions in this class are static and so a wx.Quantize object need not be created.

Derived From

Methods Summary

Class API

Methods

__init__()
No docstrings available for this method.

Quantize(src, dest, desiredNoColours=236, flags=wx.QUANTIZE_INCLUDE_WINDOWS_COLOURS|wx.QUANTIZE_FILL_DESTINATION_IMAGE)

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.

Parameters:

  • src (wx.Image): the source image.
  • dest (wx.Image): the destination image.
  • desiredNoColours (int)
  • flags (int)

Returns:

bool