Page 1 of 1

2 transparency picture in 2 bgpic

Posted: Mon Jan 17, 2022 2:40 pm
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}}}

Re: 2 transparency picture in 2 bgpic

Posted: Mon Jan 17, 2022 5:14 pm
by sinisrus
Solved !

Re: 2 transparency picture in 2 bgpic

Posted: Mon Jan 17, 2022 8:08 pm
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

Re: 2 transparency picture in 2 bgpic

Posted: Tue Jan 18, 2022 8:20 am
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})
...

Re: 2 transparency picture in 2 bgpic

Posted: Fri Jan 21, 2022 3:59 pm
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