필터 지우기
필터 지우기

creating message dialog box

조회 수: 5 (최근 30일)
rahman
rahman 2011년 10월 1일
Hi all
I want to create a message dialog box with an arbitrary figure.How can I do that?

채택된 답변

Jan
Jan 2011년 10월 1일
For IconData and IconCMap you can look in the source code of msgbox by "edit msgbox":
a = load('dialogicons.mat');
IconData = a.warnIconData;
IconCMap = a.warnIconMap;
IconCMap(256, :) = get(figureHandle,'Color'); % Pseudo transparence
See also imread
  댓글 수: 1
Walter Roberson
Walter Roberson 2011년 10월 2일
Right. And thus to use your own icon, either create your own msgbox-like routine starting with the msgbox source, or else ensure that you have your own dialogicons.mat file earlier on the matlab path than would otherwise be the case.

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

추가 답변 (1개)

Grzegorz Knor
Grzegorz Knor 2011년 10월 1일
msgbox create and open message box:
doc msgbox
See also:
doc dialog
  댓글 수: 2
rahman
rahman 2011년 10월 1일
tnx
But how can I define IconData and IconCMap?
Walter Roberson
Walter Roberson 2011년 10월 2일
IconData should be an indexed image, and IconCMap should be the corresponding 256 entry color map, with entry 256 reserved for "transparent" pixels.

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

카테고리

Help CenterFile Exchange에서 Display Image에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by