i want to alter dpi
조회 수: 2 (최근 30일)
이전 댓글 표시
how can i alter dpi of an image and set it to 300.
댓글 수: 0
채택된 답변
Sean de Wolski
2013년 2월 25일
In print? Specify the rnumber
print(gcf,'-r300')
댓글 수: 2
Sean de Wolski
2013년 2월 25일
Yes. You save a figure as an image with the print command:
figure;
surf(peaks);
print(gcf,'-r300','-dpng','test.png')
And for more info:
doc print
추가 답변 (1개)
Walter Roberson
2013년 2월 25일
dpi is not an physical property of images, and cannot be set by imwrite() or print(). In some kinds of images, dpi can be set in auxillary information headers, such as EXIF headers. Unfortunately MATLAB does not have any routines that can write those headers. See http://www.mathworks.com/matlabcentral/newsreader/view_thread/298784
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!