PColor64(UInt16, UInt16, UInt16, UInt16, Boolean) Constructor

Initializes a new instance of the PColor64 struct from ARGB (alpha, red, green, and blue) values.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.2
C#
[CLSCompliantAttribute(false)]
public PColor64(
	ushort a,
	ushort r,
	ushort g,
	ushort b,
	bool validate
)

Parameters

a  UInt16
The alpha component.
r  UInt16
The red component.
g  UInt16
The green component.
b  UInt16
The blue component.
validate  Boolean
to validate the parameters; to skip the validation.

Exceptions

ArgumentOutOfRangeExceptionvalidate is and r, g or b is not between 0 and a.

See Also