cancel
Showing results for 
Search instead for 
Did you mean: 

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

prathima
Associate II

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🙂 ....

1 ACCEPTED SOLUTION

Accepted Solutions
Martin KJELDSEN
Chief III
myTextArea.setVisible(true); //Full alpha
myTextArea.setVisible(false); //No alpha. Also means "Not touchable".
myTextArea.setAlpha(15); //Some alpha

/Martin

View solution in original post

13 REPLIES 13
Martin KJELDSEN
Chief III
myTextArea.setVisible(true); //Full alpha
myTextArea.setVisible(false); //No alpha. Also means "Not touchable".
myTextArea.setAlpha(15); //Some alpha

/Martin

prathima
Associate II

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
Chief III

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

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

Please check the pinned post on how to integrate backend data with your UI.

Sorry Martin ...

I am not getting any relavent data..if you don't mind can you share that link please..

thank you in advance

thank you jimmi

prathima
Associate II

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..