com.aspose.cells

Class ColorHelper

  • java.lang.Object
    • com.aspose.cells.ColorHelper
public class ColorHelper 
extends java.lang.Object

Provides helper functions about color.

Method Summary
staticColorfromOleColor(intoleColor)
Convert OLE_COLOR.
staticinttoOleColor(Color color, Workbook workbook)
Convert color to OLE_COLOR
 

    • Method Detail

      • fromOleColor

        public static Color fromOleColor(int oleColor)
        Convert OLE_COLOR.
        Parameters:
        oleColor - The value of OLE_COLOR.
        Returns:
        The com.aspose.cells.Color object.
      • toOleColor

        public static int toOleColor(Color color, Workbook workbook)
        Convert color to OLE_COLOR
        Parameters:
        color - The com.aspose.cells.Color object.
        workbook -
        Returns:
        The value of OLE_COLOR