Constructor
new ImageStim(options)
- Source:
- Mixes In:
- ColorMixin
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
Extends
- VisualStim
Methods
(protected) _estimateBoundingBox()
- Source:
Estimate the bounding box.
(protected) _getDisplaySize() → {Array.<number>}
- Source:
Get the size of the display image, which is either that of the ImageStim or that of the image it contains.
Returns:
the size of the displayed image
- Type
- Array.<number>
(protected) _updateIfNeeded()
- Source:
Update the stimulus, if necessary.
setImage(image, logopt)
- Source:
Setter for the image attribute.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
image |
HTMLImageElement | string | the name of the image resource or HTMLImageElement corresponding to the image |
||
log |
boolean |
<optional> |
false
|
whether of not to log |
setInterpolate(interpolate, logopt)
- Source:
Whether to interpolate (linearly) the texture in the stimulus.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
interpolate |
boolean |
false
|
interpolate or not. |
|
log |
boolean |
<optional> |
false
|
whether or not to log |
setMask(mask, logopt)
- Source:
Setter for the mask attribute.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
mask |
HTMLImageElement | string | the name of the mask resource or HTMLImageElement corresponding to the mask |
||
log |
boolean |
<optional> |
false
|
whether of not to log |