RGBA constructor
Initializes a new instance of the RGBA
class. This constructor is used to create an RGBA color with specified red, green, blue, and alpha values.
public RGBA(ushort red, ushort green, ushort blue, ushort alpha)
parameter | description |
---|---|
red | The red color value, ranging from 0 to 255. |
green | The green color value, ranging from 0 to 255. |
blue | The blue color value, ranging from 0 to 255. |
alpha | The alpha (opacity) value, ranging from 0 to 255. |
Exceptions
exception | condition |
---|---|
ArgumentOutOfRangeException | Thrown when any of the color values (red, green, blue, or alpha) are not within the range of 0 to 255. |
See Also
- class RGBA
- namespace Autodesk.DataExchange.DataModels