Class ColorUtils
Inheritance
System.Object
ColorUtils
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Aurigma.DesignAtoms.dll
Syntax
public static class ColorUtils
Fields
HtmlDeviceCMYK
Declaration
public static Regex HtmlDeviceCMYK
Field Value
| Type |
Description |
| System.Text.RegularExpressions.Regex |
|
HtmlPercentCMYK
Declaration
public static Regex HtmlPercentCMYK
Field Value
| Type |
Description |
| System.Text.RegularExpressions.Regex |
|
HtmlRelativeCMYK
Declaration
public static Regex HtmlRelativeCMYK
Field Value
| Type |
Description |
| System.Text.RegularExpressions.Regex |
|
LabColorRegex
Declaration
public static Regex LabColorRegex
Field Value
| Type |
Description |
| System.Text.RegularExpressions.Regex |
|
SpotColorRegex
Declaration
public static Regex SpotColorRegex
Field Value
| Type |
Description |
| System.Text.RegularExpressions.Regex |
|
Methods
ConvertToDeviceCmykWebColor(CmykColor, String)
Declaration
public static string ConvertToDeviceCmykWebColor(CmykColor color, string rgbPreview)
Parameters
| Type |
Name |
Description |
| Aurigma.GraphicsMill.CmykColor |
color |
|
| System.String |
rgbPreview |
|
Returns
| Type |
Description |
| System.String |
|
ConvertToGmXmlColor(Color)
Declaration
public static string ConvertToGmXmlColor(Color color)
Parameters
| Type |
Name |
Description |
| Aurigma.GraphicsMill.Color |
color |
|
Returns
| Type |
Description |
| System.String |
|
ConvertToHexColor(RgbColor)
Declaration
public static string ConvertToHexColor(RgbColor color)
Parameters
Returns
| Type |
Description |
| System.String |
|
ConvertToHexColor(RgbColor)
Declaration
public static string ConvertToHexColor(RgbColor color)
Parameters
| Type |
Name |
Description |
| Aurigma.GraphicsMill.RgbColor |
color |
|
Returns
| Type |
Description |
| System.String |
|
ConvertToLabString(LabColor, String)
Declaration
public static string ConvertToLabString(LabColor color, string rgbPreview = null)
Parameters
| Type |
Name |
Description |
| Aurigma.GraphicsMill.LabColor |
color |
|
| System.String |
rgbPreview |
|
Returns
| Type |
Description |
| System.String |
|
ConvertToPercentCmykWebColor(CmykColor, String)
Declaration
public static string ConvertToPercentCmykWebColor(CmykColor color, string rgbPreview = null)
Parameters
| Type |
Name |
Description |
| Aurigma.GraphicsMill.CmykColor |
color |
|
| System.String |
rgbPreview |
|
Returns
| Type |
Description |
| System.String |
|
ConvertToRelativeCmykWebColor(CmykColor, String)
Declaration
public static string ConvertToRelativeCmykWebColor(CmykColor color, string rgbPreview)
Parameters
| Type |
Name |
Description |
| Aurigma.GraphicsMill.CmykColor |
color |
|
| System.String |
rgbPreview |
|
Returns
| Type |
Description |
| System.String |
|
ConvertToSpotString(SpotColor, String)
Declaration
public static string ConvertToSpotString(SpotColor color, string rgbPreview)
Parameters
| Type |
Name |
Description |
| Aurigma.GraphicsMill.SpotColor |
color |
|
| System.String |
rgbPreview |
|
Returns
| Type |
Description |
| System.String |
|
ConvertToWebColor(RgbColor)
Declaration
public static string ConvertToWebColor(RgbColor color)
Parameters
Returns
| Type |
Description |
| System.String |
|
ConvertToWebColor(RgbColor)
Declaration
public static string ConvertToWebColor(RgbColor color)
Parameters
| Type |
Name |
Description |
| Aurigma.GraphicsMill.RgbColor |
color |
|
Returns
| Type |
Description |
| System.String |
|
GetColorProfileDescription(Color)
Declaration
public static string GetColorProfileDescription(Color color)
Parameters
| Type |
Name |
Description |
| Color |
color |
|
Returns
| Type |
Description |
| System.String |
|
GetTextAndPalette(String, List<Color>)
Declaration
public static Tuple<string, List<Color>> GetTextAndPalette(string text, List<Color> palette = null)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
| System.Collections.Generic.List<Color> |
palette |
|
Returns
| Type |
Description |
| System.Tuple<System.String, System.Collections.Generic.List<Color>> |
|
IsColorSupported(Color)
Declaration
public static bool IsColorSupported(Color color)
Parameters
| Type |
Name |
Description |
| Aurigma.GraphicsMill.Color |
color |
|
Returns
| Type |
Description |
| System.Boolean |
|
ParseGmXmlColor(Dictionary<String, String[]>, String)
Declaration
public static Color ParseGmXmlColor(Dictionary<string, string[]> styles, string prefix = "")
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.Dictionary<System.String, System.String[]> |
styles |
|
| System.String |
prefix |
|
Returns
| Type |
Description |
| Aurigma.GraphicsMill.Color |
|
ParseGmXmlColor(String, String, String, String)
Declaration
public static Color ParseGmXmlColor(string color, string inkName = null, string inkSolidity = null, string inkColor = null)
Parameters
| Type |
Name |
Description |
| System.String |
color |
|
| System.String |
inkName |
|
| System.String |
inkSolidity |
|
| System.String |
inkColor |
|
Returns
| Type |
Description |
| Aurigma.GraphicsMill.Color |
|
ParseHexRgbColor(String)
Declaration
public static RgbColor ParseHexRgbColor(string hexColor)
Parameters
| Type |
Name |
Description |
| System.String |
hexColor |
|
Returns
ParseWebColor(String)
Declaration
public static Color ParseWebColor(string color)
Parameters
| Type |
Name |
Description |
| System.String |
color |
|
Returns
ParseWebColorGm(String)
Declaration
public static Color ParseWebColorGm(string color)
Parameters
| Type |
Name |
Description |
| System.String |
color |
|
Returns
| Type |
Description |
| Aurigma.GraphicsMill.Color |
|
ParseWebRgbColor(String)
Declaration
public static RgbColor ParseWebRgbColor(string rgbColor)
Parameters
| Type |
Name |
Description |
| System.String |
rgbColor |
|
Returns
ParseXmlColor(Dictionary<String, String[]>, String)
Declaration
public static Color ParseXmlColor(Dictionary<string, string[]> styles, string prefix = "")
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.Dictionary<System.String, System.String[]> |
styles |
|
| System.String |
prefix |
|
Returns
ParseXmlColor(String, String, String, String)
Declaration
public static Color ParseXmlColor(string color, string inkName = null, string inkSolidity = null, string inkColor = null)
Parameters
| Type |
Name |
Description |
| System.String |
color |
|
| System.String |
inkName |
|
| System.String |
inkSolidity |
|
| System.String |
inkColor |
|
Returns