
**Inheritance:**
java.lang.Object
```
public final class ColorTranslator
```

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

| Method | Description |
| --- | --- |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [fromHtml(String htmlColor)](#fromHtml-java.lang.String-) | Takes color from the HTML color. |
| [fromOle(int oleColor)](#fromOle-int-) | Takes color from the OLE color. |
| [fromWin32(int win32Color)](#fromWin32-int-) | Takes color from the HTML color. |
| [getClass()](#getClass--) |  |
| [hashCode()](#hashCode--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [toHtml(Color c)](#toHtml-com.aspose.psd.Color-) | Creates HTML color from the color. |
| [toOle(Color c)](#toOle-com.aspose.psd.Color-) | Translates OLE color to color. |
| [toString()](#toString--) |  |
| [toWin32(Color c)](#toWin32-com.aspose.psd.Color-) | Translates the color to win32 color. |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | java.lang.Object |  |

**Returns:**
boolean
### fromHtml(String htmlColor) {#fromHtml-java.lang.String-}
```
public static Color fromHtml(String htmlColor)
```


Takes color from the HTML color.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| htmlColor | java.lang.String | HTML color. |

**Returns:**
[Color](../../com.aspose.psd/color) - The color.
### fromOle(int oleColor) {#fromOle-int-}
```
public static Color fromOle(int oleColor)
```


Takes color from the OLE color.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| oleColor | int | OLE color. |

**Returns:**
[Color](../../com.aspose.psd/color) - The color.
### fromWin32(int win32Color) {#fromWin32-int-}
```
public static Color fromWin32(int win32Color)
```


Takes color from the HTML color.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| win32Color | int | Win32 color. |

**Returns:**
[Color](../../com.aspose.psd/color) - The color.
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**Returns:**
int
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### toHtml(Color c) {#toHtml-com.aspose.psd.Color-}
```
public static String toHtml(Color c)
```


Creates HTML color from the color.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| c | [Color](../../com.aspose.psd/color) | The color class. |

**Returns:**
java.lang.String - The html string color.
### toOle(Color c) {#toOle-com.aspose.psd.Color-}
```
public static int toOle(Color c)
```


Translates OLE color to color.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| c | [Color](../../com.aspose.psd/color) | The color. |

**Returns:**
int - The OLE color.
### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### toWin32(Color c) {#toWin32-com.aspose.psd.Color-}
```
public static int toWin32(Color c)
```


Translates the color to win32 color.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| c | [Color](../../com.aspose.psd/color) | The color. |

**Returns:**
int - The win32 color.
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

