Contents
Navigation
Home User Reference Other Resources


The color style effect allows you to apply two color stylizations to a single source. They are:

  • Solarization: adjusts the color balance of the source by constructing a table of replacement color values from two parameters. These parameters are the maximum color intensity and the peak point of the color spread. The table starts at zero intensity and increases to the maximum intensity at the peak point. After that it falls back to zero
  • Posterization: reduces the number of colors in an image by replacing all pixels whose color is in a consecutive range with the middle color from that range. This produces a "color banding" effect

Both these effects work on a per–channel basis, which means that the red, green and blue components of each pixel are independently passed through the respective algorithm.

For solarization, a maximum intensity of 1 and a peak point of 128 are the most commonly used values.

The color style effect takes a maximum of one source.

The QTPlgEffectColorStyleDesc class implements methods and properties to setup programmatically the parameters of the color style effect provided natively by QuickTime.







The QTPlgEffectColorStyleDesc class constructors are called when you create a new instance of the class, while the ˜QTPlgEffectColorStyleDesc class destructor, is called automatically when the class is no more in use. Also, you can invoke the class destructor by setting the instance of the class to nil.
Once a new class instance is returned, it is good practice to check the class property to be sure that the new object can be used. For discussion about the validity of an effect description instance see the documentation relative to the .

The class provides you with the following initializer methods:
()
This is the default constructor. Use this constructor to create a completely new data descriptor container in memory.
(other as )
This is the copy constructor. The properties of the object to be copied will be used to initialize the new class instance properties. Note that the parameter passed is a generic object; this is due to the fact that you could use a descriptor obtained by the that returns a generic . Anyway, the class makes a control to check if the passed object is suitable for use and, if not, will initialize the class instance with default values

specifies the maximum intensity of the solarization table
specifies the peak point of the solarization table
determines the number of colors that are grouped and replaced with the mid–range color