필터 지우기
필터 지우기

how to display a image in a specified position of the window

조회 수: 3 (최근 30일)
mahendra kumar
mahendra kumar 2012년 4월 21일
댓글: Stuart Smith 2020년 11월 4일
how to display a image in a specified position of the window
  댓글 수: 1
Stuart Smith
Stuart Smith 2020년 11월 4일
I think I have a similar question. I created some apps that display images. How can I position the app GUI on the right side of the desktop and the images on the left side so that the upper left corner of the image is located at the upper left corner of the desktop? RIght now I manually position the GUI on the right side of the desktop. When images are displayed, they appear centered horizontally but almost at the top of desktop, where they partially obscure the interface.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2012년 4월 21일
image() and imagesc() accept coordinate positions. Those positions are in data units, and the values relate to where to put the centers of the bottom left and upper right pixels. Not the edge, the center.
But when you say "specified position of the window", do you mean of the figure, or do you mean of the screen?
Images must be placed inside of axes, so one of the questions you need to work out first is how to place the axes where you want.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by