Transparent layer background

Discuss any general programming issues here
Post Reply
sashapont
Posts: 151
Joined: Thu Aug 03, 2017 2:49 pm

Transparent layer background

Post 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   


User avatar
Juan Carlos
Posts: 725
Joined: Mon Sep 06, 2010 1:02 pm

Re: Transparent layer background

Post by Juan Carlos »

Maybe with CreateTextObject It makes a trasparent text.

User avatar
airsoftsoftwair
Posts: 4787
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Transparent layer background

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

sashapont
Posts: 151
Joined: Thu Aug 03, 2017 2:49 pm

Re: Transparent layer background

Post 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

Post Reply