C# Class FarsiLibrary.Win.Drawing.Office2003Colors

Mostrar archivo Open project: HEskandari/FarsiLibrary Class Usage Examples

Public Methods

Method Description
CalcColor ( Color color1, float percent1, Color color2, float percent2 ) : Color
CalcColor ( Color color1, float percent1, Color color2, float percent2, Color color3, float percent3 ) : Color
CalcNavColor ( int d ) : Color
FromRgb ( int rgb ) : Color
GetDarkValue ( int val ) : int
GetLightColor ( int btnFaceColorPart, int highlightColorPart, int windowColorPart ) : Color
GetLightIndex ( ColorInfo info, byte btnFaceValue, byte highlightValue, byte windowValue ) : int
GetLightValue ( byte val ) : int
GetRealColor ( Color clr ) : Color
OffsetColor ( Color clr, int dR, int dG, int dB ) : Color
ReinitializeColors ( ) : void
this ( Office2003Color color ) : Color

Protected Methods

Method Description
InitColors ( ) : void
InitOfficeColors ( int id ) : void
InitStandardColors ( ) : void

Private Methods

Method Description
CalcValue ( int v1, int v2, int percent ) : int
GetMiddleRGB ( Color clr1, Color clr2, int percent ) : Color
GetThemeType ( ) : XPThemeType
Office2003Colors ( ) : System

Method Details

CalcColor() public method

public CalcColor ( Color color1, float percent1, Color color2, float percent2 ) : Color
color1 Color
percent1 float
color2 Color
percent2 float
return Color

CalcColor() public method

public CalcColor ( Color color1, float percent1, Color color2, float percent2, Color color3, float percent3 ) : Color
color1 Color
percent1 float
color2 Color
percent2 float
color3 Color
percent3 float
return Color

CalcNavColor() public method

public CalcNavColor ( int d ) : Color
d int
return Color

FromRgb() public method

public FromRgb ( int rgb ) : Color
rgb int
return Color

GetDarkValue() public method

public GetDarkValue ( int val ) : int
val int
return int

GetLightColor() public method

public GetLightColor ( int btnFaceColorPart, int highlightColorPart, int windowColorPart ) : Color
btnFaceColorPart int
highlightColorPart int
windowColorPart int
return Color

GetLightIndex() public method

public GetLightIndex ( ColorInfo info, byte btnFaceValue, byte highlightValue, byte windowValue ) : int
info ColorInfo
btnFaceValue byte
highlightValue byte
windowValue byte
return int

GetLightValue() public method

public GetLightValue ( byte val ) : int
val byte
return int

GetRealColor() public method

public GetRealColor ( Color clr ) : Color
clr Color
return Color

InitColors() protected method

protected InitColors ( ) : void
return void

InitOfficeColors() protected method

protected InitOfficeColors ( int id ) : void
id int
return void

InitStandardColors() protected method

protected InitStandardColors ( ) : void
return void

OffsetColor() public method

public OffsetColor ( Color clr, int dR, int dG, int dB ) : Color
clr Color
dR int
dG int
dB int
return Color

ReinitializeColors() public method

public ReinitializeColors ( ) : void
return void

this() public method

public this ( Office2003Color color ) : Color
color Office2003Color
return Color