This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
thinkgeo.mapsuite.silverlightcore.geocolor [2015/08/20 03:08] 127.0.0.1 external edit |
thinkgeo.mapsuite.silverlightcore.geocolor [2017/03/16 21:59] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== ThinkGeo.MapSuite.SilverlightCore.GeoColor ====== | ====== ThinkGeo.MapSuite.SilverlightCore.GeoColor ====== | ||
+ | {{section>upgrade_map_suite_to_10.0}} | ||
- | + | This structure represents a color for drawing on a GeoCanvas. | |
- | <!-- Structure --> | + | |
===== Inheritance Hierarchy ===== | ===== Inheritance Hierarchy ===== | ||
- | *System.ValueType | + | *System.Object |
- | **[[ThinkGeo.MapSuite.SilverlightCore.GeoColor]] | + | *System.ValueType |
+ | ***ThinkGeo.MapSuite.SilverlightCore.GeoColor** | ||
===== Members Summary ===== | ===== Members Summary ===== | ||
==== Public Constructors ==== | ==== Public Constructors ==== | ||
- | ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | + | ** {{wiki:PublicMethod.gif|}} GeoColor(Int32,Int32,Int32) ** |
- | | {{wiki:PublicMethod.gif|Public Method}}[[#GeoColor(Int32, Int32, Int32)|GeoColor]] | Int32, Int32, Int32 | | | | + | |
- | | {{wiki:PublicMethod.gif|Public Method}}[[#GeoColor(Int32, Int32, Int32, Int32)|GeoColor]] | Int32, Int32, Int32, Int32 | | | | + | |
- | | {{wiki:PublicMethod.gif|Public Method}}[[#GeoColor(Int32, GeoColor)|GeoColor]] | Int32, [[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]] | | | | + | |
+ | This constructor creates a new color. | ||
+ | == Remarks == | ||
+ | None | ||
+ | == Parameters == | ||
+ | * //red// | ||
+ | * Type:Int32 | ||
+ | * Description:This parameter specifies the red component of the color. | ||
+ | |||
+ | * //green// | ||
+ | * Type:Int32 | ||
+ | * Description:This parameter specifies the green component of the color. | ||
+ | |||
+ | * //blue// | ||
+ | * Type:Int32 | ||
+ | * Description:This parameter specifies the blue component of the color. | ||
+ | |||
+ | <div newline></div> | ||
+ | ** {{wiki:PublicMethod.gif|}} GeoColor(Int32,Int32,Int32,Int32) ** | ||
+ | |||
+ | This constructor creates a new color. | ||
+ | == Remarks == | ||
+ | None | ||
+ | == Parameters == | ||
+ | * //alpha// | ||
+ | * Type:Int32 | ||
+ | * Description:This parameter specifies the alpha, or transparent, component of the color. | ||
+ | |||
+ | * //red// | ||
+ | * Type:Int32 | ||
+ | * Description:This parameter specifies the red component of the color. | ||
+ | |||
+ | * //green// | ||
+ | * Type:Int32 | ||
+ | * Description:This parameter specifies the green component of the color. | ||
+ | |||
+ | * //blue// | ||
+ | * Type:Int32 | ||
+ | * Description:This parameter specifies the blue component of the color. | ||
+ | |||
+ | <div newline></div> | ||
+ | ** {{wiki:PublicMethod.gif|}} GeoColor(Int32,GeoColor) ** | ||
+ | |||
+ | This constructor creates a new color. | ||
+ | == Remarks == | ||
+ | You can use this overload to create a transparent version of another color. | ||
+ | == Parameters == | ||
+ | * //alpha// | ||
+ | * Type:Int32 | ||
+ | * Description:This parameter specifies the alpha component. An alpha of 0 is totally transparent. | ||
+ | |||
+ | * //color// | ||
+ | * Type:[[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]] | ||
+ | * Description:This parameter specifies the base color. | ||
+ | |||
+ | <div newline></div> | ||
==== Protected Constructors ==== | ==== Protected Constructors ==== | ||
- | ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | + | ** {{wiki:ProtectedMethod.gif|}} GeoColor(String,7Rk=,Int32,Int32,Int32,Int32) ** |
+ | |||
+ | N/A | ||
+ | == Remarks == | ||
+ | N/A | ||
+ | == Parameters == | ||
+ | * //name// | ||
+ | * Type:String | ||
+ | * Description:N/A | ||
+ | |||
+ | * //colorType// | ||
+ | * Type:7Rk= | ||
+ | * 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 | ||
+ | <div newline></div> | ||
==== Public Methods ==== | ==== Public Methods ==== | ||
- | ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | + | ** {{wiki:PublicMethod.gif|}} Equals(Object) ** |
- | | {{wiki:PublicMethod.gif|Public Method}}[[#Equals(Object)|Equals]] | Object | Object(overriden) | | | + | |
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#FromAhsl(Int32, Single, Single, Single)|FromAhsl]] | Int32, Single, Single, Single | | | | + | |
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#FromArgb(Int32, GeoColor)|FromArgb]] | Int32, [[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]] | | | | + | |
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#FromArgb(Int32, Int32, Int32, Int32)|FromArgb]] | Int32, Int32, Int32, Int32 | | | | + | |
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#FromHtml(String)|FromHtml]] | String | | | | + | |
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#FromOle(Int32)|FromOle]] | Int32 | | | | + | |
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#FromWin32(Int32)|FromWin32]] | Int32 | | | | + | |
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetColorsInHueFamily(GeoColor, Int32)|GetColorsInHueFamily]] | [[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]], Int32 | | | | + | |
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetColorsInQualityFamily(GeoColor, Int32)|GetColorsInQualityFamily]] | [[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]], Int32 | | | | + | |
- | | {{wiki:PublicMethod.gif|Public Method}}[[#GetHashCode()|GetHashCode]] | | Object(overriden) | | | + | |
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetRandomGeoColor(RandomColorType)|GetRandomGeoColor]] | [[ThinkGeo.MapSuite.SilverlightCore.RandomColorType|RandomColorType]] | | | | + | |
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetRandomGeoColor(Int32, RandomColorType)|GetRandomGeoColor]] | Int32, [[ThinkGeo.MapSuite.SilverlightCore.RandomColorType|RandomColorType]] | | | | + | |
- | | {{wiki:PublicMethod.gif|Public Method}}[[#GetType()|GetType]] | | Object | | | + | |
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#ToHtml(GeoColor)|ToHtml]] | [[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]] | | | | + | |
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#ToOle(GeoColor)|ToOle]] | [[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]] | | | | + | |
- | | {{wiki:PublicMethod.gif|Public Method}}[[#ToString()|ToString]] | | Object(overriden) | | | + | |
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#ToWin32(GeoColor)|ToWin32]] | [[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]] | | | | + | |
- | ==== Protected Methods ==== | + | This method is an override of the Equals functionality. |
- | ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | + | == Remarks == |
- | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#Finalize()|Finalize]] | | Object | | | + | None |
- | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#MemberwiseClone()|MemberwiseClone]] | | Object | | | + | |
- | ==== Public Properties ==== | + | == Return Value == |
- | ^ Name ^ Return ^ DeclaringType ^ Summary ^ | + | * Type:Boolean |
- | | {{wiki:PublicProperty.gif|Public Property}}[[#AlphaComponent|AlphaComponent]] | Byte | | | | + | * Description:This method returns the Equals functionality. |
- | | {{wiki:PublicProperty.gif|Public Property}}[[#BlueComponent|BlueComponent]] | Byte | | | | + | |
- | | {{wiki:PublicProperty.gif|Public Property}}{{wiki:Static.gif|Static Member}}[[#GeographicColors|GeographicColors]] | [[ThinkGeo.MapSuite.SilverlightCore.GeographicColors|GeographicColors]] | | | | + | |
- | | {{wiki:PublicProperty.gif|Public Property}}[[#GreenComponent|GreenComponent]] | Byte | | | | + | |
- | | {{wiki:PublicProperty.gif|Public Property}}[[#Hue|Hue]] | Single | | | | + | |
- | | {{wiki:PublicProperty.gif|Public Property}}[[#IsTransparent|IsTransparent]] | Boolean | | | | + | |
- | | {{wiki:PublicProperty.gif|Public Property}}[[#Luminance|Luminance]] | Single | | | | + | |
- | | {{wiki:PublicProperty.gif|Public Property}}[[#RedComponent|RedComponent]] | Byte | | | | + | |
- | | {{wiki:PublicProperty.gif|Public Property}}[[#Saturation|Saturation]] | Single | | | | + | |
- | | {{wiki:PublicProperty.gif|Public Property}}{{wiki:Static.gif|Static Member}}[[#SimpleColors|SimpleColors]] | [[ThinkGeo.MapSuite.SilverlightCore.SimpleColors|SimpleColors]] | | | | + | |
- | | {{wiki:PublicProperty.gif|Public Property}}{{wiki:Static.gif|Static Member}}[[#StandardColors|StandardColors]] | [[ThinkGeo.MapSuite.SilverlightCore.StandardColors|StandardColors]] | | | | + | |
- | ==== Protected Properties ==== | + | == Parameters == |
- | ^ Name ^ Return ^ DeclaringType ^ Summary ^ | + | * //obj// |
+ | * Type:Object | ||
+ | * Description:This parameter is the object you want to check to see if it is equal to the current instance. | ||
- | ==== Public Events ==== | + | <div newline></div> |
- | ^ Name ^ Event Arguments ^ DeclaringType ^ Summary ^ | + | ** {{wiki:PublicMethod.gif|}} GetHashCode() ** |
- | ===== Public Constructors ===== | + | This method is an override of the GetHashCode functionality. |
- | ==== GeoColor(Int32, Int32, Int32) ==== | + | == Remarks == |
- | === Parameters === | + | None |
- | ^ Name ^ Type ^ Description ^ | + | |
- | | red | Int32<!-- System.Int32 --> | | | + | |
- | | green | Int32<!-- System.Int32 --> | | | + | |
- | | blue | Int32<!-- System.Int32 --> | | | + | |
- | [[#Public Constructors|Go Back]] | + | == Return Value == |
- | ==== GeoColor(Int32, Int32, Int32, Int32) ==== | + | * Type:Int32 |
- | === Parameters === | + | * Description:This method returns the hash code. |
- | ^ Name ^ Type ^ Description ^ | + | |
- | | alpha | Int32<!-- System.Int32 --> | | | + | |
- | | red | Int32<!-- System.Int32 --> | | | + | |
- | | green | Int32<!-- System.Int32 --> | | | + | |
- | | blue | Int32<!-- System.Int32 --> | | | + | |
- | [[#Public Constructors|Go Back]] | + | == Parameters == |
- | ==== GeoColor(Int32, GeoColor) ==== | + | <div newline></div> |
- | === Parameters === | + | ** {{wiki:PublicMethod.gif|}} ToString() ** |
- | ^ Name ^ Type ^ Description ^ | + | |
- | | alpha | Int32<!-- System.Int32 --> | | | + | |
- | | color | [[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]]<!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | | | + | |
- | [[#Public Constructors|Go Back]] | + | N/A |
- | ===== Protected Constructors ===== | + | == Remarks == |
- | ===== Public Methods ===== | + | N/A |
- | ==== Equals(Object) ==== | + | |
- | === Return Value === | + | |
- | ^ Return Type ^ Description ^ | + | |
- | | Boolean<!-- System.Boolean --> | | | + | |
- | === Parameters === | + | == Return Value == |
- | ^ Name ^ Type ^ Description ^ | + | * Type:String |
- | | obj | Object<!-- System.Object --> | | | + | * Description:N/A |
- | <!-- System.Object(overriden) --> | + | == Parameters == |
- | [[#Public Methods|Go Back]] | + | <div newline></div> |
- | ==== FromAhsl(Int32, Single, Single, Single) ==== | + | ** {{wiki:PublicMethod.gif|}} GetType() ** |
- | <!-- static --> | + | |
- | === Return Value === | + | |
- | ^ Return Type ^ Description ^ | + | |
- | | [[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]]<!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | | | + | |
- | === Parameters === | + | N/A |
- | ^ Name ^ Type ^ Description ^ | + | == Remarks == |
- | | alpha | Int32<!-- System.Int32 --> | | | + | N/A |
- | | hue | Single<!-- System.Single --> | | | + | |
- | | saturation | Single<!-- System.Single --> | | | + | |
- | | luminance | Single<!-- System.Single --> | | | + | |
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | == Return Value == |
- | [[#Public Methods|Go Back]] | + | * Type:Type |
- | ==== FromArgb(Int32, GeoColor) ==== | + | * Description:N/A |
- | <!-- static --> | + | |
- | === Return Value === | + | |
- | ^ Return Type ^ Description ^ | + | |
- | | [[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]]<!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | | | + | |
- | === Parameters === | + | == Parameters == |
- | ^ Name ^ Type ^ Description ^ | + | <div newline></div> |
- | | alpha | Int32<!-- System.Int32 --> | | | + | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetColorsInHueFamily(GeoColor,Int32) ** |
- | | baseColor | [[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]]<!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | | | + | |
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | This method returns a collection of GeoColors based on the same hue that is passed in. |
- | [[#Public Methods|Go Back]] | + | == Remarks == |
- | ==== FromArgb(Int32, Int32, Int32, 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. |
- | <!-- static --> | + | |
- | === Return Value === | + | |
- | ^ Return Type ^ Description ^ | + | |
- | | [[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]]<!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | | | + | |
- | === Parameters === | + | == Return Value == |
- | ^ Name ^ Type ^ Description ^ | + | * Type:Collection<[[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]]> |
- | | alpha | Int32<!-- System.Int32 --> | | | + | * Description:This method returns a collection of GeoColors based on the same hue that is passed in. |
- | | red | Int32<!-- System.Int32 --> | | | + | |
- | | green | Int32<!-- System.Int32 --> | | | + | |
- | | blue | Int32<!-- System.Int32 --> | | | + | |
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | == Parameters == |
- | [[#Public Methods|Go Back]] | + | * //baseColor// |
- | ==== FromHtml(String) ==== | + | * Type:[[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]] |
- | <!-- static --> | + | * Description:This parameter is the color on which you want to base the color collection. |
- | === Return Value === | + | |
- | ^ Return Type ^ Description ^ | + | |
- | | [[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]]<!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | | | + | |
- | === Parameters === | + | * //numbersOfColors// |
- | ^ Name ^ Type ^ Description ^ | + | * Type:Int32 |
- | | htmlColor | String<!-- System.String --> | | | + | * Description:This parameter represents the number of colors you want returned from the method. |
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | <div newline></div> |
- | [[#Public Methods|Go Back]] | + | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetColorsInQualityFamily(GeoColor,Int32) ** |
- | ==== FromOle(Int32) ==== | + | |
- | <!-- static --> | + | |
- | === Return Value === | + | |
- | ^ Return Type ^ Description ^ | + | |
- | | [[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]]<!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | | | + | |
- | === Parameters === | + | This method returns a collection of GeoColors based on the same quality (luminosity and saturation) that is passed in. |
- | ^ Name ^ Type ^ Description ^ | + | == Remarks == |
- | | oleColor | Int32<!-- System.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. |
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | == Return Value == |
- | [[#Public Methods|Go Back]] | + | * Type:Collection<[[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]]> |
- | ==== FromWin32(Int32) ==== | + | * Description:This method returns a collection of GeoColors based on the same quality (luminosity and saturation) that is passed in. |
- | <!-- static --> | + | |
- | === Return Value === | + | |
- | ^ Return Type ^ Description ^ | + | |
- | | [[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]]<!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | | | + | |
- | === Parameters === | + | == Parameters == |
- | ^ Name ^ Type ^ Description ^ | + | * //baseColor// |
- | | win32Color | Int32<!-- System.Int32 --> | | | + | * Type:[[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]] |
+ | * Description:This parameter is the color on which you want to base the color collection. | ||
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | * //numberOfColors// |
- | [[#Public Methods|Go Back]] | + | * Type:Int32 |
- | ==== GetColorsInHueFamily(GeoColor, Int32) ==== | + | * Description:This parameter represents the number of colors you want returned from the method. |
- | <!-- static --> | + | |
- | === Return Value === | + | |
- | ^ Return Type ^ Description ^ | + | |
- | | Collection<[[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]]><!-- System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.SilverlightCore.GeoColor} --> | | | + | |
- | === Parameters === | + | <div newline></div> |
- | ^ Name ^ Type ^ Description ^ | + | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} FromArgb(Int32,Int32,Int32,Int32) ** |
- | | baseColor | [[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]]<!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | | | + | |
- | | numbersOfColors | Int32<!-- System.Int32 --> | | | + | |
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | This method returns a GeoColor based on the Alpha, Red, Green, and Blue components. |
- | [[#Public Methods|Go Back]] | + | == Remarks == |
- | ==== GetColorsInQualityFamily(GeoColor, Int32) ==== | + | None |
- | <!-- static --> | + | |
- | === Return Value === | + | |
- | ^ Return Type ^ Description ^ | + | |
- | | Collection<[[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]]><!-- System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.SilverlightCore.GeoColor} --> | | | + | |
- | === Parameters === | + | == Return Value == |
- | ^ Name ^ Type ^ Description ^ | + | * Type:[[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]] |
- | | baseColor | [[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]]<!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | | | + | * Description:This method returns a GeoColor based on the Alpha, Red, Green, and Blue components. |
- | | numberOfColors | Int32<!-- System.Int32 --> | | | + | |
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | == Parameters == |
- | [[#Public Methods|Go Back]] | + | * //alpha// |
- | ==== GetHashCode() ==== | + | * Type:Int32 |
- | === Return Value === | + | * Description:This parameter specifies the alpha, or transparent, component of the color. |
- | ^ Return Type ^ Description ^ | + | |
- | | Int32<!-- System.Int32 --> | | | + | |
- | === Parameters === | + | * //red// |
- | ^ Name ^ Type ^ Description ^ | + | * Type:Int32 |
+ | * Description:This parameter specifies the red component of the color. | ||
- | <!-- System.Object(overriden) --> | + | * //green// |
- | [[#Public Methods|Go Back]] | + | * Type:Int32 |
- | ==== GetRandomGeoColor(RandomColorType) ==== | + | * Description:This parameter specifies the green component of the color. |
- | <!-- static --> | + | |
- | === Return Value === | + | |
- | ^ Return Type ^ Description ^ | + | |
- | | [[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]]<!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | | | + | |
- | === Parameters === | + | * //blue// |
- | ^ Name ^ Type ^ Description ^ | + | * Type:Int32 |
- | | colorType | [[ThinkGeo.MapSuite.SilverlightCore.RandomColorType|RandomColorType]]<!-- ThinkGeo.MapSuite.SilverlightCore.RandomColorType --> | | | + | * Description:This parameter specifies the blue component of the color. |
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | <div newline></div> |
- | [[#Public Methods|Go Back]] | + | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} FromArgb(Int32,GeoColor) ** |
- | ==== GetRandomGeoColor(Int32, RandomColorType) ==== | + | |
- | <!-- static --> | + | |
- | === Return Value === | + | |
- | ^ Return Type ^ Description ^ | + | |
- | | [[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]]<!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | | | + | |
- | === Parameters === | + | This method returns a GeoColor based on the Alpha, Red, Green, and Blue components. |
- | ^ Name ^ Type ^ Description ^ | + | == Remarks == |
- | | alpha | Int32<!-- System.Int32 --> | | | + | N/A |
- | | colorType | [[ThinkGeo.MapSuite.SilverlightCore.RandomColorType|RandomColorType]]<!-- ThinkGeo.MapSuite.SilverlightCore.RandomColorType --> | | | + | |
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | == Return Value == |
- | [[#Public Methods|Go Back]] | + | * Type:[[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]] |
- | ==== GetType() ==== | + | * Description:You can use this overload to create a transparent version of another color. |
- | === Return Value === | + | |
- | ^ Return Type ^ Description ^ | + | |
- | | Type<!-- System.Type --> | | | + | |
- | === Parameters === | + | == Parameters == |
- | ^ Name ^ Type ^ Description ^ | + | * //alpha// |
+ | * Type:Int32 | ||
+ | * Description:This parameter determines how transparent the color is. An alpha of 0 means it is totally transparent. | ||
- | <!-- System.Object --> | + | * //baseColor// |
- | [[#Public Methods|Go Back]] | + | * Type:[[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]] |
- | ==== ToHtml(GeoColor) ==== | + | * Description:This parameter is the color you want to apply the transparency to. |
- | <!-- static --> | + | |
- | === Return Value === | + | |
- | ^ Return Type ^ Description ^ | + | |
- | | String<!-- System.String --> | | | + | |
- | === Parameters === | + | <div newline></div> |
- | ^ Name ^ Type ^ Description ^ | + | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} FromAhsl(Int32,Single,Single,Single) ** |
- | | color | [[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]]<!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | | | + | |
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | This parameter specifies the red component of the color. This method returns a GeoColor based on the Alpha, Hue, Saturation, and Luminosity components. |
- | [[#Public Methods|Go Back]] | + | == Remarks == |
- | ==== ToOle(GeoColor) ==== | + | None |
- | <!-- static --> | + | |
- | === Return Value === | + | |
- | ^ Return Type ^ Description ^ | + | |
- | | Int32<!-- System.Int32 --> | | | + | |
- | === Parameters === | + | == Return Value == |
- | ^ Name ^ Type ^ Description ^ | + | * Type:[[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]] |
- | | color | [[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]]<!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | | | + | * Description:N/A |
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | == Parameters == |
- | [[#Public Methods|Go Back]] | + | * //alpha// |
- | ==== ToString() ==== | + | * Type:Int32 |
- | === Return Value === | + | * Description:This parameter specifies the alpha, or transparent, component of the color. |
- | ^ Return Type ^ Description ^ | + | |
- | | String<!-- System.String --> | | | + | |
- | === Parameters === | + | * //hue// |
- | ^ Name ^ Type ^ Description ^ | + | * Type:Single |
+ | * Description:This parameter specifies the hue component of the color. | ||
- | <!-- System.Object(overriden) --> | + | * //saturation// |
- | [[#Public Methods|Go Back]] | + | * Type:Single |
- | ==== ToWin32(GeoColor) ==== | + | * Description:This parameter specifies the saturation component of the color. |
- | <!-- static --> | + | |
- | === Return Value === | + | |
- | ^ Return Type ^ Description ^ | + | |
- | | Int32<!-- System.Int32 --> | | | + | |
- | === Parameters === | + | * //luminance// |
- | ^ Name ^ Type ^ Description ^ | + | * Type:Single |
- | | color | [[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]]<!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | | | + | * Description:This parameter specifies the luminance component of the color. |
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | <div newline></div> |
- | [[#Public Methods|Go Back]] | + | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} FromOle(Int32) ** |
- | ===== Protected Methods ===== | + | |
- | ==== Finalize() ==== | + | |
- | === Return Value === | + | |
- | ^ Return Type ^ Description ^ | + | |
- | | Void<!-- System.Void --> | | | + | |
- | === Parameters === | + | This method returns a GeoColor from an OLE color. |
- | ^ Name ^ Type ^ Description ^ | + | == Remarks == |
+ | None | ||
- | <!-- System.Object --> | + | == Return Value == |
- | [[#Protected Methods|Go Back]] | + | * Type:[[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]] |
- | ==== MemberwiseClone() ==== | + | * Description:This method returns a GeoColor from an OLE color. |
- | === Return Value === | + | |
- | ^ Return Type ^ Description ^ | + | |
- | | Object<!-- System.Object --> | | | + | |
- | === Parameters === | + | == Parameters == |
- | ^ Name ^ Type ^ Description ^ | + | * //oleColor// |
+ | * Type:Int32 | ||
+ | * Description:This parameter represents the OLE color you want to convert. | ||
- | <!-- System.Object --> | + | <div newline></div> |
- | [[#Protected Methods|Go Back]] | + | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} FromHtml(String) ** |
- | ===== Public Properties ===== | + | |
- | ==== AlphaComponent ==== | + | |
- | === Return Value === | + | |
- | ^ Return Type ^ | + | |
- | | Byte<!-- System.Byte --> | | + | |
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | This method returns a GeoColor from an HTML color (either in hexadecimal or a named color). |
- | [[#Public Properties|Go Back]] | + | == Remarks == |
- | ==== BlueComponent ==== | + | None |
- | === Return Value === | + | |
- | ^ Return Type ^ | + | |
- | | Byte<!-- System.Byte --> | | + | |
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | == Return Value == |
- | [[#Public Properties|Go Back]] | + | * Type:[[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]] |
- | ==== GeographicColors ==== | + | * Description:This method returns a GeoColor from an HTML color (either in hexadecimal or a named color). |
- | <!-- static --> | + | |
- | === Return Value === | + | |
- | ^ Return Type ^ | + | |
- | | [[ThinkGeo.MapSuite.SilverlightCore.GeographicColors|GeographicColors]]<!-- ThinkGeo.MapSuite.SilverlightCore.GeographicColors --> | | + | |
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | == Parameters == |
- | [[#Public Properties|Go Back]] | + | * //htmlColor// |
- | ==== GreenComponent ==== | + | * Type:String |
- | === Return Value === | + | * Description:This parameter represents the HTML color that you want to convert. |
- | ^ Return Type ^ | + | |
- | | Byte<!-- System.Byte --> | | + | |
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | <div newline></div> |
- | [[#Public Properties|Go Back]] | + | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetRandomGeoColor(RandomColorType) ** |
- | ==== Hue ==== | + | |
- | === Return Value === | + | |
- | ^ Return Type ^ | + | |
- | | Single<!-- System.Single --> | | + | |
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | Creates a random GeoColor structure based on the specific ColorType |
- | [[#Public Properties|Go Back]] | + | == Remarks == |
- | ==== IsTransparent ==== | + | N/A |
- | === Return Value === | + | |
- | ^ Return Type ^ | + | |
- | | Boolean<!-- System.Boolean --> | | + | |
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | == Return Value == |
- | [[#Public Properties|Go Back]] | + | * Type:[[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]] |
- | ==== Luminance ==== | + | * Description:A GeoColor structure the method created. |
- | === Return Value === | + | |
- | ^ Return Type ^ | + | |
- | | Single<!-- System.Single --> | | + | |
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | == Parameters == |
- | [[#Public Properties|Go Back]] | + | * //colorType// |
- | ==== RedComponent ==== | + | * Type:[[ThinkGeo.MapSuite.SilverlightCore.RandomColorType|RandomColorType]] |
- | === Return Value === | + | * Description:A ColorType defines types of color. |
- | ^ Return Type ^ | + | |
- | | Byte<!-- System.Byte --> | | + | |
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | <div newline></div> |
- | [[#Public Properties|Go Back]] | + | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetRandomGeoColor(Int32,RandomColorType) ** |
- | ==== Saturation ==== | + | |
- | === Return Value === | + | |
- | ^ Return Type ^ | + | |
- | | Single<!-- System.Single --> | | + | |
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | Creates a random GeoColor structure |
- | [[#Public Properties|Go Back]] | + | == Remarks == |
- | ==== SimpleColors ==== | + | N/A |
- | <!-- static --> | + | |
- | === Return Value === | + | |
- | ^ Return Type ^ | + | |
- | | [[ThinkGeo.MapSuite.SilverlightCore.SimpleColors|SimpleColors]]<!-- ThinkGeo.MapSuite.SilverlightCore.SimpleColors --> | | + | |
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | == Return Value == |
- | [[#Public Properties|Go Back]] | + | * Type:[[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]] |
- | ==== StandardColors ==== | + | * Description:A GeoColor structure the method created. |
- | <!-- static --> | + | |
- | === Return Value === | + | |
- | ^ Return Type ^ | + | |
- | | [[ThinkGeo.MapSuite.SilverlightCore.StandardColors|StandardColors]]<!-- ThinkGeo.MapSuite.SilverlightCore.StandardColors --> | | + | |
- | <!-- ThinkGeo.MapSuite.SilverlightCore.GeoColor --> | + | == Parameters == |
- | [[#Public Properties|Go Back]] | + | * //alpha// |
- | ===== Protected Properties ===== | + | * Type:Int32 |
- | ===== Public Events ===== | + | * Description:The alpha component. Valid values are 0 through 255. |
- | __NOTOC__ | + | |
- | [[Category:SilverlightMapSuiteCore]] | + | * //colorType// |
- | [[Category:ThinkGeo.MapSuite.SilverlightCore]] | + | * Type:[[ThinkGeo.MapSuite.SilverlightCore.RandomColorType|RandomColorType]] |
- | [[Category:UpdateDocumentation]] | + | * Description:A ColorType defines types of color. |
+ | |||
+ | <div newline></div> | ||
+ | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} FromWin32(Int32) ** | ||
+ | |||
+ | This method returns a GeoColor from a Win32 color. | ||
+ | == Remarks == | ||
+ | None | ||
+ | |||
+ | == Return Value == | ||
+ | * Type:[[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]] | ||
+ | * Description:This method returns a GeoColor from a Win32 color. | ||
+ | |||
+ | == Parameters == | ||
+ | * //win32Color// | ||
+ | * Type:Int32 | ||
+ | * Description:This parameter represents the Win32 color you want to convert. | ||
+ | |||
+ | <div newline></div> | ||
+ | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ToOle(GeoColor) ** | ||
+ | |||
+ | This method returns an OLE color from a GeoColor. | ||
+ | == Remarks == | ||
+ | None | ||
+ | |||
+ | == Return Value == | ||
+ | * Type:Int32 | ||
+ | * Description:This method returns an OLE color from a GeoColor. | ||
+ | |||
+ | == Parameters == | ||
+ | * //color// | ||
+ | * Type:[[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]] | ||
+ | * Description:This parameter represents the GeoColor you want to convert. | ||
+ | |||
+ | <div newline></div> | ||
+ | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ToHtml(GeoColor) ** | ||
+ | |||
+ | This method returns an HTML color from a GeoColor. | ||
+ | == Remarks == | ||
+ | None | ||
+ | |||
+ | == Return Value == | ||
+ | * Type:String | ||
+ | * Description:This method returns an HTML color from a GeoColor. | ||
+ | |||
+ | == Parameters == | ||
+ | * //color// | ||
+ | * Type:[[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]] | ||
+ | * Description:This parameter represents the GeoColor you want to convert. | ||
+ | |||
+ | <div newline></div> | ||
+ | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ToWin32(GeoColor) ** | ||
+ | |||
+ | This method returns a Win32 color from a GeoColor. | ||
+ | == Remarks == | ||
+ | N/A | ||
+ | |||
+ | == Return Value == | ||
+ | * Type:Int32 | ||
+ | * Description:This method returns a Win32 color from a GeoColor. | ||
+ | |||
+ | == Parameters == | ||
+ | * //color// | ||
+ | * Type:[[ThinkGeo.MapSuite.SilverlightCore.GeoColor|GeoColor]] | ||
+ | * Description:This parameter represents the GeoColor you want to convert. | ||
+ | |||
+ | <div newline></div> | ||
+ | ==== Protected Methods ==== | ||
+ | ** {{wiki:ProtectedMethod.gif|}} Finalize() ** | ||
+ | |||
+ | N/A | ||
+ | == Remarks == | ||
+ | N/A | ||
+ | |||
+ | == Return Value == | ||
+ | * Type:Void | ||
+ | * Description:N/A | ||
+ | |||
+ | == Parameters == | ||
+ | <div newline></div> | ||
+ | ** {{wiki:ProtectedMethod.gif|}} MemberwiseClone() ** | ||
+ | |||
+ | N/A | ||
+ | == Remarks == | ||
+ | N/A | ||
+ | |||
+ | == Return Value == | ||
+ | * Type:Object | ||
+ | * Description:N/A | ||
+ | |||
+ | == Parameters == | ||
+ | <div newline></div> | ||
+ | ==== Public Properties ==== | ||
+ | ** {{wiki:PublicProperty.gif|}} IsTransparent ** | ||
+ | |||
+ | Verify if the GeoColor is transparent, it is considered to be transparent if the Alpha Value is 0. | ||
+ | == Remarks == | ||
+ | N/A | ||
+ | == Return Value == | ||
+ | * Type:Boolean | ||
+ | |||
+ | ** {{wiki:PublicProperty.gif|}} AlphaComponent ** | ||
+ | |||
+ | This property returns the alpha component of the GeoColor. | ||
+ | == Remarks == | ||
+ | None | ||
+ | == Return Value == | ||
+ | * Type:Byte | ||
+ | |||
+ | ** {{wiki:PublicProperty.gif|}} RedComponent ** | ||
+ | |||
+ | This property returns the red component of the GeoColor. | ||
+ | == Remarks == | ||
+ | None | ||
+ | == Return Value == | ||
+ | * Type:Byte | ||
+ | |||
+ | ** {{wiki:PublicProperty.gif|}} GreenComponent ** | ||
+ | |||
+ | This property returns the green component of the GeoColor. | ||
+ | == Remarks == | ||
+ | None | ||
+ | == Return Value == | ||
+ | * Type:Byte | ||
+ | |||
+ | ** {{wiki:PublicProperty.gif|}} BlueComponent ** | ||
+ | |||
+ | This property returns the blue component of the GeoColor. | ||
+ | == Remarks == | ||
+ | None | ||
+ | == Return Value == | ||
+ | * Type:Byte | ||
+ | |||
+ | ** {{wiki:PublicProperty.gif|}} Hue ** | ||
+ | |||
+ | This property returns the hue component of the GeoColor. | ||
+ | == Remarks == | ||
+ | None | ||
+ | == Return Value == | ||
+ | * Type:Single | ||
+ | |||
+ | ** {{wiki:PublicProperty.gif|}} Saturation ** | ||
+ | |||
+ | This property returns the saturation component of the GeoColor. | ||
+ | == Remarks == | ||
+ | None | ||
+ | == Return Value == | ||
+ | * Type:Single | ||
+ | |||
+ | ** {{wiki:PublicProperty.gif|}} Luminance ** | ||
+ | |||
+ | This property returns the luminance component of the GeoColor. | ||
+ | == Remarks == | ||
+ | None | ||
+ | == Return Value == | ||
+ | * Type:Single | ||
+ | |||
+ | ==== Protected Properties ==== | ||
+ | ==== Public Events ==== | ||