new Image(url, optionsopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
url |
string | Mandatory unique identifier for the layer. Can be an arbitrary name | |
options |
ImageOptions |
<optional> |
The option for the survey |
Members
setAlpha
- Description:
- Old method for setting the opacity use
Image#setOpacity
instead
- Old method for setting the opacity use
- Source:
- Deprecated:
- Yes
Old method for setting the opacity use
Image#setOpacity
instead
Methods
getAlpha()
getCuts() → {Array.<number>}
- Description:
- Returns the low and high cuts under the form of a 2 element array
- Source:
Returns:
The low and high cut values.
- Type
- Array.<number>
readPixel(x, y) → {number}
- Description:
- Read a specific screen pixel value
- Source:
- To Do:
-
- This has not yet been implemented
Parameters:
Name | Type | Description |
---|---|---|
x |
number | x axis in screen pixels to probe |
y |
number | y axis in screen pixels to probe |
Returns:
the value of that pixel
- Type
- number
setBrightness(brightness)
Parameters:
Name | Type | Description |
---|---|---|
brightness |
number | The brightness value. Between 0 and 1 |
setColormap(colormapopt, optionsopt)
Parameters:
Name | Type | Attributes | Default | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
colormap |
string |
<optional> |
"grayscale"
|
The colormap label to use. See here for more info about colormaps.
Possible values are:
"blues" "cividis" "cubehelix" "eosb" "grayscale" "inferno" "magma" "native" "parula" "plasma" "rainbow" "rdbu" "rdylbu" "redtemperature" "sinebow" "spectral" "summer" "viridis" "ylgnbu" "ylorbr" "red" "green" "blue" |
|||||||||||||||
options |
Object |
<optional> |
Options for the colormap
Properties
|
setContrast(contrast)
- Description:
- Sets the contrast. This method updates the contrast and triggers the update of metadata.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
contrast |
number | The contrast value. Between 0 and 1 |
setCuts(minCut, maxCut)
Parameters:
Name | Type | Description |
---|---|---|
minCut |
number | The low cut value. |
maxCut |
number | The high cut value. |
setGamma(gamma)
- Description:
- Sets the gamma correction factor. This method updates the gamma.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
gamma |
number | The saturation value to set for the image. Between 0.1 and 10 |
setOpacity(opacity)
Parameters:
Name | Type | Description |
---|---|---|
opacity |
number | Opacity of the survey to set. Between 0 and 1 |
setOptions(options)
- Description:
- Set color options generic method for changing colormap, opacity, ...
- Source:
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
setSaturation(saturation)
Parameters:
Name | Type | Description |
---|---|---|
saturation |
number | The saturation value. Between 0 and 1 |