Skip to main content
prathima
Associate III
February 4, 2020
Solved

Implementation of alpha blending in that case of text....

  • February 4, 2020
  • 7 replies
  • 2099 views

Hello people,,,,

I am currently working on STM32L4R9AI-EVAL board.Basically my intention is that on the screen i already have a text which is not seen But when some interrupt occures i want to show that text....like i want to make the text bright...i think this can do by using alpha blending,but i can't able to implement alpha blending .I have searched in your web but there is know examples realted...if this can be do by alpha blending please give me the sufficient information and if posssible related examples....

Thank you in advance:) ....

This topic has been closed for replies.
Best answer by Martin KJELDSEN
myTextArea.setVisible(true); //Full alpha
myTextArea.setVisible(false); //No alpha. Also means "Not touchable".
myTextArea.setAlpha(15); //Some alpha

/Martin

7 replies

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
February 4, 2020
myTextArea.setVisible(true); //Full alpha
myTextArea.setVisible(false); //No alpha. Also means "Not touchable".
myTextArea.setAlpha(15); //Some alpha

/Martin

prathima
prathimaAuthor
Associate III
February 4, 2020

Thank you Martin....

I got it:) ...

but one more question the same text i want to update... in the way suppose! the text am getting from out side source it may be anything that i want to display whatever i am getting...lets say am receiving the text from the I2C that i want to display.. just like whatsapp notification...

Martin KJELDSEN
Principal III
February 5, 2020

You're asking how to display those texts in the UI ?

prathima
prathimaAuthor
Associate III
February 5, 2020

yeah Martin....that is what I want...

prathima
prathimaAuthor
Associate III
February 11, 2020

Hello

I am trying to write a longer text on a text area, but it truncating my text simply...but i want to write the text accordingly depends on my width of the text area...how can i do it..

i knew one function which can do this

 Textarea.setWideTextAction(WIDE_TEXT_WORDWRAP);

but still my text is truncating after using Textarea.invalidate along with this instruction

Unicode::strncpy(alphablendingBuffer,str,100);

  alphablending.setWildcard(alphablendingBuffer);

 alphablending.resizeToCurrentText();

  alphablending.invalidate();

  alphablending.setWideTextAction(WIDE_TEXT_WORDWRAP);

   alphablending.invalidate();

  

thank you in advance..

prathima
prathimaAuthor
Associate III
February 17, 2020

HELLO....

Could you please respond how to do that..i have been trying it since 3 days

it is urgent...

thank you

jimmii
Senior II
February 17, 2020

Did you check if your textarea is high enough?

prathima
prathimaAuthor
Associate III
February 20, 2020

yes,i have checked

prathima
prathimaAuthor
Associate III
February 21, 2020

can you give me the exact instruction if possible example code

thank you so much