Header menu logo AvalonLog

Brush Module

Utility functions for System.Windows.Media.SolidColorBrush

Functions and values

Function or value Description

brighter amount br

Full Usage: brighter amount br

Parameters:
Returns: SolidColorBrush

Adds bytes to each color channel to increase brightness result will be clamped between 0 and 255

amount : int
br : SolidColorBrush
Returns: SolidColorBrush

changeLuminance amount col

Full Usage: changeLuminance amount col

Parameters:
    amount : int
    col : Color

Returns: Color
Modifiers: inline

Adds bytes to each color channel to increase brightness, negative values to make darker. Result will be clamped between 0 and 255

amount : int
col : Color
Returns: Color

clampToByte i

Full Usage: clampToByte i

Parameters:
    i : int

Returns: byte
Modifiers: inline

Clamp int to byte between 0 and 255

i : int
Returns: byte

darker amount br

Full Usage: darker amount br

Parameters:
Returns: SolidColorBrush

Removes bytes from each color channel to increase darkness, result will be clamped between 0 and 255

amount : int
br : SolidColorBrush
Returns: SolidColorBrush

freeze br

Full Usage: freeze br

Parameters:
Returns: SolidColorBrush
Modifiers: inline

Make it thread-safe and faster

br : SolidColorBrush
Returns: SolidColorBrush

ofARGB a r g b

Full Usage: ofARGB a r g b

Parameters:
    a : int
    r : int
    g : int
    b : int

Returns: SolidColorBrush
Modifiers: inline

Get a transparent frozen brush of alpha, red, green and blue values. int gets clamped to 0-255

a : int
r : int
g : int
b : int
Returns: SolidColorBrush

ofRGB r g b

Full Usage: ofRGB r g b

Parameters:
    r : int
    g : int
    b : int

Returns: SolidColorBrush
Modifiers: inline

Get a frozen brush of red, green and blue values. int gets clamped to 0-255

r : int
g : int
b : int
Returns: SolidColorBrush

Type something to start searching.