How to hide title and windows bars?
조회 수: 9 (최근 30일)
이전 댓글 표시
Basically, I am trying to make a slideshow using Matlab.
I want to hide all bars(just normal size pictures) and around pictures should be black.
Until now;
Photos = 'C:\Users\Ata\Documents\Photos\2015-09-27';
file = fullfile(Photos, '*.jpg');
jpegFiles = dir(file);
%--------------------------------------------------
for k = 1:length(jpegFiles)
baseFileName = jpegFiles(k).name;
fullFileName = fullfile(myFolder, baseFileName);
fprintf(1, '>>>>> %s\n', fullFileName);
imageArray = imread(fullFileName);
%----------------------------------------------------
set(gcf,'Toolbar','none','Menubar','none');
ScrSize = get(0,'ScreenSize');
set(gcf,'Units','pixels','Position',ScrSize);
% get the figure and axes handles
hFig = gcf;
hAx = gca;
% 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');
%backgraund colar settings
set(gcf,'color','black');
%------------------------------------------------------
%----------------------------------------------------
imshow(imageArray); % Display image.
pause(2);
drawnow; % Force display to update immediately.
end
댓글 수: 1
Adam
2016년 10월 26일
I don't think you can remove the bar at the top (whatever it is called) without resorting to some underlying java programming. I guess it is considered desirable for Mathworks to always have their logo on figures since they are produced within Matlab.
답변 (1개)
Jan
2016년 10월 26일
You can remove all decorations using https://www.mathworks.com/matlabcentral/fileexchange/31437-windowapi under Windows. I will post a new version compatible with the modern HG2 graphics today.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!