I have created a GUI with GUIDE, and I would like to let app users print an image of the app with a button. How can I do this?
NOTE:-
Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help , Finance Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.
f = getframe(gcf); % Get an image of the app in pixel color values toShow = figure('Visible','off'); % Create a new invisible figure warning('off','images:initSize:adjustingMag') % Turn off a specific imshow warning that sometimes may appear imshow(f.cdata); % Display the pixel data. warning('on','images:initSize:adjustingMag') % Turn the warning back on set(toShow,'PaperOrientation','landscape',... 'PaperUnits','normalized','PaperPosition',[0,0,1,1]); % Set some size preferences for printing printdlg(toShow); % Open print menu close(toShow) % Close the invisible figure
SEE COMPLETE ANSWER CLICK THE LINK
https://www.matlabsolutions.com/resources/how-can-i-programmatically-print-a-gui-with-a-button.php
Comments
Post a Comment