HypernovaDesktop Components · docs
Binarymission
WinForms › Office2007 Color Picker › BinaryColorPickerExtendedEventArgs

BinaryColorPickerExtendedEventArgs

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WinForms.Controls.ColorPickers

Provides data for the Office-style colour picker's events: the colour to use, and the alpha value and blend colour it was mixed from.

public class BinaryColorPickerExtendedEventArgs : EventArgs

Inherits from / implements: EventArgs

Remarks

The picker can mix the colour the user clicked with a second, "blend" colour. Mixing at an AlphaValue of 255 gives the clicked colour unchanged; lower values move it towards BlendTargetColor. UserSelectedColor is the result, fully opaque.

See also

Members at a glance

Constructors
BinaryColorPickerExtendedEventArgsInitialises event data with an empty colour, an empty blend colour and an alpha value of 255.
Properties
AlphaValueGets or sets how much of the chosen colour went into the mix, against BlendTargetColor.
BlendTargetColorGets or sets the colour the chosen colour was mixed with.
ShowHSBInToolTipGets or sets a flag carried with the event data. The picker never sets it, so it is always false in its events.
UserSelectedColorGets or sets the colour to use: the colour the user chose, mixed with BlendTargetColor at AlphaValue.

Constructors

BinaryColorPickerExtendedEventArgs

public BinaryColorPickerExtendedEventArgs() : base()

Initialises event data with an empty colour, an empty blend colour and an alpha value of 255.

Properties

AlphaValue

public int AlphaValue

Gets or sets how much of the chosen colour went into the mix, against BlendTargetColor.

Value
From 0 (all blend colour) to 255 (all chosen colour). The default is 255.

BlendTargetColor

public Color BlendTargetColor

Gets or sets the colour the chosen colour was mixed with.

Value
The blend colour. The default is Color.Empty.

ShowHSBInToolTip

public bool ShowHSBInToolTip

Gets or sets a flag carried with the event data. The picker never sets it, so it is always false in its events.

Value
The default is false.

UserSelectedColor

public Color UserSelectedColor

Gets or sets the colour to use: the colour the user chose, mixed with BlendTargetColor at AlphaValue.

Value
An opaque colour. The default is Color.Empty.