Performs color translations. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
More...
#include "color_translator.h"
Performs color translations. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
◆ FromHtml()
static ASPOSECPP_SHARED_API Color System::Drawing::ColorTranslator::FromHtml |
( |
const System::String & |
name | ) |
|
|
static |
Converts the specified HTML color representation to the equvivalent Color object.
- Parameters
-
name | The name of HTML color to translate |
- Returns
- A Color object that represents the specified HTML color
◆ FromWin32()
static ASPOSECPP_SHARED_API Color System::Drawing::ColorTranslator::FromWin32 |
( |
int |
win32_color | ) |
|
|
static |
Converts the specified Windows color to the equvivalent Color object.
- Parameters
-
win32_color | The Windows color to convert |
- Returns
- A Color object that represents the specified Windows color
◆ ToHtml()
static ASPOSECPP_SHARED_API String System::Drawing::ColorTranslator::ToHtml |
( |
const Color & |
color | ) |
|
|
static |
Converts the specified Color object to the string representation of equivalent HTML color.
- Parameters
-
color | A Color object to translate |
- Returns
- The name of HTML color equivalent to the color represented by
color