====== ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor ====== {{section>upgrade_map_suite_to_10.0}} This structure represents a color for drawing on a GeoCanvas. ===== Inheritance Hierarchy ===== *System.ValueType **[[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor]] ===== Members Summary ===== ==== Public Constructors ==== ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | {{wiki:PublicMethod.gif|Public Method}}[[#GeoColor(Int32, Int32, Int32)|GeoColor]] | Int32, Int32, Int32 | | This constructor creates a new color. | | {{wiki:PublicMethod.gif|Public Method}}[[#GeoColor(Int32, Int32, Int32, Int32)|GeoColor]] | Int32, Int32, Int32, Int32 | | This constructor creates a new color. | | {{wiki:PublicMethod.gif|Public Method}}[[#GeoColor(Int32, GeoColor)|GeoColor]] | Int32, [[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor|GeoColor]] | | This constructor creates a new color. | ==== Protected Constructors ==== ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ ==== Public Methods ==== ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | {{wiki:PublicMethod.gif|Public Method}}[[#Equals(Object)|Equals]] | Object | Object(overriden) | This method is an override of the Equals functionality. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#FromAhsl(Int32, Single, Single, Single)|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. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#FromArgb(Int32, GeoColor)|FromArgb]] | Int32, [[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor|GeoColor]] | | This method returns a GeoColor based on the Alpha, Red, Green, and Blue components. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#FromArgb(Int32, Int32, Int32, Int32)|FromArgb]] | Int32, Int32, Int32, Int32 | | This method returns a GeoColor based on the Alpha, Red, Green, and Blue components. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#FromHtml(String)|FromHtml]] | String | | This method returns a GeoColor from an HTML color (either in hexadecimal or a named color). | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#FromOle(Int32)|FromOle]] | Int32 | | This method returns a GeoColor from an OLE color. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#FromWin32(Int32)|FromWin32]] | Int32 | | This method returns a GeoColor from a Win32 color. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetColorsInHueFamily(GeoColor, Int32)|GetColorsInHueFamily]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor|GeoColor]], Int32 | | This method returns a collection of GeoColors based on the same hue that is passed in. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetColorsInQualityFamily(GeoColor, Int32)|GetColorsInQualityFamily]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor|GeoColor]], Int32 | | This method returns a collection of GeoColors based on the same quality (luminosity and saturation) that is passed in. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetHashCode()|GetHashCode]] | | Object(overriden) | This method is an override of the GetHashCode functionality. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetRandomGeoColor(RandomColorType)|GetRandomGeoColor]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.RandomColorType|RandomColorType]] | | Creates a random GeoColor structure based on the specific ColorType | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetRandomGeoColor(Int32, RandomColorType)|GetRandomGeoColor]] | Int32, [[ThinkGeo.MapSuite.WindowsPhoneCore.RandomColorType|RandomColorType]] | | Creates a random GeoColor structure | | {{wiki:PublicMethod.gif|Public Method}}[[#GetType()|GetType]] | | Object | | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#ToHtml(GeoColor)|ToHtml]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor|GeoColor]] | | This method returns an HTML color from a GeoColor. | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#ToOle(GeoColor)|ToOle]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor|GeoColor]] | | This method returns an OLE color from a 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.WindowsPhoneCore.GeoColor|GeoColor]] | | This method returns a Win32 color from a GeoColor. | ==== Protected Methods ==== ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | {{wiki:ProtectedMethod.gif|Protected Method}}[[#Finalize()|Finalize]] | | Object | | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#MemberwiseClone()|MemberwiseClone]] | | Object | | ==== Public Properties ==== ^ Name ^ Return ^ DeclaringType ^ Summary ^ | {{wiki:PublicProperty.gif|Public Property}}[[#AlphaComponent|AlphaComponent]] | Byte | | This property returns the alpha component of the GeoColor. | | {{wiki:PublicProperty.gif|Public Property}}[[#BlueComponent|BlueComponent]] | Byte | | This property returns the blue component of the GeoColor. | | {{wiki:PublicProperty.gif|Public Property}}{{wiki:Static.gif|Static Member}}[[#GeographicColors|GeographicColors]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographicColors|GeographicColors]] | | This method returns a list of commonly-used predefined geographic colors. | | {{wiki:PublicProperty.gif|Public Property}}[[#GreenComponent|GreenComponent]] | Byte | | This property returns the green component of the GeoColor. | | {{wiki:PublicProperty.gif|Public Property}}[[#Hue|Hue]] | Single | | This property returns the hue component of the GeoColor. | | {{wiki:PublicProperty.gif|Public Property}}[[#IsTransparent|IsTransparent]] | Boolean | | Verify if the GeoColor is transparent, it is considered to be transparent if the Alpha Value is 0. | | {{wiki:PublicProperty.gif|Public Property}}[[#Luminance|Luminance]] | Single | | This property returns the luminance component of the GeoColor. | | {{wiki:PublicProperty.gif|Public Property}}[[#RedComponent|RedComponent]] | Byte | | This property returns the red component of the GeoColor. | | {{wiki:PublicProperty.gif|Public Property}}[[#Saturation|Saturation]] | Single | | This property returns the saturation component of the GeoColor. | | {{wiki:PublicProperty.gif|Public Property}}{{wiki:Static.gif|Static Member}}[[#SimpleColors|SimpleColors]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.SimpleColors|SimpleColors]] | | This method returns a list of simple predefined colors. | | {{wiki:PublicProperty.gif|Public Property}}{{wiki:Static.gif|Static Member}}[[#StandardColors|StandardColors]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.StandardColors|StandardColors]] | | This method returns a list of commonly-used predefined colors. | ==== Protected Properties ==== ^ Name ^ Return ^ DeclaringType ^ Summary ^ ==== Public Events ==== ^ Name ^ Event Arguments ^ DeclaringType ^ Summary ^ ===== Public Constructors ===== ==== GeoColor(Int32, Int32, Int32) ==== This constructor creates a new color. === Overloads === This constructor allows you to specify the red, green, and blue component. === Parameters === ^ Name ^ Type ^ Description ^ | red | Int32 | This parameter specifies the red component of the color. | | green | Int32 | This parameter specifies the green component of the color. | | blue | Int32 | This parameter specifies the blue component of the color. | [[#Public Constructors|Go Back]] ==== GeoColor(Int32, Int32, Int32, Int32) ==== This constructor creates a new color. === Overloads === This constructor allows you to specify the red, green, blue, and alpha component. === Parameters === ^ Name ^ Type ^ Description ^ | alpha | Int32 | This parameter specifies the alpha, or transparent, component of the color. | | red | Int32 | This parameter specifies the red component of the color. | | green | Int32 | This parameter specifies the green component of the color. | | blue | Int32 | This parameter specifies the blue component of the color. | [[#Public Constructors|Go Back]] ==== GeoColor(Int32, GeoColor) ==== This constructor creates a new color. === Overloads === This overload creates a transparent version of another color. === Remarks === You can use this overload to create a transparent version of another color. === Parameters === ^ Name ^ Type ^ Description ^ | alpha | Int32 | This parameter specifies the alpha component. An alpha of 0 is totally transparent. | | color | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor|GeoColor]] | This parameter specifies the base color. | [[#Public Constructors|Go Back]] ===== Protected Constructors ===== ===== Public Methods ===== ==== Equals(Object) ==== This method is an override of the Equals functionality. === Return Value === ^ Return Type ^ Description ^ | Boolean | This method returns the Equals functionality. | === Parameters === ^ Name ^ Type ^ Description ^ | obj | Object | This parameter is the object you want to check to see if it is equal to the current instance. | [[#Public Methods|Go Back]] ==== 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 === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor|GeoColor]] | | === Parameters === ^ Name ^ Type ^ Description ^ | alpha | Int32 | This parameter specifies the alpha, or transparent, component of the color. | | hue | Single | This parameter specifies the hue component of the color. | | saturation | Single | This parameter specifies the saturation component of the color. | | luminance | Single | This parameter specifies the luminance component of the color. | [[#Public Methods|Go Back]] ==== FromArgb(Int32, GeoColor) ==== This method returns a GeoColor based on the Alpha, Red, Green, and Blue components. === Overloads === This method creates a transparent version of another color. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor|GeoColor]] | You can use this overload to create a transparent version of another color. | === Parameters === ^ Name ^ Type ^ Description ^ | alpha | Int32 | This parameter determines how transparent the color is. An alpha of 0 means it is totally transparent. | | baseColor | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor|GeoColor]] | This parameter is the color you want to apply the transparency to. | [[#Public Methods|Go Back]] ==== FromArgb(Int32, Int32, Int32, Int32) ==== This method returns a GeoColor based on the Alpha, Red, Green, and Blue components. === Overloads === This overload lets you specify each component. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor|GeoColor]] | This method returns a GeoColor based on the Alpha, Red, Green, and Blue components. | === Parameters === ^ Name ^ Type ^ Description ^ | alpha | Int32 | This parameter specifies the alpha, or transparent, component of the color. | | red | Int32 | This parameter specifies the red component of the color. | | green | Int32 | This parameter specifies the green component of the color. | | blue | Int32 | This parameter specifies the blue component of the color. | [[#Public Methods|Go Back]] ==== FromHtml(String) ==== This method returns a GeoColor from an HTML color (either in hexadecimal or a named color). === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor|GeoColor]] | This method returns a GeoColor from an HTML color (either in hexadecimal or a named color). | === Parameters === ^ Name ^ Type ^ Description ^ | htmlColor | String | This parameter represents the HTML color that you want to convert. | [[#Public Methods|Go Back]] ==== FromOle(Int32) ==== This method returns a GeoColor from an OLE color. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor|GeoColor]] | This method returns a GeoColor from an OLE color. | === Parameters === ^ Name ^ Type ^ Description ^ | oleColor | Int32 | This parameter represents the OLE color you want to convert. | [[#Public Methods|Go Back]] ==== FromWin32(Int32) ==== This method returns a GeoColor from a Win32 color. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor|GeoColor]] | This method returns a GeoColor from a Win32 color. | === Parameters === ^ Name ^ Type ^ Description ^ | win32Color | Int32 | This parameter represents the Win32 color you want to convert. | [[#Public Methods|Go Back]] ==== GetColorsInHueFamily(GeoColor, Int32) ==== This method returns a collection of GeoColors based on the same hue that is passed in. === Remarks === 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 === ^ Return Type ^ Description ^ | Collection<[[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor|GeoColor]]> | This method returns a collection of GeoColors based on the same hue that is passed in. | === Parameters === ^ Name ^ Type ^ Description ^ | baseColor | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor|GeoColor]] | This parameter is the color on which you want to base the color collection. | | numbersOfColors | Int32 | This parameter represents the number of colors you want returned from the method. | [[#Public Methods|Go Back]] ==== GetColorsInQualityFamily(GeoColor, Int32) ==== This method returns a collection of GeoColors based on the same quality (luminosity and saturation) that is passed in. === Remarks === 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 === ^ Return Type ^ Description ^ | Collection<[[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor|GeoColor]]> | This method returns a collection of GeoColors based on the same quality (luminosity and saturation) that is passed in. | === Parameters === ^ Name ^ Type ^ Description ^ | baseColor | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor|GeoColor]] | This parameter is the color on which you want to base the color collection. | | numberOfColors | Int32 | This parameter represents the number of colors you want returned from the method. | [[#Public Methods|Go Back]] ==== GetHashCode() ==== This method is an override of the GetHashCode functionality. === Return Value === ^ Return Type ^ Description ^ | Int32 | This method returns the hash code. | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|Go Back]] ==== GetRandomGeoColor(RandomColorType) ==== Creates a random GeoColor structure based on the specific ColorType === Overloads === Creates a GeoColor structure with random color === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor|GeoColor]] | A GeoColor structure the method created. | === Parameters === ^ Name ^ Type ^ Description ^ | colorType | [[ThinkGeo.MapSuite.WindowsPhoneCore.RandomColorType|RandomColorType]] | A ColorType defines types of color. | [[#Public Methods|Go Back]] ==== GetRandomGeoColor(Int32, RandomColorType) ==== Creates a random GeoColor structure === Overloads === Creates a GeoColor structure with random color === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor|GeoColor]] | A GeoColor structure the method created. | === Parameters === ^ Name ^ Type ^ Description ^ | alpha | Int32 | The alpha component. Valid values are 0 through 255. | | colorType | [[ThinkGeo.MapSuite.WindowsPhoneCore.RandomColorType|RandomColorType]] | A ColorType defines types of color. | [[#Public Methods|Go Back]] ==== GetType() ==== === Return Value === ^ Return Type ^ Description ^ | Type | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|Go Back]] ==== ToHtml(GeoColor) ==== This method returns an HTML color from a GeoColor. === Return Value === ^ Return Type ^ Description ^ | String | This method returns an HTML color from a GeoColor. | === Parameters === ^ Name ^ Type ^ Description ^ | color | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor|GeoColor]] | This parameter represents the GeoColor you want to convert. | [[#Public Methods|Go Back]] ==== ToOle(GeoColor) ==== This method returns an OLE color from a GeoColor. === Return Value === ^ Return Type ^ Description ^ | Int32 | This method returns an OLE color from a GeoColor. | === Parameters === ^ Name ^ Type ^ Description ^ | color | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor|GeoColor]] | This parameter represents the GeoColor you want to convert. | [[#Public Methods|Go Back]] ==== ToString() ==== === Return Value === ^ Return Type ^ Description ^ | String | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|Go Back]] ==== ToWin32(GeoColor) ==== This method returns a Win32 color from a GeoColor. === Return Value === ^ Return Type ^ Description ^ | Int32 | This method returns a Win32 color from a GeoColor. | === Parameters === ^ Name ^ Type ^ Description ^ | color | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeoColor|GeoColor]] | This parameter represents the GeoColor you want to convert. | [[#Public Methods|Go Back]] ===== Protected Methods ===== ==== Finalize() ==== === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Protected Methods|Go Back]] ==== MemberwiseClone() ==== === Return Value === ^ Return Type ^ Description ^ | Object | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Protected Methods|Go Back]] ===== Public Properties ===== ==== AlphaComponent ==== This property returns the alpha component of the GeoColor. === Return Value === ^ Return Type ^ | Byte | [[#Public Properties|Go Back]] ==== BlueComponent ==== This property returns the blue component of the GeoColor. === Return Value === ^ Return Type ^ | Byte | [[#Public Properties|Go Back]] ==== GeographicColors ==== This method returns a list of commonly-used predefined geographic colors. === Remarks === You can use these as colors to represent many different types of geographic features. === Return Value === ^ Return Type ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.GeographicColors|GeographicColors]] | [[#Public Properties|Go Back]] ==== GreenComponent ==== This property returns the green component of the GeoColor. === Return Value === ^ Return Type ^ | Byte | [[#Public Properties|Go Back]] ==== Hue ==== This property returns the hue component of the GeoColor. === Return Value === ^ Return Type ^ | Single | [[#Public Properties|Go Back]] ==== IsTransparent ==== Verify if the GeoColor is transparent, it is considered to be transparent if the Alpha Value is 0. === Return Value === ^ Return Type ^ | Boolean | [[#Public Properties|Go Back]] ==== Luminance ==== This property returns the luminance component of the GeoColor. === Return Value === ^ Return Type ^ | Single | [[#Public Properties|Go Back]] ==== RedComponent ==== This property returns the red component of the GeoColor. === Return Value === ^ Return Type ^ | Byte | [[#Public Properties|Go Back]] ==== Saturation ==== This property returns the saturation component of the GeoColor. === Return Value === ^ Return Type ^ | Single | [[#Public Properties|Go Back]] ==== SimpleColors ==== This method returns a list of simple predefined colors. === Return Value === ^ Return Type ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.SimpleColors|SimpleColors]] | [[#Public Properties|Go Back]] ==== StandardColors ==== This method returns a list of commonly-used predefined colors. === Return Value === ^ Return Type ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.StandardColors|StandardColors]] | [[#Public Properties|Go Back]] ===== Protected Properties ===== ===== Public Events ===== __NOTOC__ [[Category:WindowsPhoneMapSuiteCore]] [[Category:ThinkGeo.MapSuite.WindowsPhoneCore]] [[Category:UpdateDocumentation]]