C# Class WinDirStat.Net.Drawing.ColorSpace

显示文件 Open project: trigger-segfault/WinDirStat.Net

Public Methods

Method Description
GetBrightness ( Rgb24Color color ) : float
GetBrightness ( Rgba32Color color ) : float
GetBrightness ( System.Drawing.Color color ) : float
NormalizeColor ( int &red, int &green, int &blue ) : void
SetBrightness ( Rgb24Color color, float brightness ) : Rgb24Color
SetBrightness ( Rgba32Color color, float brightness ) : Rgba32Color
SetBrightness ( System.Drawing.Color color, float brightness ) : System.Drawing.Color

Private Methods

Method Description
DistributeFirst ( int &first, int &second, int &third ) : void

Method Details

GetBrightness() public static method

public static GetBrightness ( Rgb24Color color ) : float
color Rgb24Color
return float

GetBrightness() public static method

public static GetBrightness ( Rgba32Color color ) : float
color Rgba32Color
return float

GetBrightness() public static method

public static GetBrightness ( System.Drawing.Color color ) : float
color System.Drawing.Color
return float

NormalizeColor() public static method

public static NormalizeColor ( int &red, int &green, int &blue ) : void
red int
green int
blue int
return void

SetBrightness() public static method

public static SetBrightness ( Rgb24Color color, float brightness ) : Rgb24Color
color Rgb24Color
brightness float
return Rgb24Color

SetBrightness() public static method

public static SetBrightness ( Rgba32Color color, float brightness ) : Rgba32Color
color Rgba32Color
brightness float
return Rgba32Color

SetBrightness() public static method

public static SetBrightness ( System.Drawing.Color color, float brightness ) : System.Drawing.Color
color System.Drawing.Color
brightness float
return System.Drawing.Color