Click or drag to resize

DialogsShowColorDialog Method (IWin32Window, Color4f, Boolean)

Note: This API is now obsolete.

Displays the standard modal color picker dialog for floating point colors.

Namespace:  Rhino.UI
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
[ObsoleteAttribute("Use ShowColorDialog(object parent, ref Color4f color, bool allowAlpha)")]
public static bool ShowColorDialog(
	IWin32Window parent,
	ref Color4f color,
	bool allowAlpha
)

Parameters

parent
Type: System.Windows.FormsIWin32Window
Parent window for this dialog, should always pass this if calling from a form or user control.
color
Type: Rhino.DisplayColor4f
The initial color to set the picker to and also accepts the user's choice.
allowAlpha
Type: SystemBoolean
Specifies if the color picker should allow changes to the alpha channel or not.

Return Value

Type: Boolean
true if a color was picked, false if the user canceled the picker dialog.
Version Information

Rhino for Windows

Obsolete (compiler warning) in 6.1 BETA
See Also