How to hide title and windows bars?

10 ビュー (過去 30 日間)
Atacan Tosun
Atacan Tosun 2016 年 10 月 26 日
回答済み: Jan 2016 年 10 月 26 日
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
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
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.

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by