if you ever need a screenshot inside a program..here is a small script for you.
i construct a gui with the name Hiwi_arbeit where i will plot figure and having values for calculated parameter. i really want to get screenshot of this Hiwi_arbeit fig i try many thing but he doesn work and the screencapture code is not in matlab library. could any one help me please.
a good and useful script
Thanks so much for this!
I was not able to use getframe, since i need to take a screenshot of parts that doesnt belong to Matlab.
On my computer it takes about 0.6 seconds to make a screenshot. is there any way to make that faster?
i guess it is the java loading time, that makes it slow, anyone knows a way how to "quickstart" java?
Great idea and nice implementation
Exactly what I needed.
I used getframe before but sometimes the result was messed up for unknown reason. The method presented here doesn't have this problem.
Yes, it's my want exactly.Thank you Saurabh.
I still think why root remove the captureRect/Matrix and change to getframe instead of, and getframe cann't snapshot the root screen (windows/Mas).
btw, Dear Robert Brookhuis, you can use getframe to capture your GUI easily.
That's exactly what I needed!
I changed the code to capture my GUI only by replacing the "t.getScreenSize()" by the "position" property of my GUI (with some modifications). Works fine!
Thanks, exactly what I needed.
If I recommended an improvement, I'd say that it'd be nice to be able to specify e.g. tiff, gif, bmp output too.
Thanks Saurabh, you saved me a ton of time!
Thanks, that's what i needed!
Java + Matlab = Awesome
Really nice idea!
It already gets the goal even if it could be improved further on giving the user the chance to define a limited region of the active window instead of the whole window to export.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.