Products
Professional Services
Demos and Downloads
Help and Support
Products
Professional Services
Demos and Downloads
Help and Support
This is an old revision of the document!
<!– Structure –> This structure represents a color for drawing on a GeoCanvas.
*System.ValueType **ThinkGeo.MapSuite.PortableCore.GeoColor
Name | Parameters | DeclaringType | Summary |
---|
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
![]() | Object | Object(overriden) | This method is an override of the Equals functionality. |
![]() ![]() | 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. | |
![]() ![]() | Int32, Int32, Int32, Int32 | This method returns a GeoColor based on the Alpha, Red, Green, and Blue components. | |
![]() ![]() | Int32, GeoColor | This method returns a GeoColor based on the Alpha, Red, Green, and Blue components. | |
![]() ![]() | String | This method returns a GeoColor from an HTML color (either in hexadecimal or a named color). | |
![]() ![]() | Int32 | This method returns a GeoColor from an OLE color. | |
![]() ![]() | Int32 | This method returns a GeoColor from a Win32 color. | |
![]() ![]() | GeoColor, Int32 | This method returns a collection of GeoColors based on the same hue that is passed in. | |
![]() ![]() | GeoColor, Int32 | This method returns a collection of GeoColors based on the same quality (luminosity and saturation) that is passed in. | |
![]() ![]() | GeoColor, GeoColor, Int32, ColorWheelDirection | ||
![]() | Object(overriden) | This method is an override of the GetHashCode functionality. | |
![]() ![]() | Int32, RandomColorType | Creates a random GeoColor structure | |
![]() ![]() | RandomColorType | Creates a random GeoColor structure based on the specific ColorType | |
![]() | Object | ||
![]() ![]() | GeoColor | This method returns an HTML color from a GeoColor. | |
![]() ![]() | GeoColor | This method returns an OLE color from a GeoColor. | |
![]() | Object(overriden) | ||
![]() ![]() | GeoColor | This method returns a Win32 color from a GeoColor. |
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
![]() | Object | ||
![]() | Object |
Name | Return | DeclaringType | Summary |
---|---|---|---|
![]() | Byte | This property returns the alpha component of the GeoColor. | |
![]() | Byte | This property returns the blue component of the GeoColor. | |
![]() ![]() | GeographicColors | This method returns a list of commonly-used predefined geographic colors. | |
![]() | Byte | This property returns the green component of the GeoColor. | |
![]() | Single | This property returns the hue component of the GeoColor. | |
![]() | Boolean | Verify if the GeoColor is transparent, it is considered to be transparent if the Alpha Value is 0. | |
![]() | Single | This property returns the luminance component of the GeoColor. | |
![]() | Byte | This property returns the red component of the GeoColor. | |
![]() | Single | This property returns the saturation component of the GeoColor. | |
![]() ![]() | SimpleColors | This method returns a list of simple predefined colors. | |
![]() ![]() | StandardColors | This method returns a list of commonly-used predefined colors. |
Name | Return | DeclaringType | Summary |
---|
Name | Event Arguments | DeclaringType | Summary |
---|
This constructor creates a new color.
This constructor allows you to specify the red, green, and blue component.
Name | Type | Description |
---|---|---|
red | Int32<!– System.Int32 –> | This parameter specifies the red component of the color. |
green | Int32<!– System.Int32 –> | This parameter specifies the green component of the color. |
blue | Int32<!– System.Int32 –> | This parameter specifies the blue component of the color. |
This constructor creates a new color.
This constructor allows you to specify the red, green, blue, and alpha component.
Name | Type | Description |
---|---|---|
alpha | Int32<!– System.Int32 –> | This parameter specifies the alpha, or transparent, component of the color. |
red | Int32<!– System.Int32 –> | This parameter specifies the red component of the color. |
green | Int32<!– System.Int32 –> | This parameter specifies the green component of the color. |
blue | Int32<!– System.Int32 –> | This parameter specifies the blue component of the color. |
This constructor creates a new color.
This overload creates a transparent version of another color.
You can use this overload to create a transparent version of another color.
Name | Type | Description |
---|---|---|
alpha | Int32<!– System.Int32 –> | This parameter specifies the alpha component. An alpha of 0 is totally transparent. |
color | GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> | This parameter specifies the base color. |
This method is an override of the Equals functionality.
Return Type | Description |
---|---|
Boolean<!– System.Boolean –> | This method returns the Equals functionality. |
Name | Type | Description |
---|---|---|
obj | Object<!– System.Object –> | This parameter is the object you want to check to see if it is equal to the current instance. |
<!– System.Object(overriden) –> Go Back
<!– static –> This parameter specifies the red component of the color. This method returns a GeoColor based on the Alpha, Hue, Saturation, and Luminosity components.
Return Type | Description |
---|---|
GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> |
Name | Type | Description |
---|---|---|
alpha | Int32<!– System.Int32 –> | This parameter specifies the alpha, or transparent, component of the color. |
hue | Single<!– System.Single –> | This parameter specifies the hue component of the color. |
saturation | Single<!– System.Single –> | This parameter specifies the saturation component of the color. |
luminance | Single<!– System.Single –> | This parameter specifies the luminance component of the color. |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
<!– static –> This method returns a GeoColor based on the Alpha, Red, Green, and Blue components.
This overload lets you specify each component.
Return Type | Description |
---|---|
GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> | This method returns a GeoColor based on the Alpha, Red, Green, and Blue components. |
Name | Type | Description |
---|---|---|
alpha | Int32<!– System.Int32 –> | This parameter specifies the alpha, or transparent, component of the color. |
red | Int32<!– System.Int32 –> | This parameter specifies the red component of the color. |
green | Int32<!– System.Int32 –> | This parameter specifies the green component of the color. |
blue | Int32<!– System.Int32 –> | This parameter specifies the blue component of the color. |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
<!– static –> This method returns a GeoColor based on the Alpha, Red, Green, and Blue components.
This method creates a transparent version of another color.
Return Type | Description |
---|---|
GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> | You can use this overload to create a transparent version of another color. |
Name | Type | Description |
---|---|---|
alpha | Int32<!– System.Int32 –> | This parameter determines how transparent the color is. An alpha of 0 means it is totally transparent. |
baseColor | GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> | This parameter is the color you want to apply the transparency to. |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
<!– static –> This method returns a GeoColor from an HTML color (either in hexadecimal or a named color).
Return Type | Description |
---|---|
GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> | This method returns a GeoColor from an HTML color (either in hexadecimal or a named color). |
Name | Type | Description |
---|---|---|
htmlColor | String<!– System.String –> | This parameter represents the HTML color that you want to convert. |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
<!– static –> This method returns a GeoColor from an OLE color.
Return Type | Description |
---|---|
GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> | This method returns a GeoColor from an OLE color. |
Name | Type | Description |
---|---|---|
oleColor | Int32<!– System.Int32 –> | This parameter represents the OLE color you want to convert. |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
<!– static –> This method returns a GeoColor from a Win32 color.
Return Type | Description |
---|---|
GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> | This method returns a GeoColor from a Win32 color. |
Name | Type | Description |
---|---|---|
win32Color | Int32<!– System.Int32 –> | This parameter represents the Win32 color you want to convert. |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
<!– static –> This method returns a collection of GeoColors based on the same hue that is passed in.
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 Type | Description |
---|---|
Collection<GeoColor><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.PortableCore.GeoColor} –> | This method returns a collection of GeoColors based on the same hue that is passed in. |
Name | Type | Description |
---|---|---|
baseColor | GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> | This parameter is the color on which you want to base the color collection. |
numbersOfColors | Int32<!– System.Int32 –> | This parameter represents the number of colors you want returned from the method. |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
<!– static –> This method returns a collection of GeoColors based on the same quality (luminosity and saturation) that is passed in.
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 Type | Description |
---|---|
Collection<GeoColor><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.PortableCore.GeoColor} –> | This method returns a collection of GeoColors based on the same quality (luminosity and saturation) that is passed in. |
Name | Type | Description |
---|---|---|
baseColor | GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> | This parameter is the color on which you want to base the color collection. |
numberOfColors | Int32<!– System.Int32 –> | This parameter represents the number of colors you want returned from the method. |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
<!– static –>
Return Type | Description |
---|---|
Collection<GeoColor><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.PortableCore.GeoColor} –> |
Name | Type | Description |
---|---|---|
fromColor | GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> | |
toColor | GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> | |
numberOfColors | Int32<!– System.Int32 –> | |
colorWheelDirection | ColorWheelDirection<!– ThinkGeo.MapSuite.PortableCore.ColorWheelDirection –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
This method is an override of the GetHashCode functionality.
Return Type | Description |
---|---|
Int32<!– System.Int32 –> | This method returns the hash code. |
Name | Type | Description |
---|
<!– System.Object(overriden) –> Go Back
<!– static –> Creates a random GeoColor structure
Creates a GeoColor structure with random color
Return Type | Description |
---|---|
GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> | A GeoColor structure the method created. |
Name | Type | Description |
---|---|---|
alpha | Int32<!– System.Int32 –> | The alpha component. Valid values are 0 through 255. |
colorType | RandomColorType<!– ThinkGeo.MapSuite.PortableCore.RandomColorType –> | A ColorType defines types of color. |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
<!– static –> Creates a random GeoColor structure based on the specific ColorType
Creates a GeoColor structure with random color
Return Type | Description |
---|---|
GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> | A GeoColor structure the method created. |
Name | Type | Description |
---|---|---|
colorType | RandomColorType<!– ThinkGeo.MapSuite.PortableCore.RandomColorType –> | A ColorType defines types of color. |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
Return Type | Description |
---|---|
Type<!– System.Type –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
<!– static –> This method returns an HTML color from a GeoColor.
Return Type | Description |
---|---|
String<!– System.String –> | This method returns an HTML color from a GeoColor. |
Name | Type | Description |
---|---|---|
color | GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> | This parameter represents the GeoColor you want to convert. |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
<!– static –> This method returns an OLE color from a GeoColor.
Return Type | Description |
---|---|
Int32<!– System.Int32 –> | This method returns an OLE color from a GeoColor. |
Name | Type | Description |
---|---|---|
color | GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> | This parameter represents the GeoColor you want to convert. |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
Return Type | Description |
---|---|
String<!– System.String –> |
Name | Type | Description |
---|
<!– System.Object(overriden) –> Go Back
<!– static –> This method returns a Win32 color from a GeoColor.
Return Type | Description |
---|---|
Int32<!– System.Int32 –> | This method returns a Win32 color from a GeoColor. |
Name | Type | Description |
---|---|---|
color | GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> | This parameter represents the GeoColor you want to convert. |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
Return Type | Description |
---|---|
Object<!– System.Object –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
This property returns the alpha component of the GeoColor.
Return Type |
---|
Byte<!– System.Byte –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
This property returns the blue component of the GeoColor.
Return Type |
---|
Byte<!– System.Byte –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
<!– static –> This method returns a list of commonly-used predefined geographic colors.
You can use these as colors to represent many different types of geographic features.
Return Type |
---|
GeographicColors<!– ThinkGeo.MapSuite.PortableCore.GeographicColors –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
This property returns the green component of the GeoColor.
Return Type |
---|
Byte<!– System.Byte –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
This property returns the hue component of the GeoColor.
Return Type |
---|
Single<!– System.Single –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
Verify if the GeoColor is transparent, it is considered to be transparent if the Alpha Value is 0.
Return Type |
---|
Boolean<!– System.Boolean –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
This property returns the luminance component of the GeoColor.
Return Type |
---|
Single<!– System.Single –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
This property returns the red component of the GeoColor.
Return Type |
---|
Byte<!– System.Byte –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
This property returns the saturation component of the GeoColor.
Return Type |
---|
Single<!– System.Single –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
<!– static –> This method returns a list of simple predefined colors.
Return Type |
---|
SimpleColors<!– ThinkGeo.MapSuite.PortableCore.SimpleColors –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
<!– static –> This method returns a list of commonly-used predefined colors.
Return Type |
---|
StandardColors<!– ThinkGeo.MapSuite.PortableCore.StandardColors –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> Go Back
8501 Wade Blvd Ste 550
Frisco, TX 75034
United States
sales@thinkgeo.com
1-785-727-4133
Online Store
- Desktop
WPF
WinForms
- Web
WebAPI HTML5/JavaScript
ASP.NET MVC
WebForms with AJAX
- Mobile
iOS
Android™
World Street
World Imagery
Routing
Geocoding
Reverse Geocoding
Elevation
Quick Start Guides
Documentation
Blogs
Discussion Forums
Customer Portal
About Us
News & Announcemets
Privacy Policy
Copyright 2003-2017 ThinkGeo LLC.
All rights reserved.