Struct FpaColour
Color support
Namespace: FpAssistantCore.General
Assembly: FpAssistantCoreScl.dll
Syntax
public struct FpaColour
Remarks
Added as PCL and CL do not support System.Drawing.Color
Constructors
View SourceFpaColour(FpaColour.KnownColours)
Create a colour using RGB
Declaration
public FpaColour(FpaColour.KnownColours knownColour)
Parameters
Type | Name | Description |
---|---|---|
FpaColour.KnownColours | knownColour | Known colour name from enum selection |
See Also
View SourceFpaColour(Byte, FpaColour.KnownColours)
Create a colour using RGB with an Alpha value
Declaration
public FpaColour(byte alpha, FpaColour.KnownColours knownColour)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | alpha | |
FpaColour.KnownColours | knownColour | Known colour name from enum selection |
See Also
View SourceFpaColour(Byte, Byte, Byte)
Create a colour using RGB
Declaration
public FpaColour(byte red, byte green, byte blue)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | red | Value of red in RGB colour |
System.Byte | green | Value of green in RGB colour |
System.Byte | blue | Value of blue in RGB colour |
FpaColour(Byte, Byte, Byte, Byte)
Create a colour using RGB with an Alpha channel
Declaration
public FpaColour(byte alpha, byte red, byte green, byte blue)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | alpha | Value of alpha channel |
System.Byte | red | Value of red in RGB colour |
System.Byte | green | Value of green in RGB colour |
System.Byte | blue | Value of blue in RGB colour |
Properties
View SourceAlpha
Access to Alpha property
Declaration
public byte Alpha { get; set; }
Property Value
Type | Description |
---|---|
System.Byte | byte value of Alpha channel |
Blue
Access to RGB blue property
Declaration
public byte Blue { get; set; }
Property Value
Type | Description |
---|---|
System.Byte | byte value of blue |
Green
Access to RGB green property
Declaration
public byte Green { get; set; }
Property Value
Type | Description |
---|---|
System.Byte | byte value of green |
Red
Access to RGB red property
Declaration
public byte Red { get; set; }
Property Value
Type | Description |
---|---|
System.Byte | byte value of red |
Methods
View SourceAsSystemDrawingColor()
Returns a color object based on the System.Drawing.Color
Declaration
public System.Drawing.Color AsSystemDrawingColor()
Returns
Type | Description |
---|---|
System.Drawing.Color |
Remarks
Only available for .NET Standard 2.0 and above