How to display figure in full-screen mode programmatically and save as a high resolution image?
조회 수: 6 (최근 30일)
이전 댓글 표시
I need to save a figure in fullscreen mode and also save it as high resolution image. I have used following commands, but still can't achive the requirement.
FigH = figure('Position', get(0, 'Screensize'));
trisurf(tri(:,2:4),x,y,J)
axis equal
view(0,90);shading interp;
colormap(jet);
colorbar;
caxis([0 max(max_J)]);
print(FigH,'J.png','-dpng','-r300')
savefig(FigH,'J.fig')
Also modified with the following command, but didn't satisfy the required level of resolution.
F = getframe(FigH);
imwrite(F.cdata, 'J.tiff', 'TIFF','Resolution',[1360 768]);
Can anyone help me to solve this issue?
Thank you.
댓글 수: 0
답변 (1개)
Bjorn Gustavsson
2019년 10월 28일
To save as high-resolution, I regularly use:
print('-depsc2','-painters','J.eps')
If you desperately want the image as a png-image at full resolution you can always go to the File->Pint Preview menu and set the print preference to print to actual screen-size.
HTH
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!