ThinkGeo.MapSuite.Core.GeoColor
Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.
This structure represents a color for drawing on a GeoCanvas.
Inheritance Hierarchy
Members Summary
Public Constructors
GeoColor(Int32,Int32,Int32)
Parameters
GeoColor(Int32,Int32,Int32,Int32)
Parameters
GeoColor(Int32,GeoColor)
Parameters
Protected Constructors
GeoColor(String,ColorType,Int32,Int32,Int32,Int32)
Parameters
name
Type:String
Description:N/A
alpha
Type:Int32
Description:N/A
red
Type:Int32
Description:N/A
green
Type:Int32
Description:N/A
blue
Type:Int32
Description:N/A
Public Methods
Equals(Object)
Return Value
Parameters
GetHashCode()
Return Value
Parameters
ToString()
Return Value
Type:String
Description:N/A
Parameters
GetType()
Return Value
Type:Type
Description:N/A
Parameters

GetColorsInHueFamily(GeoColor,Int32)
This method is useful when you want to get a number of colors that have the same hue. For example, you can use this in maps that represent class breaks. If you passed in a red hue, then the method would return variations such as light red, dark red, pastel red, etc.
Return Value
Parameters

GetColorsInQualityFamily(GeoColor,Int32)
This method is useful when you want to get a number of different colors that have the same quality. For example, you can use this in maps that represent countries or connected places. If you passed in bright red, then the method would return variants such as bright blue, bright green, etc. If you passed in dark red, you would get dark blue, dark green, etc.
Return Value
Parameters

GetColorsInQualityFamily(GeoColor,GeoColor,Int32,ColorWheelDirection)
Return Value
Parameters
numberOfColors
Type:Int32
Description:N/A

FromArgb(Int32,Int32,Int32,Int32)
Return Value
Parameters

FromArgb(Int32,GeoColor)
Return Value
Parameters

FromAhsl(Int32,Single,Single,Single)
This parameter specifies the red component of the color. This method returns a GeoColor based on the Alpha, Hue, Saturation, and Luminosity components.
Return Value
Parameters

FromOle(Int32)
Return Value
Parameters

FromHtml(String)
This method returns a GeoColor from an HTML color (either in hexadecimal or a named color).
Return Value
-
Description:This method returns a GeoColor from an
HTML color (either in hexadecimal or a named color).
Parameters
htmlColor
Type:String
Description:This parameter represents the
HTML color that you want to convert.

GetRandomGeoColor(RandomColorType)
Return Value
Parameters

GetRandomGeoColor(Int32,RandomColorType)
Return Value
Parameters

FromWin32(Int32)
Return Value
Parameters

ToOle(GeoColor)
Return Value
Parameters

ToHtml(GeoColor)
This method returns an HTML color from a GeoColor.
Return Value
Type:String
Description:This method returns an
HTML color from a GeoColor.
Parameters

ToWin32(GeoColor)
Return Value
Parameters
Protected Methods
Finalize()
Return Value
Type:Void
Description:N/A
Parameters
MemberwiseClone()
Return Value
Type:Object
Description:N/A
Parameters
Public Properties
IsTransparent
Verify if the GeoColor is transparent, it is considered to be transparent if the Alpha Value is 0.
Return Value
AlphaComponent
This property returns the alpha component of the GeoColor.
Return Value
RedComponent
This property returns the red component of the GeoColor.
Return Value
GreenComponent
This property returns the green component of the GeoColor.
Return Value
BlueComponent
This property returns the blue component of the GeoColor.
Return Value
Hue
This property returns the hue component of the GeoColor.
Return Value
Saturation
This property returns the saturation component of the GeoColor.
Return Value
Luminance
This property returns the luminance component of the GeoColor.
Return Value
Protected Properties
Public Events