Packages

 

com.aspose.cad.palettehelper

Class AdjustPalette



  • public class AdjustPalette
    extends Object

    Color palette adjustment class

    • Constructor Detail

      • AdjustPalette

        public AdjustPalette()
    • Method Detail

      • process

        public static com.aspose.cad.IColorPalette process(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:
        com.aspose.cad.cadexceptions.ImageException - Can't perform gamma-correction.
      • process

        public static com.aspose.cad.IColorPalette process(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.
        com.aspose.cad.cadexceptions.ImageException - Can't perform gamma-correction.

Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.