saving screen as jpeg

Hi,

Does anyone know how I can capture the screen image and save it as a
jpeg? I have a code that generates videos using the toolbox but I
would like to save each presented frame as a jpg or bitmap image.

Thanks,

Aaron
Hello,
Dear Aaron

You can use the following psychtoolbox function to capture the screen

imageArray=Screen('GetImage', windowPtr [,rect] [,bufferName] [,floatprecision=0] [,nrchannels=3])

and then, you can use MATLAB function "imwrite" to save your image, imageArray.

Have a good time,
Amir



2008/12/2 aronkra <aronkra@...>

Hi,

Does anyone know how I can capture the screen image and save it as a
jpeg? I have a code that generates videos using the toolbox but I
would like to save each presented frame as a jpg or bitmap image.

Thanks,

Aaron


Thanks. I'll try that.