Packages

 

com.aspose.cad

Class ColorTranslator



  • public final class ColorTranslator
    extends Object

    Translates colors to and from GDI+ Color structures. This class cannot be inherited.

    • Method Detail

      • fromHtml

        public static Color fromHtml(String htmlColor)

        Takes color from the HTML color.

        Parameters:
        htmlColor - HTML color.
        Returns:
        The color.
      • fromOle

        public static Color fromOle(int oleColor)

        Takes color from the OLE color.

        Parameters:
        oleColor - OLE color.
        Returns:
        The color.
      • fromWin32

        public static Color fromWin32(int win32Color)

        Takes color from the HTML color.

        Parameters:
        win32Color - Win32 color.
        Returns:
        The color.
      • toHtml

        public static String toHtml(Color c)

        Creates HTML color from the color.

        Parameters:
        c - The color class.
        Returns:
        The html string color.
      • toOle

        public static int toOle(Color c)

        Translates OLE color to color.

        Parameters:
        c - The color.
        Returns:
        The OLE color.
      • toWin32

        public static int toWin32(Color c)

        Translates the color to win32 color.

        Parameters:
        c - The color.
        Returns:
        The win32 color.