A simple stimulus for loading images from a file and presenting at exactly the resolution and color in the file (subject to gamma correction if set).
Unlike the PatchStim, this type of stimulus cannot be rescaled, rotated or masked (although flipping horizontally or vertically is possible). Drawing will also tend to be marginally slower, because the image isn’t preloaded to the graphics card. The advantage, however is that the stimulus will always be in its original aspect ratio, with no interplotation or other transformation.
SimpleImageStim does not support a depth parameter (the OpenGL method that draws the pixels does not support it). Simple images will obscure any other stimulus type.
| Parameters : |
|
|---|
Draw the stimulus in its relevant window. You must call this method after every MyWin.flip() if you want the stimulus to appear on that frame and then update the screen again.
If set to True then the image will be flipped horiztonally (left-to-right). Note that this is relative to the original image, not relative to the current state.
If set to True then the image will be flipped vertically (top-to-bottom). Note that this is relative to the original image, not relative to the current state.
Set the image to be drawn.
| Parameters : |
|
|---|
Set this stimulus to use shaders if possible.