SaveBrush() - artefacts

Report any Hollywood bugs here
User avatar
airsoftsoftwair
Posts: 3355
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: SaveBrush() - artefacts

Post by airsoftsoftwair » Tue Dec 11, 2018 8:58 pm

Well, that's because the brush doesn't have an alpha channel. For PNG images, only alpha channel transparency is supported so you first have to convert the mask transparency to an alpha channel one, like so:

Code: Select all

CreateBrush(1,200,100,#green)
RotateBrush(1,45)
ChangeBrushTransparency(1, #ALPHACHANNEL)
SaveBrush(1,"ram:brush.png",#BLACK,#IMGFMT_PNG)
Then it'll work.

evil
Posts: 138
Joined: Mon Jun 14, 2010 1:38 pm

Re: SaveBrush() - artefacts

Post by evil » Wed Dec 12, 2018 10:25 pm

Buhh... Shame on me...
I really read the comple documentation of Hollywood twice... at least...
But never saw the command ChangeBrushTransparency().

Thanks for the hint... That helps a lot...
Best regards

Evil

Post Reply