High dpi using print function

조회 수: 9 (최근 30일)
Silvio Navaretti
Silvio Navaretti 2016년 11월 14일
if true
% fig = gcf;
% fig.Color = 'w'; %background color.
% fig.DockControls = 'off';
% fig.RendererMode = 'manual';
% fig.Renderer = 'painters';
fig.Units = 'centimeters';
% fig.Resize = 'off';
% fig.InvertHardcopy = 'on';
fig.PaperPositionMode = 'manual';
fig.PaperUnits = 'centimeters';
% %Con l'orientazione landscape inverte width e height.
fig.PaperOrientation = 'portrait';
fig.PaperSize = [84.1 59.4];
fig.PaperPosition = [4.205 2.97 75.69 53.46];
directory = 'C:\Users\Amministratore\Desktop\Imm5';
print(directory, '-painters', '-dtiffn', '-r900');
end
I'm using this code to save an high resolution image. This works fine. But when I increase -r900, for example using -r1200, the image turns out black. Is there a resolution limit? What is it? I'm working with MATLAB 2015a.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by