MATLAB Answers


Transparent (alpha) text in figures

Nike Dattani 님이 질문을 제출함. 1 Aug 2014
최근 활동 Image Analyst 님이 댓글을 추가함. 30 Mar 2015
Only a very small number of figure objects can be made transparent using the 'alpha' scale (RGB Alpha). Since such transparent colors cannot be emulated by RGB values alone, workarounds exist for figure objects such as lines:
Is there a workaround to make text transparent ?

  댓글 수: 2

No way to start a bounty?
What does that (Bounty) mean (other than a really good paper towel brand)?

로그인 to comment.

답변 수: 1

Jan 님의 답변 30 Mar 2015
Jan 님이 편집함. 30 Mar 2015

Use getframe to get the contents of the figure. Then create the text with a white background and getframe again to get a copy of the written text. Then add the RGB values of the two images weighted by the alpha value. Finally the result is displayed by the image command.
The same method is applied in FEX: uibutton.

  댓글 수: 0

로그인 to comment.

Translated by