Transparent (alpha) text in figures

조회 수: 37 (최근 30일)
Nike Dattani
Nike Dattani 2014년 8월 1일
답변: cui,xingxing 2021년 9월 13일
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
Nike Dattani
Nike Dattani 2015년 3월 30일
No way to start a bounty?
Image Analyst
Image Analyst 2015년 3월 30일
What does that (Bounty) mean (other than a really good paper towel brand)?

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

답변 (2개)

Jan
Jan 2015년 3월 30일
편집: Jan 2015년 3월 30일
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.

cui,xingxing
cui,xingxing 2021년 9월 13일

카테고리

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