Table of Contents

Class EyeDropper

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The EyeDropper interface represents an instance of an eyedropper tool that can be opened and used by the user to select colors from the screen.
[Value("EyeDropper")]
public class EyeDropper
Inheritance
EyeDropper
Inherited Members

Remarks

Constructors

EyeDropper()

NOTE
Experimental
The EyeDropper() constructor returns a new EyeDropper object.
public EyeDropper()

Remarks

-The EyeDropper interface it belongs to.

See also on MDN

Methods

Open(ColorSelectionOptions)

NOTE
Experimental
The EyeDropper.open() method starts the eyedropper mode, returning a promise which is fulfilled once the user has selected a color and exited the eyedropper mode.
[Value("open")]
public Task<ColorSelectionResult> Open(ColorSelectionOptions options = null)

Parameters

options ColorSelectionOptions

Returns

Task<ColorSelectionResult>

A Promise that eventually resolves when the user selects a pixel color from the screen.The promise resolves to an object with the following property:

Remarks

-The EyeDropper interface it belongs to.

See also on MDN