save an image in a specific resolution with saveas

14 ビュー (過去 30 日間)
Robin Hoja
Robin Hoja 2022 年 5 月 18 日
コメント済み: Robin Hoja 2022 年 5 月 19 日
Hello there,
iam trying to safe an figure with saveas(figurename, 'filename','png'), but saving reduces the resolution from 7000x5000 to 1688x1176, and i want to keep the resolution of 7000x5000.
I don't know if I'm too stupid or if it's too obvious...it would be great if someone could help me.

採用された回答

Image Analyst
Image Analyst 2022 年 5 月 18 日
Don't use saveas() unless you want a screenshot. Even if you do you want a screenshot, should use exportgraphics.
If you want to save the actual image (instead of a figure window rendering of it on your screen) then use imwrite.
  3 件のコメント
Robin Hoja
Robin Hoja 2022 年 5 月 19 日
Thank you, that worked.

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by