Page 1 of 1

Transparent layer background

Posted: Tue Feb 04, 2020 8:47 pm
by sashapont
Is it possible to make transparent layer background for text?

Code: Select all

 CreateLayer(x,y,w,h,{Name = myLayer})
    SelectLayer(myLayer)
        TextOut(h+5, 0, Text$)                                                                           
     EndSelect   


Re: Transparent layer background

Posted: Wed Feb 05, 2020 10:43 am
by Juan Carlos
Maybe with CreateTextObject It makes a trasparent text.

Re: Transparent layer background

Posted: Wed Feb 05, 2020 2:44 pm
by airsoftsoftwair
You need to add an alpha channel or a mask to the layer using CreateLayer() and then use #SELMODE_COMBO with SelectLayer(). Then it should work.

Re: Transparent layer background

Posted: Wed Feb 05, 2020 4:41 pm
by sashapont
airsoftsoftwair wrote: Wed Feb 05, 2020 2:44 pm You need to add an alpha channel or a mask to the layer using CreateLayer() and then use #SELMODE_COMBO with SelectLayer(). Then it should work.
Thank you! It works with Alphachannel