[19 Feb 2008] Alpha channel?
Posted: Sat Jun 13, 2020 5:31 pm
Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 19 Feb 2008 21:36:12 +0100
Hi,
I've copied over some images from TuxPaint and try to create buttons so that some tools graphics is drawn over a button graphics:
I hope attaching pictures works on this mailing list. Problem is that the tools graphics is either invisible or a black rectangular. Is this a problem of Hollywood or the AROS PNG datatype?
It should look like this: http://www.tuxpaint.org/screenshots/sho ... 3?which=11
Regards, Matthias
Hi,
I've copied over some images from TuxPaint and try to create buttons so that some tools graphics is drawn over a button graphics:
Code: Select all
@Display {Title="HollyPaint", Width=800, Height=600, Color=#WHITE, Mode="Windowed"}
Const #BTN_DOWN=1
Const #BTN_UP=2
Const #BTN_OFF=3
Const #BTN_PAINT1=4
Const #BTN_PAINT2=5
LoadBrush(#BTN_UP, "images/ui/btn_up.png")
LoadBrush(#BTN_PAINT1,"images/tools/brush.png",{LoadAlpha=True})
LoadBrush(#BTN_PAINT2,"images/tools/brush.png")
DisplayBrush(#BTN_UP,0,0)
DisplayBrush(#BTN_PAINT1,0,20)
DisplayBrush(#BTN_UP,50,0)
DisplayBrush(#BTN_PAINT2,50,20)
WaitKeyDown("return")
It should look like this: http://www.tuxpaint.org/screenshots/sho ... 3?which=11
Regards, Matthias