Transparent (alpha) text in figures

38 Ansichten (letzte 30 Tage)
Nike Dattani
Nike Dattani am 1 Aug. 2014
Beantwortet: cui,xingxing am 13 Sep. 2021
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 Kommentare
Nike Dattani
Nike Dattani am 30 Mär. 2015
No way to start a bounty?
Image Analyst
Image Analyst am 30 Mär. 2015
What does that (Bounty) mean (other than a really good paper towel brand)?

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Jan
Jan am 30 Mär. 2015
Bearbeitet: Jan am 30 Mär. 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.

cui,xingxing
cui,xingxing am 13 Sep. 2021

Kategorien

Mehr zu Graphics Object Properties finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by