Enable alpha channel if available
Posted: Mon May 16, 2016 2:09 pm
Hi,
with Hollywood 5.3 I want to load a brush such that the alpha channel is enabled if available.
gives an error for e.g. a JPEG file.
doesn't work (GetAttribute never returns TRUE). Is there a possibility?
with Hollywood 5.3 I want to load a brush such that the alpha channel is enabled if available.
Code: Select all
LoadBrush(2, self.picture, {LoadAlpha=True})
Code: Select all
LoadBrush(2, self.picture)
If GetAttribute(#BRUSH, 2, #ATTRHASALPHA)
DebugPrint("!!!!alpha*****")
ChangeBrushTransparency(2, #ALPHACHANNEL)
EndIf