필터 지우기
필터 지우기

FullScreen of a Figure with no Borders and Toolbar

조회 수: 82 (최근 30일)
Fed
Fed 2015년 2월 27일
댓글: lukas Fonk 2023년 8월 22일
Hello, I would like to display a full-screen image using figure, with no borders around, no Windows toolbar, nothing except the image, which changes every loop. Is that possible? I have problems using screen function with my MacBookAir, therefore I am obliged to use simply figure to implement the task. Ay suggestions will be appreciated. Thanks!

채택된 답변

Geoff Hayes
Geoff Hayes 2015년 3월 1일
hFig = figure('units','normalized','outerposition',[0 0 1 1]);
So if you have displayed your image using either imshow or image as
image(myimg)
then you can change the size as
% get the figure and axes handles
hFig = gcf;
hAx = gca;
% set the figure to full screen
set(hFig,'units','normalized','outerposition',[0 0 1 1]);
% set the axes to full screen
set(hAx,'Unit','normalized','Position',[0 0 1 1]);
% hide the toolbar
set(hFig,'menubar','none')
% to hide the title
set(hFig,'NumberTitle','off');
Try the above and see what happens!
  댓글 수: 5
feng hongchuan
feng hongchuan 2022년 11월 9일
There are still two narrow strips at left and right sides.
lukas Fonk
lukas Fonk 2023년 8월 22일
If you have narrow black stripes use imshow()

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

추가 답변 (1개)

Steven Lord
Steven Lord 2018년 3월 27일
As of release R2018a, you can set the WindowState property of a figure to maximize the figure programmatically or display it fullscreen. If you set the MenuBar and ToolBar properties to 'none' as well the figure will have no borders, no menus, and no toolbar.
figure('WindowState', 'fullscreen', ...
'MenuBar', 'none', ...
'ToolBar', 'none')
  댓글 수: 3
Michael Reilly
Michael Reilly 2018년 9월 23일
I believe the program you are looking for is Psychtoolbox. It's a third party add-on toolbox for MATLAB. Link can be found here: http://psychtoolbox.org/
KAE
KAE 2019년 7월 11일
You may find undecoratefig useful.

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

카테고리

Help CenterFile Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by