|
| | Color (byte red, byte green, byte blue, byte numBitsPerPixel=8) |
| | Creates a color from the given red, green, and blue values.
|
| |
| | Color (ColorConstant constant, byte numBitsPerPixel=8) |
| | Creates a color from a color constant value.
|
| |
| override string | ToString () |
| | Returns a string that represents the Color object.
|
| |
|
| ushort | r |
| | The color as a tuple of red, green and blue values.
|
| |
| ushort ushort | g |
| |
|
| ulong | ColorCode [get] |
| | The color code.
|
| |
| ushort ushort ushort b | RGB [get] |
| |
| ushort | Red [get] |
| | The red value.
|
| |
| ushort | Green [get] |
| | The green value.
|
| |
| ushort | Blue [get] |
| | The blue value.
|
| |
| static IEqualityComparer< Color > | Comparer = new ColorEqualityComparer() [get] |
| | A default equality comparer for comparing Color data values.
|
| |
Class holding color codes.
- Since
- IDSImaging.Peak.ICV 1.3
Definition at line 8 of file Color.cs.
◆ Color() [1/2]
| Color |
( |
byte | red, |
|
|
byte | green, |
|
|
byte | blue, |
|
|
byte | numBitsPerPixel = 8 ) |
|
inline |
Creates a color from the given red, green, and blue values.
The values must be between 0 and 255 and will be automatically adapted to the given bit range.
- Parameters
-
| red | Red value. |
| green | Green value. |
| blue | Blue value. |
| numBitsPerPixel | Number of bits per pixel. Defaults to 8. |
- Exceptions
-
- Since
- IDSImaging.Peak.ICV 1.3
Definition at line 32 of file Color.cs.
◆ Color() [2/2]
Creates a color from a color constant value.
- Parameters
-
| constant | A color constant. |
| numBitsPerPixel | Number of bits per pixel. Defaults to 8. |
- Exceptions
-
- Since
- IDSImaging.Peak.ICV 1.3
Definition at line 55 of file Color.cs.
◆ ToString()
| override string ToString |
( |
| ) |
|
|
inline |
Returns a string that represents the Color object.
- Returns
- A string representation with format "Color(r: {r}, g: {g}, b: {b})".
- Since
- IDSImaging.Peak.ICV 1.3
Definition at line 180 of file Color.cs.
◆ Blue
◆ ColorCode
◆ Comparer
| IEqualityComparer<Color> Comparer = new ColorEqualityComparer() |
|
staticget |
◆ Green
◆ Red
◆ RGB
| ushort ushort ushort b RGB |
|
get |