Page 2 of 2

Re: SaveBrush() - artefacts

Posted: Tue Dec 11, 2018 8:58 pm
by airsoftsoftwair
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.

Re: SaveBrush() - artefacts

Posted: Wed Dec 12, 2018 10:25 pm
by evil
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