[19 Feb 2008] Alpha channel?

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
Mazze
Posts: 69
Joined: Thu May 06, 2010 8:08 pm

[19 Feb 2008] Alpha channel?

Post by Mazze »

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:

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")
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
Mazze
Posts: 69
Joined: Thu May 06, 2010 8:08 pm

[20 Feb 2008] Re: Alpha channel?

Post by Mazze »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 20 Feb 2008 00:28:03 +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 got it: I had to change the PNG images from grayscales to RGB.

Regards, Matthias
Locked