Class AsposeCellsColorHelper
- java.lang.Object
-
- com.nuix.superutilities.reporting.AsposeCellsColorHelper
-
public class AsposeCellsColorHelper extends java.lang.Object
A class containing helper methods for working with Aspose Cells colors.
-
-
Constructor Summary
Constructors Constructor Description AsposeCellsColorHelper()
-
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 degreestatic com.aspose.cells.Color
getTint(com.aspose.cells.Color baseColor, float degree)
Provides a tinted variation of the provided base colorstatic int
tintChannel(int colorChannelValue, float degree)
Tints a particular color channel value by a certain degree.
-
-
-
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 tintdegree
- 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 tinteddegree
- To what extend the base color is tinted- Returns:
- Tinted copy of the provided base color
-
-