#
CwOptimizePalette

### Syntax:

    call CwOptimizePalette

### Description:

If your display supports only 256 colors, P>G PRO can be made to adjust the palette to make the image look better with available colors. Calling this procedure does this. The script halts until the optimization procedure is completed. If the display has more than 256 colors, this procedure does nothing.

### Example:

    call CwOptimizePalette

### Remarks:

+ Be warned that optimizing the palette can take a long time. Thus, it is usually not a good idea to use this procedure repeatedly.

+ Palette optimization is run in the background. This means that the palette is probably not optimized when the procedure returns.

+ Optimizing the palette does NOT work on displays with less than 256 colors since it generally does not do any good.

Functions by NAME | Index | Functions by PURPOSE