Class Color
  
  
  
  
  
  Assembly: Mapsui.dll
  Syntax
  
  Constructors
  
    |
    Edit this page
  
  
    View Source
  
  
  Color()
  
  
  Declaration
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Color(Color)
  
  
  Declaration
  
    public Color(Color color)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Color | color |  | 
    
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Color(int, int, int, int)
  
  
  Declaration
  
    public Color(int red, int green, int blue, int alpha = 255)
   
  Parameters
  
  Fields
  
    |
    Edit this page
  
  
    View Source
  
  AliceBlue
  
  
  Declaration
  
    public static readonly Color AliceBlue
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  AntiqueWhite
  
  
  Declaration
  
    public static readonly Color AntiqueWhite
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Aqua
  
  
  Declaration
  
    public static readonly Color Aqua
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Aquamarine
  
  
  Declaration
  
    public static readonly Color Aquamarine
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Azure
  
  
  Declaration
  
    public static readonly Color Azure
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Beige
  
  
  Declaration
  
    public static readonly Color Beige
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Bisque
  
  
  Declaration
  
    public static readonly Color Bisque
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Black
  
  
  Declaration
  
    public static readonly Color Black
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  BlanchedAlmond
  
  
  Declaration
  
    public static readonly Color BlanchedAlmond
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Blue
  
  
  Declaration
  
    public static readonly Color Blue
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  BlueViolet
  
  
  Declaration
  
    public static readonly Color BlueViolet
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Brown
  
  
  Declaration
  
    public static readonly Color Brown
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  BurlyWood
  
  
  Declaration
  
    public static readonly Color BurlyWood
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  CadetBlue
  
  
  Declaration
  
    public static readonly Color CadetBlue
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Chartreuse
  
  
  Declaration
  
    public static readonly Color Chartreuse
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Chocolate
  
  
  Declaration
  
    public static readonly Color Chocolate
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Coral
  
  
  Declaration
  
    public static readonly Color Coral
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  CornflowerBlue
  
  
  Declaration
  
    public static readonly Color CornflowerBlue
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Cornsilk
  
  
  Declaration
  
    public static readonly Color Cornsilk
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Crimson
  
  
  Declaration
  
    public static readonly Color Crimson
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Cyan
  
  
  Declaration
  
    public static readonly Color Cyan
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DarkBlue
  
  
  Declaration
  
    public static readonly Color DarkBlue
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DarkCyan
  
  
  Declaration
  
    public static readonly Color DarkCyan
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DarkGoldenRod
  
  
  Declaration
  
    public static readonly Color DarkGoldenRod
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DarkGray
  
  
  Declaration
  
    public static readonly Color DarkGray
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DarkGreen
  
  
  Declaration
  
    public static readonly Color DarkGreen
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DarkGrey
  
  
  Declaration
  
    public static readonly Color DarkGrey
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DarkKhaki
  
  
  Declaration
  
    public static readonly Color DarkKhaki
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DarkMagenta
  
  
  Declaration
  
    public static readonly Color DarkMagenta
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DarkOliveGreen
  
  
  Declaration
  
    public static readonly Color DarkOliveGreen
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DarkOrange
  
  
  Declaration
  
    public static readonly Color DarkOrange
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DarkOrchid
  
  
  Declaration
  
    public static readonly Color DarkOrchid
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DarkRed
  
  
  Declaration
  
    public static readonly Color DarkRed
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DarkSalmon
  
  
  Declaration
  
    public static readonly Color DarkSalmon
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DarkSeaGreen
  
  
  Declaration
  
    public static readonly Color DarkSeaGreen
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DarkSlateBlue
  
  
  Declaration
  
    public static readonly Color DarkSlateBlue
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DarkSlateGray
  
  
  Declaration
  
    public static readonly Color DarkSlateGray
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DarkSlateGrey
  
  
  Declaration
  
    public static readonly Color DarkSlateGrey
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DarkTurquoise
  
  
  Declaration
  
    public static readonly Color DarkTurquoise
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DarkViolet
  
  
  Declaration
  
    public static readonly Color DarkViolet
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DeepPink
  
  
  Declaration
  
    public static readonly Color DeepPink
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DeepSkyBlue
  
  
  Declaration
  
    public static readonly Color DeepSkyBlue
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DimGray
  
  
  Declaration
  
    public static readonly Color DimGray
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DimGrey
  
  
  Declaration
  
    public static readonly Color DimGrey
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  DodgerBlue
  
  
  Declaration
  
    public static readonly Color DodgerBlue
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  FireBrick
  
  
  Declaration
  
    public static readonly Color FireBrick
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  FloralWhite
  
  
  Declaration
  
    public static readonly Color FloralWhite
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  ForestGreen
  
  
  Declaration
  
    public static readonly Color ForestGreen
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Fuchsia
  
  
  Declaration
  
    public static readonly Color Fuchsia
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Gainsboro
  
  
  Declaration
  
    public static readonly Color Gainsboro
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  GhostWhite
  
  
  Declaration
  
    public static readonly Color GhostWhite
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Gold
  
  
  Declaration
  
    public static readonly Color Gold
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  GoldenRod
  
  
  Declaration
  
    public static readonly Color GoldenRod
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Gray
  
  
  Declaration
  
    public static readonly Color Gray
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Green
  
  
  Declaration
  
    public static readonly Color Green
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  GreenYellow
  
  
  Declaration
  
    public static readonly Color GreenYellow
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Grey
  
  
  Declaration
  
    public static readonly Color Grey
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  HoneyDew
  
  
  Declaration
  
    public static readonly Color HoneyDew
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  HotPink
  
  
  Declaration
  
    public static readonly Color HotPink
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  IndianRed
  
  
  Declaration
  
    public static readonly Color IndianRed
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Indigo
  
  
  Declaration
  
    public static readonly Color Indigo
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Ivory
  
  
  Declaration
  
    public static readonly Color Ivory
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Khaki
  
  
  Declaration
  
    public static readonly Color Khaki
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  KnownColors
  Known HTML color names and hex code for RGB color
Declaration
  
    public static readonly Dictionary<string, string> KnownColors
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Lavender
  
  
  Declaration
  
    public static readonly Color Lavender
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  LavenderBlush
  
  
  Declaration
  
    public static readonly Color LavenderBlush
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  LawnGreen
  
  
  Declaration
  
    public static readonly Color LawnGreen
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  LemonChiffon
  
  
  Declaration
  
    public static readonly Color LemonChiffon
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  LightBlue
  
  
  Declaration
  
    public static readonly Color LightBlue
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  LightCoral
  
  
  Declaration
  
    public static readonly Color LightCoral
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  LightCyan
  
  
  Declaration
  
    public static readonly Color LightCyan
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  LightGoldenRodYellow
  
  
  Declaration
  
    public static readonly Color LightGoldenRodYellow
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  LightGray
  
  
  Declaration
  
    public static readonly Color LightGray
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  LightGreen
  
  
  Declaration
  
    public static readonly Color LightGreen
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  LightGrey
  
  
  Declaration
  
    public static readonly Color LightGrey
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  LightPink
  
  
  Declaration
  
    public static readonly Color LightPink
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  LightSalmon
  
  
  Declaration
  
    public static readonly Color LightSalmon
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  LightSeaGreen
  
  
  Declaration
  
    public static readonly Color LightSeaGreen
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  LightSkyBlue
  
  
  Declaration
  
    public static readonly Color LightSkyBlue
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  LightSlateGray
  
  
  Declaration
  
    public static readonly Color LightSlateGray
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  LightSlateGrey
  
  
  Declaration
  
    public static readonly Color LightSlateGrey
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  LightSteelBlue
  
  
  Declaration
  
    public static readonly Color LightSteelBlue
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  LightYellow
  
  
  Declaration
  
    public static readonly Color LightYellow
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Lime
  
  
  Declaration
  
    public static readonly Color Lime
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  LimeGreen
  
  
  Declaration
  
    public static readonly Color LimeGreen
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Linen
  
  
  Declaration
  
    public static readonly Color Linen
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Magenta
  
  
  Declaration
  
    public static readonly Color Magenta
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Maroon
  
  
  Declaration
  
    public static readonly Color Maroon
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  MediumAquaMarine
  
  
  Declaration
  
    public static readonly Color MediumAquaMarine
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  MediumBlue
  
  
  Declaration
  
    public static readonly Color MediumBlue
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  MediumOrchid
  
  
  Declaration
  
    public static readonly Color MediumOrchid
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  MediumPurple
  
  
  Declaration
  
    public static readonly Color MediumPurple
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  MediumSeaGreen
  
  
  Declaration
  
    public static readonly Color MediumSeaGreen
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  MediumSlateBlue
  
  
  Declaration
  
    public static readonly Color MediumSlateBlue
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  MediumSpringGreen
  
  
  Declaration
  
    public static readonly Color MediumSpringGreen
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  MediumTurquoise
  
  
  Declaration
  
    public static readonly Color MediumTurquoise
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  MediumVioletRed
  
  
  Declaration
  
    public static readonly Color MediumVioletRed
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  MidnightBlue
  
  
  Declaration
  
    public static readonly Color MidnightBlue
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  MintCream
  
  
  Declaration
  
    public static readonly Color MintCream
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  MistyRose
  
  
  Declaration
  
    public static readonly Color MistyRose
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Moccasin
  
  
  Declaration
  
    public static readonly Color Moccasin
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  NavajoWhite
  
  
  Declaration
  
    public static readonly Color NavajoWhite
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Navy
  
  
  Declaration
  
    public static readonly Color Navy
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  OldLace
  
  
  Declaration
  
    public static readonly Color OldLace
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Olive
  
  
  Declaration
  
    public static readonly Color Olive
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  OliveDrab
  
  
  Declaration
  
    public static readonly Color OliveDrab
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Orange
  
  
  Declaration
  
    public static readonly Color Orange
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  OrangeRed
  
  
  Declaration
  
    public static readonly Color OrangeRed
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Orchid
  
  
  Declaration
  
    public static readonly Color Orchid
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  PaleGoldenRod
  
  
  Declaration
  
    public static readonly Color PaleGoldenRod
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  PaleGreen
  
  
  Declaration
  
    public static readonly Color PaleGreen
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  PaleTurquoise
  
  
  Declaration
  
    public static readonly Color PaleTurquoise
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  PaleVioletRed
  
  
  Declaration
  
    public static readonly Color PaleVioletRed
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  PapayaWhip
  
  
  Declaration
  
    public static readonly Color PapayaWhip
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  PeachPuff
  
  
  Declaration
  
    public static readonly Color PeachPuff
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Peru
  
  
  Declaration
  
    public static readonly Color Peru
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Pink
  
  
  Declaration
  
    public static readonly Color Pink
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Plum
  
  
  Declaration
  
    public static readonly Color Plum
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  PowderBlue
  
  
  Declaration
  
    public static readonly Color PowderBlue
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Purple
  
  
  Declaration
  
    public static readonly Color Purple
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  RebeccaPurple
  
  
  Declaration
  
    public static readonly Color RebeccaPurple
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Red
  
  
  Declaration
  
    public static readonly Color Red
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  RosyBrown
  
  
  Declaration
  
    public static readonly Color RosyBrown
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  RoyalBlue
  
  
  Declaration
  
    public static readonly Color RoyalBlue
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  SaddleBrown
  
  
  Declaration
  
    public static readonly Color SaddleBrown
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Salmon
  
  
  Declaration
  
    public static readonly Color Salmon
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  SandyBrown
  
  
  Declaration
  
    public static readonly Color SandyBrown
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  SeaGreen
  
  
  Declaration
  
    public static readonly Color SeaGreen
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  SeaShell
  
  
  Declaration
  
    public static readonly Color SeaShell
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Sienna
  
  
  Declaration
  
    public static readonly Color Sienna
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Silver
  
  
  Declaration
  
    public static readonly Color Silver
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  SkyBlue
  
  
  Declaration
  
    public static readonly Color SkyBlue
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  SlateBlue
  
  
  Declaration
  
    public static readonly Color SlateBlue
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  SlateGray
  
  
  Declaration
  
    public static readonly Color SlateGray
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  SlateGrey
  
  
  Declaration
  
    public static readonly Color SlateGrey
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Snow
  
  
  Declaration
  
    public static readonly Color Snow
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  SpringGreen
  
  
  Declaration
  
    public static readonly Color SpringGreen
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  SteelBlue
  
  
  Declaration
  
    public static readonly Color SteelBlue
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Tan
  
  
  Declaration
  
    public static readonly Color Tan
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Teal
  
  
  Declaration
  
    public static readonly Color Teal
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Thistle
  
  
  Declaration
  
    public static readonly Color Thistle
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Tomato
  
  
  Declaration
  
    public static readonly Color Tomato
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Turquoise
  
  
  Declaration
  
    public static readonly Color Turquoise
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Violet
  
  
  Declaration
  
    public static readonly Color Violet
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Wheat
  
  
  Declaration
  
    public static readonly Color Wheat
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  White
  
  
  Declaration
  
    public static readonly Color White
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  WhiteSmoke
  
  
  Declaration
  
    public static readonly Color WhiteSmoke
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  Yellow
  
  
  Declaration
  
    public static readonly Color Yellow
   
  Field Value
  
  
    |
    Edit this page
  
  
    View Source
  
  YellowGreen
  
  
  Declaration
  
    public static readonly Color YellowGreen
   
  Field Value
  
  Properties
  
    |
    Edit this page
  
  
    View Source
  
  
  A
  
  
  Declaration
  
    public int A { get; set; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  B
  
  
  Declaration
  
    public int B { get; set; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  G
  
  
  Declaration
  
    public int G { get; set; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  R
  
  
  Declaration
  
    public int R { get; set; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Transparent
  
  
  Declaration
  
    public static Color Transparent { get; }
   
  Property Value
  
  Methods
  
    |
    Edit this page
  
  
    View Source
  
  
  Equals(Color?)
  
  
  Declaration
  
    public bool Equals(Color? color)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Color | color |  | 
    
  
  Returns
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Equals(object?)
  
  
  Declaration
  
    public override bool Equals(object? obj)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | object | obj |  | 
    
  
  Returns
  
  Overrides
  
  
    |
    Edit this page
  
  
    View Source
  
  
  FromArgb(int, int, int, int)
  
  
  Declaration
  
    public static Color FromArgb(int a, int r, int g, int b)
   
  Parameters
  
  Returns
  
  
    |
    Edit this page
  
  
    View Source
  
  
  FromHsl(float, float, float, int)
  
  
  Declaration
  
    public static Color FromHsl(float h, float s, float l, int a = 255)
   
  Parameters
  
  Returns
  
  
    |
    Edit this page
  
  
    View Source
  
  
  FromString(string)
  Converts a string in Mapbox GL format to a Mapsui Color
This function assumes, that alpha is a float in range from 0.0 to 1.0.
It converts this float in Mapsui Color alpha without rounding.
The following colors could be converted:
- Named colors with known Html names
- Colors as Html color values with leading '#' and 6 or 3 numbers
- Function rgb(r,g,b) with values for red, green and blue
- Function rgba(r,g,b,a) with values for red, green, blue and alpha. Here alpha is between 0.0 and 1.0 like opacity.
- Function hsl(h,s,l) with values hue (0.0 to 360.0), saturation (0.0% - 100.0%) and lightness (0.0% - 100.0%)
- Function hsla(h,s,l,a) with values hue (0.0 to 360.0), saturation (0.0% - 100.0%), lightness (0.0% - 100.0%) and alpha. Here alpha is between 0.0 and 1.0 like opacity.
Declaration
  
    public static Color FromString(string from)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | string | from | String with HTML color representation or function like rgb() or hsl() | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | Color | Converted Mapsui Color | 
    
  
  
    |
    Edit this page
  
  
    View Source
  
  
  GetHashCode()
  
  
  Declaration
  
    public override int GetHashCode()
   
  Returns
  
  Overrides
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Opacity(Color, float?)
  Change alpha channel from given color to respect opacity
Declaration
  
    public static Color Opacity(Color color, float? opacity)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Color | color | Mapsui Color to change | 
      
        | float? | opacity | Opacity of the new color | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | Color | New color respecting old alpha and new opacity | 
    
  
  Operators
  
    |
    Edit this page
  
  
    View Source
  
  
  operator ==(Color?, Color?)
  
  
  Declaration
  
    public static bool operator ==(Color? color1, Color? color2)
   
  Parameters
  
  Returns
  
  
    |
    Edit this page
  
  
    View Source
  
  
  operator !=(Color?, Color?)
  
  
  Declaration
  
    public static bool operator !=(Color? color1, Color? color2)
   
  Parameters
  
  Returns