Antialias + shadow disables alpha channel

Report any Hollywood bugs here
Post Reply
Mazze
Posts: 69
Joined: Thu May 06, 2010 8:08 pm

Antialias + shadow disables alpha channel

Post by Mazze »

When I run this sample with Hollywood 5.3...

Code: Select all

@DISPLAY 1, {Color=#WHITE}

SetFormStyle(#NORMAL)
SetFillStyle(#FILLCOLOR)

; black bar so that we can see alpha channel better
Box(50, 0, 300, 600, #BLACK)

Box(0, 50, 200, 50, ARGB(100, #BLUE))

SetFormStyle(#SHADOW, #RED, 10, #SHDWSOUTHEAST)
Box(0, 150, 200, 50, ARGB(100, #BLUE))

SetFormStyle(#EDGE, #GREEN, 5)
Box(0, 250, 200, 50, ARGB(100, #BLUE))

; #################################################

SetFormStyle(#NORMAL)
SetFormStyle(#ANTIALIAS) ; !!!!!!!!!!!!!!!!!!!!!!!
SetFillStyle(#FILLCOLOR)

Box(250, 50, 200, 50, ARGB(100, #BLUE))

; the following box looses the alpha channel !
SetFormStyle(#SHADOW, #RED, 10, #SHDWSOUTHEAST)
Box(250, 150, 200, 50, ARGB(100, #BLUE))

; with an additional "edge" the alpha channel is back !
SetFormStyle(#EDGE, #GREEN, 5)
Box(250, 250, 200, 50, ARGB(100, #BLUE))

WaitLeftMouse
... I get this result. The middle bar on the right side has lost its alpha channel. It looks like there is a problem with the combination antialias and shadow. Odd is that an additional "edge" enables the alpha channel again.

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

Re: Antialias + shadow disables alpha channel

Post by airsoftsoftwair »

Yes, that was a bug. It's fixed now. Thanks for the report!
Post Reply