Converts from System.Drawing.Color object to a ESRI.ArcGIS.Dispay.IRgbColor Used with ArcGIS Server Context
Syntax
Visual Basic (Declaration) | |
---|
Public Overloads Shared Function ToRGBColor( _
ByVal context As ESRI.ArcGIS.Server.IServerContext, _
ByVal color As Color _
) As ESRI.ArcGIS.Display.IRgbColor |
Visual Basic (Usage) | Copy Code |
---|
Dim context As ESRI.ArcGIS.Server.IServerContext
Dim color As Color
Dim value As ESRI.ArcGIS.Display.IRgbColor
value = Converter.ToRGBColor(context, color) |
C# | |
---|
public static ESRI.ArcGIS.Display.IRgbColor ToRGBColor(
ESRI.ArcGIS.Server.IServerContext context,
Color color
) |
Parameters
- context
- The Server Context to create the IRgbColor object in
- color
- System.Drawing.Color
Return Value
T:ESRI.ArcGIS.Display.IRgbColor
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also