Constructor
new ImageStim(options)
- Source:
- Mixes In:
- ColorMixin
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
Extends
- VisualStim
Members
(static, readonly) AspectRatioStrategy :Symbol
- Source:
Properties:
Name | Type | Description |
---|---|---|
FIT_TO_WIDTH |
Symbol | |
HORIZONTAL_TILING |
Symbol | |
FIT_TO_HEIGHT |
Symbol | |
VARIABLE |
Symbol |
ImageStim Aspect Ratio Strategy.
Type:
- Symbol
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 |