Class AsposeCellsColorHelper


  • public class AsposeCellsColorHelper
    extends java.lang.Object
    A class containing helper methods for working with Aspose Cells colors.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.aspose.cells.Color getTint​(int red, int green, int blue, float degree)
      Tints a color by the given degree
      static com.aspose.cells.Color getTint​(com.aspose.cells.Color baseColor, float degree)
      Provides a tinted variation of the provided base color
      static int tintChannel​(int colorChannelValue, float degree)
      Tints a particular color channel value by a certain degree.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AsposeCellsColorHelper

        public AsposeCellsColorHelper()
    • Method Detail

      • tintChannel

        public static int tintChannel​(int colorChannelValue,
                                      float degree)
        Tints a particular color channel value by a certain degree.
        Parameters:
        colorChannelValue - Color channel value (0-255) to tint
        degree - The degree in which to tint the color channel.
        Returns:
        A tinted version of the color channel value
      • getTint

        public static com.aspose.cells.Color getTint​(int red,
                                                     int green,
                                                     int blue,
                                                     float degree)
        Tints a color by the given degree
        Parameters:
        red - Red color channel value (0-255)
        green - Green color channel value (0-255)
        blue - Blue color channel value (0-255)
        degree - Degree to which all the color channels will be tinted
        Returns:
        A new Color object which has been tinted the specified amount
      • getTint

        public static com.aspose.cells.Color getTint​(com.aspose.cells.Color baseColor,
                                                     float degree)
        Provides a tinted variation of the provided base color
        Parameters:
        baseColor - A base color which will be tinted
        degree - To what extend the base color is tinted
        Returns:
        Tinted copy of the provided base color