2 transparency picture in 2 bgpic

Discuss any general programming issues here
Post Reply
sinisrus
Posts: 347
Joined: Tue Apr 21, 2015 5:43 pm

2 transparency picture in 2 bgpic

Post by sinisrus »

Hello,

I can't see two transparent images in two bgpics
bgpic 2 is a black square

Code: Select all

@BGPIC 1, "appleimg.png", {LoadAlpha = True}
@BGPIC 2, "appleimg.png", {LoadAlpha = True}

@DISPLAY 1, {Borderless = True, DragRegion = {{X = 0, Y = 0, Width = 528, Height = 535}}}
@DISPLAY 2, {Borderless = True, x=250,DragRegion = {{X = 0, Y = 0, Width = 528, Height = 535}}}
sinisrus
Posts: 347
Joined: Tue Apr 21, 2015 5:43 pm

Re: 2 transparency picture in 2 bgpic

Post by sinisrus »

Solved !
plouf
Posts: 585
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: 2 transparency picture in 2 bgpic

Post by plouf »

since you posted, its good to also post the solution, or what was wrong,
in order to help someone who may have stuck in the same problem , and found your post
Christos
sinisrus
Posts: 347
Joined: Tue Apr 21, 2015 5:43 pm

Re: 2 transparency picture in 2 bgpic

Post by sinisrus »

Yes !

Code: Select all

@DISPLAY 1,...
@DISPLAY 2,...

Pict1=BrushToBGPic(1,NIL)
DisplayBGpic(Pict1,{X=50,Y=50})

SelectDisplay(2)
Pict1=BrushToBGPic(1,NIL)
DisplayBGpic(Pict1,{X=250,Y=50})
...
Flinx
Posts: 261
Joined: Sun Feb 14, 2021 9:54 am
Location: Germany

Re: 2 transparency picture in 2 bgpic

Post by Flinx »

Possible solution for the inital question:

Code: Select all

@BGPIC 1, "appleimg.png", {LoadAlpha = True}
@BGPIC 2, "appleimg.png", {LoadAlpha = True}

@DISPLAY 1, {Borderless = True,       DragRegion = {{X = 0, Y = 0, Width = 528, Height = 535}}}
@DISPLAY 2, {Borderless = True, x=250,DragRegion = {{X = 0, Y = 0, Width = 528, Height = 535}}}

SelectDisplay(2)
DisplayBGPic(2,{X=250,Y=50})
Ralf
Post Reply