CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
color_translator.h
1
2#ifndef _aspose_drawing_color_translator_h_
3#define _aspose_drawing_color_translator_h_
4
5#include "system/string.h"
6#include "drawing/color.h"
7
9#define WIN32_RED_SHIFT 0
11#define WIN32_GREEN_SHIFT 8
13#define WIN32_BLUE_SHIFT 16
14
15namespace System { namespace Drawing {
16
22{
23public:
27 static ASPOSECPP_SHARED_API Color FromWin32(int win32_color);
28
32 static ASPOSECPP_SHARED_API Color FromHtml(const System::String& name);
36 static ASPOSECPP_SHARED_API String ToHtml(const Color& color);
37};
38
39}} // System::Drawing
40
41#endif // _aspose_drawing_color_translator_h_
Represents a color. This type should be allocated on stack and passed to functions by value or by ref...
Definition: color.h:24
Performs color translations. Objects of this class should only be allocated using System::MakeObject(...
Definition: color_translator.h:22
static String ToHtml(const Color &color)
Converts the specified Color object to the string representation of equivalent HTML color.
static Color FromWin32(int win32_color)
Converts the specified Windows color to the equvivalent Color object.
static Color FromHtml(const System::String &name)
Converts the specified HTML color representation to the equvivalent Color object.
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Definition: db_command.h:9