Packages

 

com.aspose.cad.palettehelper

Class AdjustPalette



  • public class AdjustPalette
    extends Object

    Color palette adjustment class

    • Constructor Detail

      • AdjustPalette

        public AdjustPalette()
    • Method Detail

      • process_internalized

        public static IColorPalette process_internalized(RasterImage image,
                                                         int entriesCount)

        Adapts palette to the image colors - short call specification.

        Parameters:
        image - The image.
        entriesCount - The desired palette entries count.
        Returns:
        Adapted to the image colors palette
        Throws:
        ImageException - Can't perform gamma-correction.
      • process_internalized

        public static IColorPalette process_internalized(RasterImage image,
                                                         int entriesCount,
                                                         int colorQuantizationMethod,
                                                         int colorCompareMethod)

        Adapts palette to the image colors.

        Parameters:
        image - The image.
        entriesCount - The desired palette entries count.
        colorQuantizationMethod - The color quantization method.
        colorCompareMethod - The color compare method.
        Returns:
        Adapted to the image colors palette
        Throws:
        com.aspose.ms.System.Exception - Can't perform color palette adjustment.
        ImageException - Can't perform gamma-correction.