com.aspose.imaging
Class ColorTranslator

java.lang.Object
  extended by com.aspose.imaging.ColorTranslator

public final class ColorTranslator
extends java.lang.Object

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


Method Summary
static Color fromHtml(java.lang.String htmlColor)
           Takes color from the HTML color.
static Color fromOle(int oleColor)
           Takes color from the OLE color.
static Color fromWin32(int win32Color)
           Takes color from the HTML color.
static java.lang.String toHtml(Color c)
           Creates HTML color from the color.
static int toOle(Color c)
           Translates OLE color to color.
static int toWin32(Color c)
           Translates the color to win32 color.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fromHtml

public static Color fromHtml(java.lang.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 java.lang.String toHtml(Color c)

Creates HTML color from the color.

Parameters:
c - The color class.
Returns:
The html sring 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.