matlab getframe of single GUI panel
Afficher commentaires plus anciens
I would like to create a png of a single panel placed in a matlab-gui, created with 'guide'. However I am able to save a screenshot of the whole GUI via
frame = getframe(specificGUIHandle); % tag of GUI-figure
imwrite(frame.cdata, 'wholeGUI.png');
But I would like to use
frame = getframe(specificPanelHandle); % tag of panel within GUI-figure
imwrite(frame.cdata, 'panel.png');
Obviously this does not work. I would like to receive a .png which simply contains a screenshot of wholeGUI.png where the panel is located. I AM able to receive the coordinates where the panel is located with
pos = getpixelposition(specificGUIHandle);
But I do not know how to use those informations...any ideas? Thanks in Advance!
Réponse acceptée
Plus de réponses (1)
Yair Altman
le 12 Nov 2017
1 vote
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!