71 virtual tVoid
SetRed(tUInt8 nRedValue) = 0;
87 virtual tVoid
SetGreen(tUInt8 nGreenValue) = 0;
Interface for color representation.
virtual tUInt8 GetRed() const =0
Returns the value for the red channel.
virtual tUInt8 GetAlpha() const =0
This function returns the value for the alpha channel.
virtual tUInt8 GetBrightness() const =0
This function returns the value for a calculated brightness.
virtual tUInt8 GetBlue() const =0
Returns the value for the blue channel.
virtual tVoid SetRGBA(tUInt32 nRGBA)=0
Sets a four Byte value containing the 3 Color channels and the alpha channel with the given value.
virtual ~IColor()
virtual destructor to ensure proper cleanup.
virtual tVoid Release()=0
Releases this color.
virtual tVoid SetGreen(tUInt8 nGreenValue)=0
Sets the value of the green channel.
virtual tVoid SetBlue(tUInt8 nBlueValue)=0
Sets the value of the blue channel.
virtual tVoid SetRed(tUInt8 nRedValue)=0
Sets the value of the red channel.
virtual tUInt8 GetGreen() const =0
Returns the value for the green channel.
virtual tUInt32 GetRGBA() const =0
Gets a four Byte value containing the 3 color channels and the alpha channel.
virtual tVoid SetAlpha(tUInt8 nAlphaValue)=0
Sets the value of the alpha channel.