Page 1 of 1

Antialias + shadow disables alpha channel

Posted: Wed Aug 21, 2013 1:13 am
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

Re: Antialias + shadow disables alpha channel

Posted: Thu Aug 29, 2013 5:48 pm
by airsoftsoftwair
Yes, that was a bug. It's fixed now. Thanks for the report!