ColorExtensionsGetBrightness(Color64) Method
Gets the brightness of a
Color64 instance as a
UInt16 based on human perception.
The
A component of the specified value is ignored.
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 9.0.0
[CLSCompliantAttribute(false)]
public static ushort GetBrightness(
this Color64 c
)
<ExtensionAttribute>
<CLSCompliantAttribute(false)>
Public Shared Function GetBrightness (
c As Color64
) As UShort
public:
[ExtensionAttribute]
[CLSCompliantAttribute(false)]
static unsigned short GetBrightness(
Color64 c
)
[<ExtensionAttribute>]
[<CLSCompliantAttribute(false)>]
static member GetBrightness :
c : Color64 -> uint16
- c Color64
- The Color64 instance to get the brightness of.
UInt16A
UInt16 value where 0 represents the darkest and 65535 represents the brightest possible value.In Visual Basic and C#, you can call this method as an instance method on any object of type
Color64. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).