Xceed Words for .NET v4.0 Documentation
GetBrightness Method


Xceed.Drawing.NET Assembly > Xceed.Drawing Namespace > Color Structure : GetBrightness Method
Returns the Color's brightness.
Syntax
'Declaration
 
Public Function GetBrightness() As Single
'Usage
 
Dim instance As Color
Dim value As Single
 
value = instance.GetBrightness()
public float GetBrightness()
Remarks
The brightness value is taken from the Color's hue-saturation-brightness (HSB) values. It ranges from 0.0 to 1.0, where 0.0 represents black & 1.0 represents white.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows, 11, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Color Structure
Color Members