using System.Runtime.InteropServices;
namespace NvAPIWrapper.Native.GPU.Structures
{
///
/// Holds information regarding a RGB color
///
[StructLayout(LayoutKind.Sequential, Pack = 8)]
public struct IlluminationZoneControlDataManualRGBParameters
{
internal byte _Red;
internal byte _Green;
internal byte _Blue;
internal byte _BrightnessInPercentage;
///
/// Creates a new instance of .
///
/// The red component of color applied to the zone.
/// The green component of color applied to the zone.
/// The blue component of color applied to the zone.
/// The brightness percentage value of the zone.
// ReSharper disable once TooManyDependencies
public IlluminationZoneControlDataManualRGBParameters(
byte red,
byte green,
byte blue,
byte brightnessInPercentage)
{
_Red = red;
_Green = green;
_Blue = blue;
_BrightnessInPercentage = brightnessInPercentage;
}
///
/// Gets the red component of color applied to the zone.
///
public byte Red
{
get => _Red;
}
///
/// Gets the green component of color applied to the zone.
///
public byte Green
{
get => _Green;
}
///
/// Gets the blue component of color applied to the zone.
///
public byte Blue
{
get => _Blue;
}
///
/// Gets the brightness percentage value of the zone.
///
public byte BrightnessInPercentage
{
get => _BrightnessInPercentage;
}
}
}